Skip to content

Commit 9a9b82c

Browse files
authored
[PWGCF] Add Nch Reco vs True (#16976)
1 parent 5dd7400 commit 9a9b82c

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

PWGCF/Flow/Tasks/flowMc.cxx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,7 @@ struct FlowMc {
218218
// pT histograms
219219
histos.add<TH1>("hImpactParameter", "hImpactParameter", HistType::kTH1D, {axisB});
220220
histos.add<TH2>("hNchVsImpactParameter", "hNchVsImpactParameter", HistType::kTH2D, {axisB, axisNch});
221+
histos.add<TH2>("hNchRecoVsNchGen", "hNchRecoVsNchGen", HistType::kTH2D, {axisNch, axisNch});
221222
histos.add<TH1>("hEventPlaneAngle", "hEventPlaneAngle", HistType::kTH1D, {axisPhi});
222223
histos.add<TH2>("hPtVsPhiGenerated", "hPtVsPhiGenerated", HistType::kTH2D, {axisPhi, axisPt});
223224
histos.add<TH2>("hPtVsPhiGlobal", "hPtVsPhiGlobal", HistType::kTH2D, {axisPhi, axisPt});
@@ -549,6 +550,7 @@ struct FlowMc {
549550

550551
int64_t nCh = 0;
551552
int64_t nChGlobal = 0;
553+
int64_t nChGen = 0;
552554
float centrality = 0;
553555
float lRandom = fRndm->Rndm();
554556
float weff = 1.;
@@ -606,6 +608,7 @@ struct FlowMc {
606608
continue;
607609
if (std::fabs(mcParticle.eta()) > cfgCutEta) // main acceptance
608610
continue;
611+
nChGen++;
609612
if (mcParticle.has_tracks()) {
610613
auto const& tracks = mcParticle.tracks_as<FilteredTracks>();
611614
for (auto const& track : tracks) {
@@ -632,6 +635,7 @@ struct FlowMc {
632635
}
633636
}
634637
}
638+
histos.fill(HIST("hNchRecoVsNchGen"), nChGlobal, nChGen);
635639
if (cfgTrackDensityCorrUse && cfgFlowCumulantEnabled) {
636640
psi2Est = std::atan2(q2y, q2x) / 2.;
637641
psi3Est = std::atan2(q3y, q3x) / 3.;

0 commit comments

Comments
 (0)