diff --git a/PWGMM/Mult/Tasks/dndetaMFTPbPb.cxx b/PWGMM/Mult/Tasks/dndetaMFTPbPb.cxx index 4293d9457cc..7e527eab74f 100644 --- a/PWGMM/Mult/Tasks/dndetaMFTPbPb.cxx +++ b/PWGMM/Mult/Tasks/dndetaMFTPbPb.cxx @@ -178,6 +178,8 @@ enum class RecIdxTrkLightType { enum class EvtLossType { kGenAll = 0, kGenSel, + kGenEvtBCFT0TVX, + kGenEvtBestCollHasTVX, kGenSplit, kGenRecEvt, nEvtLossType @@ -205,6 +207,10 @@ enum class McEvtLossStatus { kMcEvtTVX, kMcEvtInelGt0, kMcEvtInelGt0wMft, + kMcEvtGt0RecColls, + kMcEvtHasFT0, + kMcEvtHasTVX, + kMcEvtBestCollHasTVX, kMcEvtStatus }; @@ -798,7 +804,11 @@ struct DndetaMFTPbPb { "Z-vtx", "TVX", "InelGt0 coll", - "InelGt0 in MFT"}; + "InelGt0 in MFT", + "Mc Evt Gt0 Rec Colls", + "Mc Evt Has FT0", + "Mc Evt Has TVX", + "Mc Evt Best Coll Has TVX"}; for (int iBin = 0; iBin < static_cast(McEvtLossStatus::kMcEvtStatus); iBin++) { registryMC.get(HIST("Events/hMcEvtLossStatus"))->GetXaxis()->SetBinLabel(iBin + 1, labelMcEvtLossStatus[iBin].data()); } @@ -807,14 +817,23 @@ struct DndetaMFTPbPb { hstat->GetXaxis()->SetBinLabel(1, "All MC gen events"); hstat->GetXaxis()->SetBinLabel(2, "MC gen events with rec event with event selection"); hstat->GetXaxis()->SetBinLabel(3, "MC gen events with no rec events"); + registryMC.add({"Events/hNRecColls", "Number of times a generated collision is reconstructed; N; Counts", {HistType::kTH1F, {{10, -0.5, 9.5}}}}); + registryMC.add({"Events/hNRecCollsVsNPVContr", "Number of times a generated collision is reconstructed vs Number of PV contributors; Number of times a generated collision is reconstructed; Number of tracks used for the PV", {HistType::kTH2F, {{10, -0.5, 9.5}, multAxis}}}); + registryMC.add({"Events/hNRecCollsVsCent", "Number of times a generated collision is reconstructed vs centrality w/o Evt. Sel; Number of times a generated collision is reconstructed; centrality w/o Evt. Sel.", {HistType::kTH2F, {centralityAxis, {8, -0.5, 7.5}}}}); registryMC.add({"Events/hNchGen", "Evt loss; Gen Nch FT0C; evtLossType", {HistType::kTH2F, {multAxis, evtLossTypeAxis}}}); - registryMC.add({"Events/hMultGenVsCentSplit", "Split MC events: Gen Nch vs Rec Cent; rec cent; Gen Nch ", {HistType::kTH2F, {centralityAxis, multAxis}}}); + registryMC.add({"Events/hEvtSplitNRecHasBCFT0TVXVsCentVsMult", "Split MC rec events w/ BC+FT0+TVX.: Gen Nch vs Rec Cent; rec cent; Gen Nch ", {HistType::kTH2F, {centralityAxis, multAxis}}}); + registryMC.add({"Events/hEvtSplitNRecHasBestCollBCFT0TVXVsCentVsMult", "Split MC rec events w/ BestColl+BC+FT0+TVX: Gen Nch vs Rec Cent; rec cent; Gen Nch ", {HistType::kTH2F, {centralityAxis, multAxis}}}); + registryMC.add({"Events/hEvtSplitNRecEvtSelVsCentVsMult", "Split MC rec events w/ Rec Evt. Sel. (all vtx): Gen Nch vs Rec Cent; rec cent; Gen Nch ", {HistType::kTH2F, {centralityAxis, multAxis}}}); + registryMC.add({"Events/hEvtSplitNGenEvtGt0RecVsCentVsMult", "Split MC gen events w/ Nrec > 0 (Gt0 rec vtx): Gen Nch vs Rec Cent; rec cent; Gen Nch ", {HistType::kTH2F, {centralityAxis, multAxis}}}); registryMC.add({"Events/hMultGenVsCent", "Gen Nch vs rec cent.; Gen Nch; Gen Nch; cent rec.", {HistType::kTHnSparseF, {multAxis, multAxis, centralityAxis}}}); registryMC.add({"Events/hMultGenVsCentMFTacc", "Gen Nch (MFT acc) vs rec cent.; Gen Nch (MFT acc); cent rec.", {HistType::kTH2F, {multAxis, centralityAxis}}}); registryMC.add({"Events/hMultGenVsCentRecEvt", "Gen Nch w/ Nrec > 0 vs rec cent.; Gen Nch; Gen Nch; cent rec.", {HistType::kTHnSparseF, {multAxis, multAxis, centralityAxis}}}); registryMC.add({"Events/hMultGenVsCentRecEvtMFTacc", "Gen Nch (MFT acc) w/ Nrec > 0 vs rec cent.; Gen Nch (MFT acc); cent rec.", {HistType::kTH2F, {multAxis, centralityAxis}}}); registryMC.add({"Tracks/hNchGenVsEta", "Gen Nch vs #eta; Gen Nch; #eta", {HistType::kTH2F, {multAxis, etaAxis}}}); + registryMC.add({"Tracks/hNchGenVsEtaWRecEvt", "Gen Nch w/ Nrec > 0 vs #eta; Gen Nch; #eta", {HistType::kTH2F, {multAxis, etaAxis}}}); registryMC.add({"Tracks/hNchGenVsEtaRecEvt", "Gen Nch w/ Nrec > 0 vs #eta; Gen Nch; #eta", {HistType::kTH2F, {multAxis, etaAxis}}}); + registryMC.add({"Tracks/hNchGenVsEtaHasBCFT0TVX", "Gen Nch w/ BC+FT0+TVX vs #eta; Gen Nch; #eta", {HistType::kTH2F, {multAxis, etaAxis}}}); + registryMC.add({"Tracks/hNchGenVsEtaHasBestCollBCFT0TVX", "Gen Nch BestColl+BC+FT0+TVX vs #eta; Gen Nch; #eta", {HistType::kTH2F, {multAxis, etaAxis}}}); LOG(info) << "doprocessMcSgnEvtLossCentFT0C -> Size of the MC histograms:"; registryMC.print(); } @@ -1800,41 +1819,16 @@ struct DndetaMFTPbPb { centRecPerCol.clear(); occRecPerCol.clear(); LOGP(debug, "MC col {} has {} reco cols", mcCollision.globalIndex(), collisions.size()); - float occGen = -1.; - for (const auto& collision : collisions) { - if (!gConf.useEvtSel || isGoodEvent(collision)) { - if (!gConf.rmSplitVertex || (collision.globalIndex() == mcCollision.bestCollisionIndex())) { - float o = getOccupancy(collision, eventCuts.occupancyEstimator); - if (o > occGen) { - occGen = o; - } - } - } - } - float cGen = -1; - if (eventCuts.useGenMult) { - cGen = mcCollision.multMCFT0C(); - } - if constexpr (has_reco_cent) { - float crecMin = 999.; - for (const auto& collision : collisions) { - if (!gConf.useEvtSel || isGoodEvent(collision)) { - if (!gConf.rmSplitVertex || (collision.globalIndex() == mcCollision.bestCollisionIndex())) { - float c = getRecoCent(collision); - if (c < crecMin) { - crecMin = c; - } - } - } - } - if (cGen < 0) { - cGen = crecMin; - } - } bool gtZeroColl = false; bool gtOneRec = false; int gtOneColl = 0; + auto cRec = CInvalid; + auto occRec = CInvalid; + float cGen = -1; + if (eventCuts.useGenMult) { + cGen = mcCollision.multMCFT0C(); + } for (auto const& collision : collisions) { if constexpr (has_reco_cent) { registryMC.fill(HIST("Events/Centrality/McEvtStatus"), static_cast(McEvtStatus::kMcRecAll), getRecoCent(collision), getOccupancy(collision, eventCuts.occupancyEstimator)); @@ -1861,8 +1855,8 @@ struct DndetaMFTPbPb { continue; } gtOneRec = true; - float cRec = getRecoCent(collision); - float occRec = getOccupancy(collision, eventCuts.occupancyEstimator); + cRec = getRecoCent(collision); + occRec = getOccupancy(collision, eventCuts.occupancyEstimator); centRecPerCol.emplace_back(cRec); occRecPerCol.emplace_back(occRec); @@ -1995,10 +1989,13 @@ struct DndetaMFTPbPb { } } } + if (cGen < 0 && cRec >= 0) { + cGen = cRec; + } if constexpr (has_reco_cent) { - registryMC.fill(HIST("Events/Centrality/McEvtStatus"), static_cast(McEvtStatus::kMcGenAll), cGen, occGen); + registryMC.fill(HIST("Events/Centrality/McEvtStatus"), static_cast(McEvtStatus::kMcGenAll), cGen, occRec); } else { - registryMC.fill(HIST("Events/McEvtStatus"), static_cast(McEvtStatus::kMcGenAll), occGen); + registryMC.fill(HIST("Events/McEvtStatus"), static_cast(McEvtStatus::kMcGenAll), occRec); } if (gConf.fillTrackQaHist) { @@ -2006,39 +2003,39 @@ struct DndetaMFTPbPb { auto nchrg = countPart(perCollMCsample); if (gtOneColl > 1) { if constexpr (has_reco_cent) { - registryMC.fill(HIST("Events/Centrality/NgenZvtxSplit"), nchrg, mcCollision.posZ(), cGen, occGen); + registryMC.fill(HIST("Events/Centrality/NgenZvtxSplit"), nchrg, mcCollision.posZ(), cGen, occRec); } else { - registryMC.fill(HIST("Events/NgenZvtxSplit"), nchrg, mcCollision.posZ(), occGen); + registryMC.fill(HIST("Events/NgenZvtxSplit"), nchrg, mcCollision.posZ(), occRec); } } else { if constexpr (has_reco_cent) { - registryMC.fill(HIST("Events/Centrality/NgenZvtxNoSplit"), nchrg, mcCollision.posZ(), cGen, occGen); + registryMC.fill(HIST("Events/Centrality/NgenZvtxNoSplit"), nchrg, mcCollision.posZ(), cGen, occRec); } else { - registryMC.fill(HIST("Events/NgenZvtxNoSplit"), nchrg, mcCollision.posZ(), occGen); + registryMC.fill(HIST("Events/NgenZvtxNoSplit"), nchrg, mcCollision.posZ(), occRec); } } auto nCharged = countPart(particles); if constexpr (has_reco_cent) { - registryMC.fill(HIST("Events/Centrality/NtrkZvtxGen_t"), nCharged, mcCollision.posZ(), cGen, occGen); + registryMC.fill(HIST("Events/Centrality/NtrkZvtxGen_t"), nCharged, mcCollision.posZ(), cGen, occRec); } else { - registryMC.fill(HIST("Events/NtrkZvtxGen_t"), nCharged, mcCollision.posZ(), occGen); + registryMC.fill(HIST("Events/NtrkZvtxGen_t"), nCharged, mcCollision.posZ(), occRec); } if (gtOneRec) { if constexpr (has_reco_cent) { - registryMC.fill(HIST("Events/Centrality/NtrkZvtxGenRecEvt"), nCharged, mcCollision.posZ(), cGen, occGen); + registryMC.fill(HIST("Events/Centrality/NtrkZvtxGenRecEvt"), nCharged, mcCollision.posZ(), cGen, occRec); } else { - registryMC.fill(HIST("Events/NtrkZvtxGenRecEvt"), nCharged, mcCollision.posZ(), occGen); + registryMC.fill(HIST("Events/NtrkZvtxGenRecEvt"), nCharged, mcCollision.posZ(), occRec); } } if (collisions.size() == 0) { if constexpr (has_reco_cent) { - registryMC.fill(HIST("Events/Centrality/NotFoundEventZvtx"), mcCollision.posZ(), cGen, occGen); + registryMC.fill(HIST("Events/Centrality/NotFoundEventZvtx"), mcCollision.posZ(), cGen, occRec); } else { - registryMC.fill(HIST("Events/NotFoundEventZvtx"), mcCollision.posZ(), occGen); + registryMC.fill(HIST("Events/NotFoundEventZvtx"), mcCollision.posZ(), occRec); } } } - fillHistMC>(particles, mcCollision.posZ(), cGen, occGen, gtZeroColl, gtOneRec); + fillHistMC>(particles, mcCollision.posZ(), cGen, occRec, gtZeroColl, gtOneRec); } void processMcInclusive(CollsMCExtraMult::iterator const& mccollision, @@ -2074,43 +2071,18 @@ struct DndetaMFTPbPb { centRecPerCol.clear(); occRecPerCol.clear(); LOGP(debug, "MC col {} has {} reco cols", mcCollision.globalIndex(), collisions.size()); - float occGen = -1.; - for (const auto& collision : collisions) { - if (!gConf.useEvtSel || isGoodEvent(collision)) { - if (!gConf.rmSplitVertex || (collision.globalIndex() == mcCollision.bestCollisionIndex())) { - float o = getOccupancy(collision, eventCuts.occupancyEstimator); - if (o > occGen) { - occGen = o; - } - } - } - } - float cGen = -1; - if (eventCuts.useGenMult) { - cGen = mcCollision.multMCFT0C(); - } - if constexpr (has_reco_cent) { - float crecMin = 999.; - for (const auto& collision : collisions) { - if (!gConf.useEvtSel || isGoodEvent(collision)) { - if (!gConf.rmSplitVertex || (collision.globalIndex() == mcCollision.bestCollisionIndex())) { - float c = getRecoCent(collision); - if (c < crecMin) { - crecMin = c; - } - } - } - } - if (cGen < 0) { - cGen = crecMin; - } - } buildLookupTable(collisions); bool gtZeroColl = false; bool gtOneRec = false; int gtOneColl = 0; + auto cRec = CInvalid; + auto occRec = CInvalid; + float cGen = -1; + if (eventCuts.useGenMult) { + cGen = mcCollision.multMCFT0C(); + } for (auto const& collision : collisions) { if constexpr (has_reco_cent) { registryMC.fill(HIST("Events/Centrality/McEvtStatus"), static_cast(McEvtStatus::kMcRecAll), getRecoCent(collision), getOccupancy(collision, eventCuts.occupancyEstimator)); @@ -2137,8 +2109,8 @@ struct DndetaMFTPbPb { continue; } gtOneRec = true; - float cRec = getRecoCent(collision); - float occRec = getOccupancy(collision, eventCuts.occupancyEstimator); + cRec = getRecoCent(collision); + occRec = getOccupancy(collision, eventCuts.occupancyEstimator); centRecPerCol.emplace_back(cRec); occRecPerCol.emplace_back(occRec); @@ -2275,10 +2247,13 @@ struct DndetaMFTPbPb { } } } + if (cGen < 0 && cRec >= 0) { + cGen = cRec; + } if constexpr (has_reco_cent) { - registryMC.fill(HIST("Events/Centrality/McEvtStatus"), static_cast(McEvtStatus::kMcGenAll), cGen, occGen); + registryMC.fill(HIST("Events/Centrality/McEvtStatus"), static_cast(McEvtStatus::kMcGenAll), cGen, occRec); } else { - registryMC.fill(HIST("Events/McEvtStatus"), static_cast(McEvtStatus::kMcGenAll), occGen); + registryMC.fill(HIST("Events/McEvtStatus"), static_cast(McEvtStatus::kMcGenAll), occRec); } if (gConf.fillTrackQaHist) { @@ -2286,39 +2261,39 @@ struct DndetaMFTPbPb { auto nchrg = countPart(perCollMCsample); if (gtOneColl > 1) { if constexpr (has_reco_cent) { - registryMC.fill(HIST("Events/Centrality/NgenZvtxSplit"), nchrg, mcCollision.posZ(), cGen, occGen); + registryMC.fill(HIST("Events/Centrality/NgenZvtxSplit"), nchrg, mcCollision.posZ(), cGen, occRec); } else { - registryMC.fill(HIST("Events/NgenZvtxSplit"), nchrg, mcCollision.posZ(), occGen); + registryMC.fill(HIST("Events/NgenZvtxSplit"), nchrg, mcCollision.posZ(), occRec); } } else { if constexpr (has_reco_cent) { - registryMC.fill(HIST("Events/Centrality/NgenZvtxNoSplit"), nchrg, mcCollision.posZ(), cGen, occGen); + registryMC.fill(HIST("Events/Centrality/NgenZvtxNoSplit"), nchrg, mcCollision.posZ(), cGen, occRec); } else { - registryMC.fill(HIST("Events/NgenZvtxNoSplit"), nchrg, mcCollision.posZ(), occGen); + registryMC.fill(HIST("Events/NgenZvtxNoSplit"), nchrg, mcCollision.posZ(), occRec); } } auto nCharged = countPart(particles); if constexpr (has_reco_cent) { - registryMC.fill(HIST("Events/Centrality/NtrkZvtxGen_t"), nCharged, mcCollision.posZ(), cGen, occGen); + registryMC.fill(HIST("Events/Centrality/NtrkZvtxGen_t"), nCharged, mcCollision.posZ(), cGen, occRec); } else { - registryMC.fill(HIST("Events/NtrkZvtxGen_t"), nCharged, mcCollision.posZ(), occGen); + registryMC.fill(HIST("Events/NtrkZvtxGen_t"), nCharged, mcCollision.posZ(), occRec); } if (gtOneRec) { if constexpr (has_reco_cent) { - registryMC.fill(HIST("Events/Centrality/NtrkZvtxGenRecEvt"), nCharged, mcCollision.posZ(), cGen, occGen); + registryMC.fill(HIST("Events/Centrality/NtrkZvtxGenRecEvt"), nCharged, mcCollision.posZ(), cGen, occRec); } else { - registryMC.fill(HIST("Events/NtrkZvtxGenRecEvt"), nCharged, mcCollision.posZ(), occGen); + registryMC.fill(HIST("Events/NtrkZvtxGenRecEvt"), nCharged, mcCollision.posZ(), occRec); } } if (collisions.size() == 0) { if constexpr (has_reco_cent) { - registryMC.fill(HIST("Events/Centrality/NotFoundEventZvtx"), mcCollision.posZ(), cGen, occGen); + registryMC.fill(HIST("Events/Centrality/NotFoundEventZvtx"), mcCollision.posZ(), cGen, occRec); } else { - registryMC.fill(HIST("Events/NotFoundEventZvtx"), mcCollision.posZ(), occGen); + registryMC.fill(HIST("Events/NotFoundEventZvtx"), mcCollision.posZ(), occRec); } } } - fillHistMC>(particles, mcCollision.posZ(), cGen, occGen, gtZeroColl, gtOneRec); + fillHistMC>(particles, mcCollision.posZ(), cGen, occRec, gtZeroColl, gtOneRec); } void processMcBestInclusive(CollsMCExtraMult::iterator const& mccollision, @@ -3179,6 +3154,8 @@ struct DndetaMFTPbPb { void processMcSgnEvtLossCentFT0C(CollsMCExtraMult::iterator const& mcCollision, soa::SmallGroups const& collisions, + CollBCs const& /*bcs*/, + aod::FT0s const& /*ft0s*/, aod::McParticles const& particles) { LOGP(debug, "MC col {} has {} reco cols", mcCollision.globalIndex(), collisions.size()); @@ -3210,24 +3187,85 @@ struct DndetaMFTPbPb { return; } registryMC.fill(HIST("Events/hMcEvtLossStatus"), static_cast(McEvtLossStatus::kMcEvtInelGt0wMft)); + // (all gen evt incl. no rec vtx) registryMC.fill(HIST("Events/hNchGen"), multMC, static_cast(EvtLossType::kGenSel)); // Evt loss den + const auto& nRecColls = collisions.size(); + registryMC.fill(HIST("Events/hNRecColls"), nRecColls); + + if (nRecColls > CintZero) { + auto maxNcontributors = -1; + auto bestCollIndex = -1; + float cRec = CInvalid; + for (const auto& collision : collisions) { + registryMC.fill(HIST("Events/hNRecCollsVsNPVContr"), nRecColls, collision.numContrib()); + registryMC.fill(HIST("Events/hNRecCollsVsCent"), getRecoCent(collision), nRecColls); + if (maxNcontributors < collision.numContrib()) { + maxNcontributors = collision.numContrib(); + bestCollIndex = collision.globalIndex(); + cRec = getRecoCent(collision); + } + registryMC.fill(HIST("Events/hMcEvtLossStatus"), static_cast(McEvtLossStatus::kMcEvtGt0RecColls)); + if (collision.has_foundFT0()) { + registryMC.fill(HIST("Events/hMcEvtLossStatus"), static_cast(McEvtLossStatus::kMcEvtHasFT0)); + } + if (collision.has_foundFT0() && collision.selection_bit(o2::aod::evsel::kIsTriggerTVX)) { + registryMC.fill(HIST("Events/hMcEvtLossStatus"), static_cast(McEvtLossStatus::kMcEvtHasTVX)); + } + } + bool isBCFT0TVX = false; + bool isBestCollHasBCFT0TVX = false; + for (auto const& collision : collisions) { + bool isBestCollIdx = false; + if (bestCollIndex == collision.globalIndex()) { + isBestCollIdx = true; + } + if (collision.has_foundBC() && collision.has_foundFT0() && collision.selection_bit(o2::aod::evsel::kIsTriggerTVX)) { + isBCFT0TVX = true; + registryMC.fill(HIST("Events/hNchGen"), multMC, static_cast(EvtLossType::kGenEvtBCFT0TVX)); + registryMC.fill(HIST("Events/hEvtSplitNRecHasBCFT0TVXVsCentVsMult"), cRec, multMC); + if (isBestCollIdx) { + isBestCollHasBCFT0TVX = true; + registryMC.fill(HIST("Events/hMcEvtLossStatus"), static_cast(McEvtLossStatus::kMcEvtBestCollHasTVX)); + registryMC.fill(HIST("Events/hNchGen"), multMC, static_cast(EvtLossType::kGenEvtBestCollHasTVX)); + registryMC.fill(HIST("Events/hEvtSplitNRecHasBestCollBCFT0TVXVsCentVsMult"), cRec, multMC); + } + } + } + for (auto const& particle : particles) { + if (!isChrgParticle(particle.pdgCode())) { + continue; + } + if (gConf.useParticleSel && !isParticleSelected(particle)) { + continue; + } + registryMC.fill(HIST("Tracks/hNchGenVsEtaWRecEvt"), multMC, particle.eta()); + if (isBCFT0TVX) { + registryMC.fill(HIST("Tracks/hNchGenVsEtaHasBCFT0TVX"), multMC, particle.eta()); + if (isBestCollHasBCFT0TVX) { + registryMC.fill(HIST("Tracks/hNchGenVsEtaHasBestCollBCFT0TVX"), multMC, particle.eta()); + } + } + } + } + bool gtZeroColl = false; float cRec = CInvalid; + auto largestNContribs = -1; for (auto const& collision : collisions) { if (gConf.useEvtSel && !isGoodEvent(collision)) { continue; } - if (gConf.rmSplitVertex && collision.globalIndex() != mcCollision.bestCollisionIndex()) { - continue; - } - registryMC.fill(HIST("Events/hNchGen"), multMC, static_cast(EvtLossType::kGenSplit)); - registryMC.fill(HIST("Events/hMultGenVsCentSplit"), getRecoCent(collision), multMC); - cRec = getRecoCent(collision); gtZeroColl = true; + // rec events w/ Rec Evt. Sel. (all vtx) + registryMC.fill(HIST("Events/hNchGen"), multMC, static_cast(EvtLossType::kGenSplit)); + registryMC.fill(HIST("Events/hEvtSplitNRecEvtSelVsCentVsMult"), getRecoCent(collision), multMC); + if (collision.numContrib() > largestNContribs) { + largestNContribs = collision.numContrib(); + cRec = getRecoCent(collision); + } } - - registryMC.fill(HIST("Events/Centrality/hEvtSigLossStatus"), 1., cRec); // Evt split den + registryMC.fill(HIST("Events/Centrality/hEvtSigLossStatus"), 1., cRec); registryMC.fill(HIST("Events/hMultGenVsCent"), multMC, getMultMC(mcCollision), cRec); registryMC.fill(HIST("Events/hMultGenVsCentMFTacc"), multMCNParticlesEtaMFT, cRec); @@ -3235,12 +3273,14 @@ struct DndetaMFTPbPb { if (gConf.useInelgt0wMFT && !isInelGt0wMft(particles)) { return; } + // gen events w/ Nrec > 0 (Gt0 rec vtx) + registryMC.fill(HIST("Events/hEvtSplitNGenEvtGt0RecVsCentVsMult"), cRec, multMC); registryMC.fill(HIST("Events/hNchGen"), multMC, static_cast(EvtLossType::kGenRecEvt)); // Evt loss num - registryMC.fill(HIST("Events/Centrality/hEvtSigLossStatus"), 2., cRec); // Evt split num + registryMC.fill(HIST("Events/Centrality/hEvtSigLossStatus"), 2., cRec); registryMC.fill(HIST("Events/hMultGenVsCentRecEvt"), multMC, getMultMC(mcCollision), cRec); registryMC.fill(HIST("Events/hMultGenVsCentRecEvtMFTacc"), multMCNParticlesEtaMFT, cRec); } - if (collisions.size() == 0) { + if (nRecColls == 0) { registryMC.fill(HIST("Events/Centrality/hEvtSigLossStatus"), 3., cRec); } for (auto const& particle : particles) {