message: PWGGA/GammaConv:Fixed bugs on added histograms for K0 case.
diff: @@ -55,7 +55,9 @@ ClassImp(AliAnalysisTaskGammaPureMC)
  //________________________________________________________________________
  AliAnalysisTaskGammaPureMC::AliAnalysisTaskGammaPureMC(): AliAnalysisTaskSE(),
  -fOutputContainer(nullptr),
  + fOutputContainer(nullptrptr),
  + fInputEvent(nullptr),
  + fMCEvent(nullptr),
  fMCStack(nullptr),
  fHistNEvents(nullptr),
  fHistXSection(nullptr),
  @@ -130,6 +132,8 @@ fIsMC(1)
  AliAnalysisTaskGammaPureMC::AliAnalysisTaskGammaPureMC(const char *name):
  AliAnalysisTaskSE(name),
  fOutputContainer(nullptr),
  + fInputEvent(nullptr),
  + fMCEvent(nullptr),
  fMCStack(nullptr),
  fHistNEvents(nullptr),
  fHistXSection(nullptr),
  @@ -224,6 +228,7 @@ void AliAnalysisTaskGammaPureMC::UserCreateOutputObjects(){
  fOutputContainer->Add(fHistNEvents);
  fHistXSection = new TH1D("XSection", "XSection", 1000000, 0, 1e4);
  +
  // SetLogBinningXTH1(fHistXSection);
  fHistXSection->Sumw2();
  fOutputContainer->Add(fHistXSection);
  @@ -468,7 +473,6 @@ void AliAnalysisTaskGammaPureMC::UserExec(Option_t *)
  fMCEvent = MCEvent();
  if(fMCEvent == nullptr) fIsMC = 0;
  -
  if (fIsMC==0) return;
  // cout << "I found an MC header" << endl;
  @@ -695,7 +699,6 @@ void AliAnalysisTaskGammaPureMC::ProcessMCParticles()
  energyGamma[j] = daughter->Energy();
  -
  }
  if (!(allOK[0] && allOK[1])) continue;
  @@ -780,6 +783,7 @@ void AliAnalysisTaskGammaPureMC::ProcessMCParticles()
  }
  +
  if(fIsK0 == 0) continue;
  if( particle->GetPdgCode() == kPdgK0Short){
  for(Int_t k=0;k<2;k++){
  @@ -868,7 +872,6 @@ void AliAnalysisTaskGammaPureMC::ProcessMCParticles()
  }
  -
  }
  }
  