@@ -346,9 +346,11 @@ struct StrangenessInJetsIons {
346346
347347 // Add histogram to store multiplicity of the event
348348 registryMC.add (" number_of_events_vsmultiplicity_gen" , " number of events vs multiplicity" , HistType::kTH1D , {{101 , 0 , 101 , " Multiplicity percentile" }});
349+ registryMC.add (" number_of_events_vsmultiplicity_gen_w_reco" , " number of events vs multiplicity (gen with reco)" , HistType::kTH1D , {{101 , 0 , 101 , " Multiplicity percentile" }});
349350
350351 // For MB
351352 registryMC.add (" number_of_events_vsmultiplicity_gen_MB" , " number of events vs multiplicity (MB)" , HistType::kTH1D , {{101 , 0 , 101 , " Multiplicity percentile" }});
353+ registryMC.add (" number_of_events_vsmultiplicity_gen_w_reco_MB" , " number of events vs multiplicity (MB gen with reco)" , HistType::kTH1D , {{101 , 0 , 101 , " Multiplicity percentile" }});
352354
353355 // Jet counters
354356 registryMC.add (" n_jets_vs_mult_pT_mc_gen" , " n_jets_vs_mult_pT_mc_gen" , HistType::kTH2F , {multAxis, ptJetAxis});
@@ -1187,9 +1189,9 @@ struct StrangenessInJetsIons {
11871189 return std::abs (yParticle) < rapidityCut;
11881190 }
11891191
1190- void FillFullEventHistoMCGEN (aod::McParticle const & particle,
1191- const double & genMultiplicity,
1192- bool hasReco = false )
1192+ void FillMBEventHistoMCGEN (aod::McParticle const & particle,
1193+ const double & genMultiplicity,
1194+ bool hasReco = false )
11931195 {
11941196 if (particle.isPhysicalPrimary () && passedRapidityCut (particle.y (), configV0.rapidityMax )) {
11951197 switch (particle.pdgCode ()) {
@@ -1275,12 +1277,12 @@ struct StrangenessInJetsIons {
12751277
12761278 // Fill Minimum Bias histograms
12771279 template <typename MCRecoCollision, typename V0PerColl, typename CascPerColl, typename TracksPerColl>
1278- void FillFullEventHistoMCREC (MCRecoCollision collision,
1279- aod::McParticles const & mcParticles,
1280- V0PerColl const & v0sPerColl,
1281- CascPerColl const & cascPerColl,
1282- TracksPerColl const & tracksPerColl,
1283- const double & multiplicity)
1280+ void FillMBEventHistoMCREC (MCRecoCollision collision,
1281+ aod::McParticles const & mcParticles,
1282+ V0PerColl const & v0sPerColl,
1283+ CascPerColl const & cascPerColl,
1284+ TracksPerColl const & tracksPerColl,
1285+ const double & multiplicity)
12841286 {
12851287 // V0 particles
12861288 if (particleOfInterestDict[ParticleOfInterest::kV0Particles ]) {
@@ -1913,6 +1915,8 @@ struct StrangenessInJetsIons {
19131915 genMultiplicity = collision.centFT0M ();
19141916 }
19151917 registryMC.fill (HIST (" number_of_events_vsmultiplicity_gen_MB" ), genMultiplicity);
1918+ if (hasReco)
1919+ registryMC.fill (HIST (" number_of_events_vsmultiplicity_gen_w_reco_MB" ), genMultiplicity);
19161920
19171921 // MC particles per collision
19181922 auto mcParticlesPerColl = mcParticles.sliceBy (perMCCollision, collision.globalIndex ());
@@ -1930,7 +1934,7 @@ struct StrangenessInJetsIons {
19301934 if (particle.eta () < configTracks.etaMin || particle.eta () > configTracks.etaMax || particle.pt () < minPtParticle)
19311935 continue ;
19321936
1933- FillFullEventHistoMCGEN (particle, genMultiplicity, hasReco);
1937+ FillMBEventHistoMCGEN (particle, genMultiplicity, hasReco);
19341938
19351939 // Select physical primary particles or HF decay products
19361940 if (!isPhysicalPrimaryOrFromHF (particle, mcParticles))
@@ -1948,6 +1952,7 @@ struct StrangenessInJetsIons {
19481952 if (fjParticles.size () < 1 )
19491953 continue ;
19501954 registryMC.fill (HIST (" number_of_events_mc_gen" ), 2.5 );
1955+
19511956
19521957 // Cluster MC particles into jets using anti-kt algorithm
19531958 fastjet::ClusterSequenceArea cs (fjParticles, jetDef, areaDef);
@@ -1974,6 +1979,8 @@ struct StrangenessInJetsIons {
19741979 countSelJet++;
19751980 registryMC.fill (HIST (" number_of_events_mc_gen" ), 3.5 );
19761981 registryMC.fill (HIST (" number_of_events_vsmultiplicity_gen" ), genMultiplicity);
1982+ if (hasReco)
1983+ registryMC.fill (HIST (" number_of_events_vsmultiplicity_gen_w_reco" ), genMultiplicity);
19771984
19781985 // Fill jet counter
19791986 registryMC.fill (HIST (" n_jets_vs_mult_pT_mc_gen" ), genMultiplicity, jetMinusBkg.pt ());
@@ -2229,7 +2236,7 @@ struct StrangenessInJetsIons {
22292236 auto tracksPerColl = mcTracks.sliceBy (perCollisionTrk, collision.globalIndex ());
22302237 const auto & mcParticlesPerColl = mcParticles.sliceBy (perMCCollision, mcCollision.globalIndex ());
22312238
2232- FillFullEventHistoMCREC (collision, mcParticles, v0sPerColl,
2239+ FillMBEventHistoMCREC (collision, mcParticles, v0sPerColl,
22332240 cascPerColl, tracksPerColl, multiplicity);
22342241
22352242 // Loop over reconstructed tracks
0 commit comments