Skip to content

Commit d383455

Browse files
author
Victor
committed
[PWGCF] DptDpt - Tracking the insertion of pT bins of interest
1 parent 27640bd commit d383455

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

PWGCF/TwoParticleCorrelations/Tasks/dptDptEfficiencyAndQc.cxx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ float widthNSigmaBin = 0.1f;
9595
int noOfNSigmaBins = static_cast<int>((maxNSigma - minNSigma) / widthNSigmaBin);
9696

9797
/* the pT bins of interest for the relative separation within TPC sectors data collection */
98-
std::vector<int> ptBinsOfInterest{1, 2, 3};
98+
std::vector<int> ptBinsOfInterest{};
9999

100100
/* the PID selector object to help with the configuration and the id of the selected particles */
101101
o2::analysis::dptdptfilter::PIDSpeciesSelection pidselector;
@@ -1114,7 +1114,11 @@ struct DptDptEfficiencyAndQc {
11141114
noOfNSigmaBins = static_cast<int>((maxNSigma - minNSigma) / widthNSigmaBin);
11151115

11161116
/* configure the pT bins of interest */
1117-
ptBinsOfInterest = cfgPtBinsOfInterest.value;
1117+
TAxis ptAxis{ptbins, ptlow, ptup};
1118+
for (const int& bin : cfgPtBinsOfInterest.value) {
1119+
ptBinsOfInterest.push_back(bin);
1120+
LOGF(info, "Inserted pT bin %d: %.2f < pT < %.2f GeV/c", bin, ptAxis.GetBinLowEdge(bin), ptAxis.GetBinUpEdge(bin));
1121+
}
11181122

11191123
bool doBasicAnalysis = doprocessDetectorLevelNotStored || doprocessReconstructedNotStored || doprocessGeneratorLevelNotStored;
11201124
bool doExtraAnalysis = doprocessExtraDetectorLevelNotStored || doprocessExtraReconstructedNotStored || doprocessExtraGeneratorLevelNotStored;

0 commit comments

Comments
 (0)