Skip to content

Commit 000c7e3

Browse files
authored
Add new histograms for pt and delta pt distributions
1 parent 04dbc54 commit 000c7e3

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

PWGCF/Flow/Tasks/flowTask.cxx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -394,6 +394,8 @@ struct FlowTask {
394394
registry.add("PtVariance_partB_WithinGap08", "", {HistType::kTProfile, {axisIndependent}});
395395
if (cfgAdditionObs.cfgDptDisEnable) {
396396
registry.add("hNormDeltaPt_X", "; #delta p_{T}/[p_{T}]; X", {HistType::kTH2D, {cfgAdditionObs.cfgDptDisAxisNormal, axisIndependent}});
397+
registry.add("hNormDeltaPt_X_afterCut", "; #delta p_{T}/[p_{T}]; X", {HistType::kTH2D, {cfgAdditionObs.cfgDptDisAxisNormal, axisIndependent}});
398+
registry.add("hPt_afterDptCut", "p_{T} distribution", {HistType::kTH1D, {axisPt}});
397399
}
398400
if (doprocessMCGen) {
399401
registry.add("MCGen/MChPhi", "#phi distribution", {HistType::kTH1D, {axisPhi}});
@@ -1222,6 +1224,7 @@ struct FlowTask {
12221224
std::vector<float> consistentEventVector = cfgUserIO.cfgConsistentEventVector;
12231225
if (cfgUserIO.cfgConsistentEventFlag)
12241226
LOGF(info, "consistentEventVector.size = %u", consistentEventVector.size());
1227+
std::vector<float> ptVec;
12251228

12261229
double psi2Est = 0, psi3Est = 0, psi4Est = 0;
12271230
float wEPeff = 1;
@@ -1290,6 +1293,8 @@ struct FlowTask {
12901293
}
12911294
}
12921295
registry.fill(HIST("hPt"), track.pt());
1296+
if (cfgAdditionObs.cfgDptDisEnable)
1297+
ptVec.push_back(track.pt());
12931298
if (cfgAdditionObs.cfgV02Enabled && track.eta() >= cfgAdditionObs.cfgV02FracEtaMin && track.eta() <= cfgAdditionObs.cfgV02FracEtaMax) {
12941299
cfgAdditionObs.listPtX[0]->Fill(independent, track.pt(), weff);
12951300
cfgAdditionObs.listPtX[sampleIndex + 1]->Fill(independent, track.pt(), weff);
@@ -1373,6 +1378,11 @@ struct FlowTask {
13731378
// only keep high 10% dpt event
13741379
return;
13751380
}
1381+
registry.fill(HIST("hNormDeltaPt_X_afterCut"), normDeltaPt, independent, weffEvent);
1382+
if (ptVec.size() > 0) {
1383+
for (auto trpt : ptVec)
1384+
registry.fill(HIST("hPt_afterDptCut"), trpt);
1385+
}
13761386
}
13771387

13781388
double weffEventDiffWithGap08 = weffEventWithinGap08 * weffEventWithinGap08 - weffEventSquareWithinGap08;

0 commit comments

Comments
 (0)