Skip to content

Commit f84b010

Browse files
jikim1290alibuild
andauthored
[Common/EventPlane] eta selection with configurable (#12367)
Co-authored-by: ALICE Action Bot <alibuild@cern.ch>
1 parent fc1a93d commit f84b010

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

Common/TableProducer/qVectorsTable.cxx

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,13 @@
1919
///
2020

2121
// C++/ROOT includes.
22+
#include <TComplex.h>
23+
#include <TH3F.h>
24+
2225
#include <chrono>
2326
#include <string>
27+
#include <unordered_map>
2428
#include <vector>
25-
#include <TComplex.h>
26-
#include <TH3F.h>
2729

2830
// o2Physics includes.
2931
#include "Framework/AnalysisDataModel.h"
@@ -78,6 +80,9 @@ struct qVectorsTable {
7880

7981
Configurable<float> cfgMinPtOnTPC{"cfgMinPtOnTPC", 0.15, "minimum transverse momentum selection for TPC tracks participating in Q-vector reconstruction"};
8082
Configurable<float> cfgMaxPtOnTPC{"cfgMaxPtOnTPC", 5., "maximum transverse momentum selection for TPC tracks participating in Q-vector reconstruction"};
83+
Configurable<float> cfgEtaMax{"cfgEtaMax", 0.8, "Maximum pseudorapidiy for charged track"};
84+
Configurable<float> cfgEtaMin{"cfgEtaMin", -0.8, "Minimum pseudorapidiy for charged track"};
85+
8186
Configurable<int> cfgCorrLevel{"cfgCorrLevel", 4, "calibration step: 0 = no corr, 1 = gain corr, 2 = rectr, 3 = twist, 4 = full"};
8287
Configurable<std::vector<int>> cfgnMods{"cfgnMods", {2, 3}, "Modulation of interest"};
8388
Configurable<float> cfgMaxCentrality{"cfgMaxCentrality", 100.f, "max. centrality for Q vector calibration"};
@@ -437,7 +442,10 @@ struct qVectorsTable {
437442
continue;
438443
}
439444
histosQA.fill(HIST("ChTracks"), trk.pt(), trk.eta(), trk.phi(), cent);
440-
if (std::abs(trk.eta()) > 0.8) {
445+
if (trk.eta() > cfgEtaMax) {
446+
continue;
447+
}
448+
if (trk.eta() < cfgEtaMin) {
441449
continue;
442450
}
443451
qVectTPCall[0] += trk.pt() * std::cos(trk.phi() * nmode);

0 commit comments

Comments
 (0)