Skip to content

Commit 5755cc0

Browse files
authored
[PWGCF] Run3/mc anaysis validation (#14978)
Signed-off-by: baasingh <balwansinghrana11@gmail.com>
1 parent 49c3604 commit 5755cc0

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

PWGCF/EbyEFluctuations/Tasks/FactorialMomentsTask.cxx

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ using namespace o2::framework::expressions;
4141
TH1D* tmpFqErr[6][5][52];
4242

4343
struct FactorialMomentsTask {
44+
Configurable<bool> useITS{"useITS", false, "Select tracks with ITS"};
45+
Configurable<bool> useTPC{"useTPC", false, "Select tracks with TPC"};
46+
Configurable<bool> useGlobal{"useGlobal", true, "Select global tracks"};
4447
Configurable<bool> applyCheckPtForRec{"applyCheckPtForRec", false, "Apply checkpT for reconstructed tracks"};
4548
Configurable<bool> applyCheckPtForMC{"applyCheckPtForMC", true, "Apply checkpT for MC-generated tracks"};
4649
Configurable<float> centralEta{"centralEta", 0.9, "eta limit for tracks"};
@@ -402,9 +405,12 @@ struct FactorialMomentsTask {
402405
fqEvent = {{{{{0, 0, 0, 0, 0, 0}}}}};
403406
binConEvent = {{{0, 0, 0, 0, 0}}};
404407
for (auto const& track : colltracks) {
405-
// if (track.hasITS())
406-
// if (track.hasTPC())
407-
// if (track.isGlobalTrack()) {
408+
if (useITS && !track.hasITS())
409+
continue;
410+
if (useTPC && !track.hasTPC())
411+
continue;
412+
if (useGlobal && !track.isGlobalTrack())
413+
continue;
408414
histos.fill(HIST("mCollID"), track.collisionId());
409415
histos.fill(HIST("mEta"), track.eta());
410416
histos.fill(HIST("mPt"), track.pt());

0 commit comments

Comments
 (0)