@@ -311,11 +311,13 @@ struct Phik0shortanalysis {
311311
312312 mcEventHist.add (" hGenMCVertexZ" , " hGenMCVertexZ" , kTH1F , {vertexZAxis});
313313 mcEventHist.add (" hGenMCMultiplicityPercent" , " GenMC Multiplicity Percentile" , kTH1F , {binnedmultAxis});
314+ mcEventHist.add (" hGenMCAssocRecoMultiplicityPercent" , " GenMC AssocReco Multiplicity Percentile" , kTH1F , {binnedmultAxis});
314315
315316 // Eta distribution for dN/deta values estimation in MC
316317 mcEventHist.add (" h2RecMCEtaDistribution" , " Eta vs multiplicity in MCReco" , kTH2F , {binnedmultAxis, etaAxis});
317318 mcEventHist.add (" h2GenMCEtaDistribution" , " Eta vs multiplicity in MCGen" , kTH2F , {binnedmultAxis, etaAxis});
318319 mcEventHist.add (" h2GenMCEtaDistributionAssocReco" , " Eta vs multiplicity in MCGen Assoc Reco" , kTH2F , {binnedmultAxis, etaAxis});
320+ mcEventHist.add (" h2GenMCEtaDistributionAssocReco2" , " Eta vs multiplicity in MCGen Assoc Reco" , kTH2F , {binnedmultAxis, etaAxis});
319321
320322 // Phi topological/PID cuts
321323 dataPhiHist.add (" h2DauTracksPhiDCAxyPreCutData" , " Dcaxy distribution vs pt before DCAxy cut" , kTH2F , {{100 , 0.0 , 5.0 , " #it{p}_{T} (GeV/#it{c})" }, {2000 , -0.05 , 0.05 , " DCA_{xy} (cm)" }});
@@ -2322,6 +2324,19 @@ struct Phik0shortanalysis {
23222324
23232325 mcEventHist.fill (HIST (" h2RecMCEtaDistribution" ), genmultiplicity, mcTrack.eta ());
23242326 }
2327+
2328+ for (const auto & mcParticle : mcParticlesThisColl) {
2329+ if (!mcParticle.isPhysicalPrimary () || std::abs (mcParticle.eta ()) > trackConfigs.etaMax )
2330+ continue ;
2331+
2332+ auto pdgTrack = pdgDB->GetParticle (mcParticle.pdgCode ());
2333+ if (pdgTrack == nullptr )
2334+ continue ;
2335+ if (pdgTrack->Charge () == trackConfigs.cfgCutCharge )
2336+ continue ;
2337+
2338+ mcEventHist.fill (HIST (" h2GenMCEtaDistributionAssocReco" ), genmultiplicity, mcParticle.eta ());
2339+ }
23252340 }
23262341
23272342 PROCESS_SWITCH (Phik0shortanalysis, processdNdetaWPhiMCReco, " Process function for dN/deta values in MCReco" , false );
@@ -2345,6 +2360,8 @@ struct Phik0shortanalysis {
23452360
23462361 float genmultiplicity = mcCollision.centFT0M ();
23472362 mcEventHist.fill (HIST (" hGenMCMultiplicityPercent" ), genmultiplicity);
2363+ if (isAssocColl)
2364+ mcEventHist.fill (HIST (" hGenMCAssocRecoMultiplicityPercent" ), genmultiplicity);
23482365
23492366 for (const auto & mcParticle : mcParticles) {
23502367 if (!mcParticle.isPhysicalPrimary () || std::abs (mcParticle.eta ()) > trackConfigs.etaMax )
@@ -2358,7 +2375,7 @@ struct Phik0shortanalysis {
23582375
23592376 mcEventHist.fill (HIST (" h2GenMCEtaDistribution" ), genmultiplicity, mcParticle.eta ());
23602377 if (isAssocColl)
2361- mcEventHist.fill (HIST (" h2GenMCEtaDistributionAssocReco " ), genmultiplicity, mcParticle.eta ());
2378+ mcEventHist.fill (HIST (" h2GenMCEtaDistributionAssocReco2 " ), genmultiplicity, mcParticle.eta ());
23622379 }
23632380 }
23642381
0 commit comments