message: Added flag to use histograms for signal loss correction
diff: @@ -118,7 +118,8 @@ ClassImp(AliAnalysisTaskFlatenicity) // classimp: necessary for root
  hActivityV0McSect(0), hFlatVsNchMC(0), hFlatVsV0M(0), hFlatMCVsV0M(0),
  hEtamc(0), hEtamcAlice(0), hCounter(0), hMultMCmVsV0M(0),
  hMultMCaVsV0M(0), hMultMCcVsV0M(0), hMultmVsV0M(0), hMultmVsV0Malice(0),
  - hMultaVsV0M(0), hMultcVsV0M(0), hV0MBadruns(0), hPtBefore(0), hPtAfter(0) {
  + hMultaVsV0M(0), hMultcVsV0M(0), hV0MBadruns(0), hPtBefore(0),
  + hPtAfter(0) {
  for (Int_t i_c = 0; i_c < nCent; ++i_c) {
  hFlatVsPtV0M[i_c] = 0;
  }
  @@ -387,12 +388,10 @@ void AliAnalysisTaskFlatenicity::UserCreateOutputObjects() {
  new TH2D("hMultMCcVsV0M", "", nCent, centClass, 1000, -0.5, 999.5);
  fOutputList->Add(hMultMCcVsV0M);
  - hPtBefore = new TH1D("hPtBefore", "hPtBefore",
  - nPtbins, Ptbins);
  + hPtBefore = new TH1D("hPtBefore", "hPtBefore", nPtbins, Ptbins);
  fOutputList->Add(hPtBefore);
  - hPtAfter = new TH1D("hPtAfter", "hPtAfter",
  - nPtbins, Ptbins);
  + hPtAfter = new TH1D("hPtAfter", "hPtAfter", nPtbins, Ptbins);
  fOutputList->Add(hPtAfter);
  }
  @@ -744,7 +743,7 @@ void AliAnalysisTaskFlatenicity::MakeanalysispureMCBefore() {
  continue;
  if (TMath::Abs(particle->Charge()) < 0.1)
  continue;
  -
  + if (fUseMC)
  hPtBefore->Fill(particle->Pt());
  }
  }
  @@ -764,7 +763,7 @@ void AliAnalysisTaskFlatenicity::MakeanalysispureMCAfter() {
  continue;
  if (TMath::Abs(particle->Charge()) < 0.1)
  continue;
  -
  + if (fUseMC)
  hPtAfter->Fill(particle->Pt());
  }
  }
  