Skip to content

Commit b6b1367

Browse files
[DGP] AOTTrack - Fix De PID in qaEfficiency (#4654)
1 parent ac57ad5 commit b6b1367

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

DPG/Tasks/AOTTrack/qaEfficiency.cxx

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ struct QaEfficiency {
6868
Configurable<bool> noFakesHits{"noFakesHits", false, "Flag to reject tracks that have fake hits"};
6969
Configurable<bool> skipEventsWithoutTPCTracks{"skipEventsWithoutTPCTracks", false, "Flag to reject events that have no tracks reconstructed in the TPC"};
7070
Configurable<float> maxProdRadius{"maxProdRadius", 9999.f, "Maximum production radius of the particle under study"};
71+
Configurable<float> nsigmaTPCDe{"nsigmaTPCDe", 3.f, "Value of the Nsigma TPC cut for deuterons PID"};
7172
// Charge selection
7273
Configurable<bool> doPositivePDG{"doPositivePDG", false, "Flag to fill histograms for positive PDG codes."};
7374
Configurable<bool> doNegativePDG{"doNegativePDG", false, "Flag to fill histograms for negative PDG codes."};
@@ -820,10 +821,14 @@ struct QaEfficiency {
820821

821822
void initData(const AxisSpec& axisSel)
822823
{
823-
if (!doprocessData) {
824+
if (!doprocessData && !doprocessDataWithPID) {
824825
return;
825826
}
826827

828+
if (doprocessData == true && doprocessDataWithPID == true) {
829+
LOG(fatal) << "Can't enable processData and doprocessDataWithPID in the same time, pick one!";
830+
}
831+
827832
auto h = histos.add<TH1>("Data/trackSelection", "Track Selection", kTH1F, {axisSel});
828833
h->GetXaxis()->SetBinLabel(trkCutIdxTrkRead, "Tracks read");
829834
h->GetXaxis()->SetBinLabel(trkCutIdxHasMcPart, "");
@@ -1932,7 +1937,7 @@ struct QaEfficiency {
19321937
if (!isTrackSelected<false>(track, HIST("Data/trackSelection"))) {
19331938
continue;
19341939
}
1935-
if (abs(track.tpcNSigmaDe()) > 3.f) {
1940+
if (abs(track.tpcNSigmaDe()) > nsigmaTPCDe) {
19361941
continue;
19371942
}
19381943
histos.fill(HIST("Data/trackLength"), track.length());
@@ -2043,7 +2048,7 @@ struct QaEfficiency {
20432048
}
20442049
}
20452050
}
2046-
PROCESS_SWITCH(QaEfficiency, processHmpid, "process HMPID matching", true);
2051+
PROCESS_SWITCH(QaEfficiency, processHmpid, "process HMPID matching", false);
20472052
};
20482053

20492054
WorkflowSpec defineDataProcessing(ConfigContext const& cfgc)

0 commit comments

Comments
 (0)