Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 9 additions & 7 deletions PWGCF/EbyEFluctuations/Tasks/FactorialMomentsTask.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ using namespace o2::framework::expressions;
TH1D* tmpFqErr[6][5][52];

struct FactorialMomentsTask {
Configurable<bool> useITS{"useITS", false, "Select tracks with ITS"};
Configurable<bool> useTPC{"useTPC", false, "Select tracks with TPC"};
Configurable<bool> useGlobal{"useGlobal", true, "Select global tracks"};
Configurable<bool> applyCheckPtForRec{"applyCheckPtForRec", false, "Apply checkpT for reconstructed tracks"};
Configurable<bool> applyCheckPtForMC{"applyCheckPtForMC", true, "Apply checkpT for MC-generated tracks"};
Configurable<float> centralEta{"centralEta", 0.9, "eta limit for tracks"};
Expand Down Expand Up @@ -402,9 +405,12 @@ struct FactorialMomentsTask {
fqEvent = {{{{{0, 0, 0, 0, 0, 0}}}}};
binConEvent = {{{0, 0, 0, 0, 0}}};
for (auto const& track : colltracks) {
// if (track.hasITS())
// if (track.hasTPC())
// if (track.isGlobalTrack()) {
if (useITS && !track.hasITS())
continue;
if (useTPC && !track.hasTPC())
continue;
if (useGlobal && !track.isGlobalTrack())
continue;
histos.fill(HIST("mCollID"), track.collisionId());
histos.fill(HIST("mEta"), track.eta());
histos.fill(HIST("mPt"), track.pt());
Expand Down Expand Up @@ -532,8 +538,6 @@ struct FactorialMomentsTask {
for (int iPt = 0; iPt < numPt; ++iPt) {
if (countTracks[iPt] > 0) {
mHistArrQA[iPt * 4 + 3]->Fill(countTracks[iPt]);
} else {
return;
}
}

Expand Down Expand Up @@ -589,8 +593,6 @@ struct FactorialMomentsTask {
for (int iPt = 0; iPt < numPt; ++iPt) {
if (countTracks[iPt] > 0) {
mHistArrQA[iPt * 4 + 3]->Fill(countTracks[iPt]);
} else {
return;
}
}
// Calculate the normalized factorial moments
Expand Down
Loading