Skip to content

Commit 9e1514b

Browse files
author
Marta Razza
committed
PWGHF/D2H: PID selections changed in taskDeuteronFromLb
1 parent 352f47d commit 9e1514b

1 file changed

Lines changed: 8 additions & 10 deletions

File tree

PWGHF/D2H/Tasks/taskDeuteronFromLb.cxx

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,9 @@ struct HfTaskDeuteronFromLb {
6666
Configurable<float> cfgITScls{"cfgITScls", 2, "Minimum ITS clusters"};
6767
Configurable<float> cfgMaxPt{"cfgMaxPt", 5.0f, "Maximum pT cut"};
6868
Configurable<float> cfgMinPt{"cfgMinPt", 0.5f, "Minimum pT cut"};
69-
Configurable<float> cfgTPCNsigma{"cfgTPCNsigma", 4.0f, "TPC n sigma for deuteron PID"};
70-
Configurable<float> cfgTofNsigmaMin{"cfgTofNsigmaMin", 3.0f, "TOF n sigma min for deuteron PID"};
71-
Configurable<float> cfgTofNsigmaMax{"cfgTofNsigmaMax", 4.0f, "TOF n sigma max for deuteron PID"};
72-
Configurable<float> ptThresholdPid{"ptThresholdPid", 0.5f, "pT threshold to switch between 4 and 3 sigmas for TOF PID"};
69+
Configurable<float> cfgTPCNsigma{"cfgTPCNsigma", 3.0f, "TPC n sigma for deuteron PID"};
70+
Configurable<float> cfgTofNsigma{"cfgTofNsigma", 3.0f, "TOF n sigma for deuteron PID"};
71+
Configurable<float> ptThresholdPid{"ptThresholdPid", 0.5f, "pT threshold to switch between TPC and TPC+TOF PID"};
7372
Configurable<float> cfgDCAmin{"cfgDCAmin", 0.05f, "Minimum DCA for deuteron PID"};
7473
Configurable<float> cfgDCAmax{"cfgDCAmax", 1000.0f, "Maximum DCA for deuteron PID"};
7574
Configurable<float> rapidityCut{"rapidityCut", 0.5f, "Rapidity cut"};
@@ -260,11 +259,10 @@ struct HfTaskDeuteronFromLb {
260259
}
261260

262261
const bool isTPCDe = std::abs(track.tpcNSigmaDe()) < cfgTPCNsigma;
263-
const bool isTOFDe_min = std::abs(track.tofNSigmaDe()) > cfgTofNsigmaMin;
264-
const bool isTOFDe_max = std::abs(track.tofNSigmaDe()) < cfgTofNsigmaMax;
262+
const bool isTOFDe = std::abs(track.tofNSigmaDe()) < cfgTofNsigma;
265263

266264
if (track.pt() < ptThresholdPid) {
267-
if (isTPCDe && isTOFDe_max) {
265+
if (isTPCDe) {
268266
QAHistos.fill(HIST("Data/ptAntiDeuteron"), track.pt());
269267
QAHistos.fill(HIST("Data/etaAntideuteron"), track.eta());
270268
QAHistos.fill(HIST("Data/hDCAxyVsPt"), track.pt(), dca[0]);
@@ -273,7 +271,7 @@ struct HfTaskDeuteronFromLb {
273271
QAHistos.fill(HIST("Data/hnSigmaTOFVsPt"), track.pt(), track.tofNSigmaDe());
274272
}
275273
} else {
276-
if (isTPCDe && isTOFDe_min && isTOFDe_max) {
274+
if (isTPCDe && isTOFDe) {
277275
QAHistos.fill(HIST("Data/ptAntiDeuteron"), track.pt());
278276
QAHistos.fill(HIST("Data/etaAntideuteron"), track.eta());
279277
QAHistos.fill(HIST("Data/hDCAxyVsPt"), track.pt(), dca[0]);
@@ -285,7 +283,7 @@ struct HfTaskDeuteronFromLb {
285283
}
286284
}
287285
}
288-
PROCESS_SWITCH(HfTaskDeuteronFromLb, processData, "processData", false);
286+
PROCESS_SWITCH(HfTaskDeuteronFromLb, processData, "processData", true);
289287

290288
void processMC(MCCollisionCandidates::iterator const& collision, MCTrackCandidates const& tracks, o2::aod::McParticles const&)
291289
{
@@ -423,7 +421,7 @@ struct HfTaskDeuteronFromLb {
423421
}
424422
}
425423

426-
PROCESS_SWITCH(HfTaskDeuteronFromLb, processGen, "processGen", true);
424+
PROCESS_SWITCH(HfTaskDeuteronFromLb, processGen, "processGen", false);
427425
};
428426

429427
WorkflowSpec defineDataProcessing(ConfigContext const& cfgc)

0 commit comments

Comments
 (0)