Skip to content

Commit 3c48e3e

Browse files
PWGHF: Turn off EP-related axes in flow thnsparse (#8178)
1 parent f0c9faf commit 3c48e3e

1 file changed

Lines changed: 18 additions & 5 deletions

File tree

PWGHF/D2H/Tasks/taskFlowCharmHadrons.cxx

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ struct HfTaskFlowCharmHadrons {
5757
Configurable<int> qvecDetector{"qvecDetector", 3, "Detector for Q vector estimation (FV0A: 0, FT0M: 1, FT0A: 2, FT0C: 3, TPC Pos: 4, TPC Neg: 5, TPC Tot: 6)"};
5858
Configurable<int> centEstimator{"centEstimator", 2, "Centrality estimation (FT0A: 1, FT0C: 2, FT0M: 3, FV0A: 4)"};
5959
Configurable<int> selectionFlag{"selectionFlag", 1, "Selection Flag for hadron (e.g. 1 for skimming, 3 for topo. and kine., 7 for PID)"};
60+
Configurable<bool> storeEP{"storeEP", false, "Flag to store EP-related axis"};
6061
Configurable<bool> storeMl{"storeMl", false, "Flag to store ML scores"};
6162
Configurable<bool> saveEpResoHisto{"saveEpResoHisto", false, "Flag to save event plane resolution histogram"};
6263
Configurable<std::string> ccdbUrl{"ccdbUrl", "http://alice-ccdb.cern.ch", "url of the ccdb repository"};
@@ -118,11 +119,15 @@ struct HfTaskFlowCharmHadrons {
118119
const AxisSpec thnAxisMlOne{thnConfigAxisMlOne, "Bkg score"};
119120
const AxisSpec thnAxisMlTwo{thnConfigAxisMlTwo, "FD score"};
120121

122+
std::vector<AxisSpec> axes = {thnAxisInvMass, thnAxisPt, thnAxisCent, thnAxisScalarProd};
123+
if (storeEP) {
124+
axes.insert(axes.end(), {thnAxisCosNPhi, thnAxisCosDeltaPhi});
125+
}
121126
if (storeMl) {
122-
registry.add("hSparseFlowCharm", "THn for SP", HistType::kTHnSparseF, {thnAxisInvMass, thnAxisPt, thnAxisCent, thnAxisCosNPhi, thnAxisCosDeltaPhi, thnAxisScalarProd, thnAxisMlOne, thnAxisMlTwo});
123-
} else {
124-
registry.add("hSparseFlowCharm", "THn for SP", HistType::kTHnSparseF, {thnAxisInvMass, thnAxisPt, thnAxisCent, thnAxisCosNPhi, thnAxisCosDeltaPhi, thnAxisScalarProd});
127+
axes.insert(axes.end(), {thnAxisMlOne, thnAxisMlTwo});
125128
}
129+
registry.add("hSparseFlowCharm", "THn for SP", HistType::kTHnSparseF, axes);
130+
126131
registry.add("spReso/hSpResoFT0cFT0a", "hSpResoFT0cFT0a; centrality; Q_{FT0c} #bullet Q_{FT0a}", {HistType::kTH2F, {thnAxisCent, thnAxisScalarProd}});
127132
registry.add("spReso/hSpResoFT0cFV0a", "hSpResoFT0cFV0a; centrality; Q_{FT0c} #bullet Q_{FV0a}", {HistType::kTH2F, {thnAxisCent, thnAxisScalarProd}});
128133
registry.add("spReso/hSpResoFT0cTPCpos", "hSpResoFT0cTPCpos; centrality; Q_{FT0c} #bullet Q_{TPCpos}", {HistType::kTH2F, {thnAxisCent, thnAxisScalarProd}});
@@ -236,9 +241,17 @@ struct HfTaskFlowCharmHadrons {
236241
std::vector<float>& outputMl)
237242
{
238243
if (storeMl) {
239-
registry.fill(HIST("hSparseFlowCharm"), mass, pt, cent, cosNPhi, cosDeltaPhi, sp, outputMl[0], outputMl[1]);
244+
if (storeEP) {
245+
registry.fill(HIST("hSparseFlowCharm"), mass, pt, cent, sp, cosNPhi, cosDeltaPhi, outputMl[0], outputMl[1]);
246+
} else {
247+
registry.fill(HIST("hSparseFlowCharm"), mass, pt, cent, sp, outputMl[0], outputMl[1]);
248+
}
240249
} else {
241-
registry.fill(HIST("hSparseFlowCharm"), mass, pt, cent, cosNPhi, cosDeltaPhi, sp);
250+
if (storeEP) {
251+
registry.fill(HIST("hSparseFlowCharm"), mass, pt, cent, sp, cosNPhi, cosDeltaPhi);
252+
} else {
253+
registry.fill(HIST("hSparseFlowCharm"), mass, pt, cent, sp);
254+
}
242255
}
243256
}
244257

0 commit comments

Comments
 (0)