@@ -430,6 +430,15 @@ struct LFNucleiBATask {
430430 histoGen.add (" helium/MCReco/ptGen_INELgt0_Prim_antiHe" , " generated particles" , HistType::kTH1F , {ptHeAxis});
431431
432432 if (enableCentrality) {
433+ histoGen.add (" events/hMCGenVsMult" , " hMCGenVsMult" , HistType::kTH2D , {{3 , 0 .f , 3 .f }, {binsPercentile}});
434+ histoGen.get <TH2>(HIST (" events/hMCGenVsMult" ))->GetXaxis ()->SetBinLabel (1 , " All" );
435+ histoGen.get <TH2>(HIST (" events/hMCGenVsMult" ))->GetXaxis ()->SetBinLabel (2 , " Vtz" );
436+ histoGen.get <TH2>(HIST (" events/hMCGenVsMult" ))->GetXaxis ()->SetBinLabel (3 , " INELgt0" );
437+
438+ histoGen.add (" events/hMCGenRecoVsMult" , " hMCGenRecoVsMult" , HistType::kTH2D , {{2 , 0 .f , 2 .f }, {binsPercentile}});
439+ histoGen.get <TH2>(HIST (" events/hMCGenRecoVsMult" ))->GetXaxis ()->SetBinLabel (1 , " INEL" );
440+ histoGen.get <TH2>(HIST (" events/hMCGenRecoVsMult" ))->GetXaxis ()->SetBinLabel (2 , " INELgt0" );
441+
433442 histoGen.add (" helium/MCGen/ptGenVsMult_INEL_Prim_He" , " generated particles" , HistType::kTH2F , {{ptHeAxis}, {binsPercentile}});
434443 histoGen.add (" helium/MCGen/ptGenVsMult_INEL_Prim_antiHe" , " generated particles" , HistType::kTH2F , {{ptHeAxis}, {binsPercentile}});
435444 histoGen.add (" helium/MCGen/ptGenVsMult_INELgt0_Prim_He" , " generated particles" , HistType::kTH2F , {{ptHeAxis}, {binsPercentile}});
@@ -6632,13 +6641,22 @@ struct LFNucleiBATask {
66326641 // EVENT LOSS DENOMINATOR
66336642 // No cuts
66346643 histoGen.fill (HIST (" events/hMCGen" ), 0.5 );
6644+ if (enableCentrality)
6645+ histoGen.fill (HIST (" events/hMCGenVsMult" ), 0.5 , mcCollision.centFT0M ());
6646+
66356647 // Vtz cut
66366648 if (mcCollision.posZ () < cfgVzCutLow || mcCollision.posZ () > cfgVzCutHigh)
66376649 return ;
66386650 histoGen.fill (HIST (" events/hMCGen" ), 1.5 );
6651+ if (enableCentrality)
6652+ histoGen.fill (HIST (" events/hMCGenVsMult" ), 1.5 , mcCollision.centFT0M ());
6653+
66396654 // INEL > 0
6640- if (isINELgt0true)
6655+ if (isINELgt0true) {
66416656 histoGen.fill (HIST (" events/hMCGen" ), 2.5 );
6657+ if (enableCentrality)
6658+ histoGen.fill (HIST (" events/hMCGenVsMult" ), 2.5 , mcCollision.centFT0M ());
6659+ }
66426660
66436661 // SIGNAL LOSS DENOMINATOR
66446662 for (const auto & mcParticle : mcParticles) {
@@ -6736,8 +6754,14 @@ struct LFNucleiBATask {
67366754
67376755 // EVENT LOSS NUMERATOR
67386756 histoGen.fill (HIST (" events/hMCGenReco" ), 0.5 );
6739- if (recoIdxINELgt0 > 0 )
6757+ if (enableCentrality)
6758+ histoGen.fill (HIST (" events/hMCGenRecoVsMult" ), 0.5 , mcCollision.centFT0M ());
6759+
6760+ if (recoIdxINELgt0 > 0 ) {
67406761 histoGen.fill (HIST (" events/hMCGenReco" ), 1.5 );
6762+ if (enableCentrality)
6763+ histoGen.fill (HIST (" events/hMCGenRecoVsMult" ), 1.5 , mcCollision.centFT0M ());
6764+ }
67416765
67426766 // SIGNAL LOSS NUMERATOR
67436767 for (const auto & mcParticle : mcParticles) {
0 commit comments