Skip to content

Commit a3a45ec

Browse files
sarjeetagamisarjeeta gami
andauthored
[PWGLF] : modified PID selection for only TOF study (#8264)
Co-authored-by: sarjeeta gami <sarjeetagami@sarjeetas-MacBook-Air.local>
1 parent 1543752 commit a3a45ec

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

PWGLF/Tasks/Resonances/kstarpbpb.cxx

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020
#include <TH2F.h>
2121
#include <TLorentzVector.h>
2222
#include <TPDGCode.h>
23+
#include <string>
24+
#include <vector>
2325
#include <TDatabasePDG.h>
2426
#include <cmath>
2527
#include <array>
@@ -83,6 +85,7 @@ struct kstarpbpb {
8385
Configurable<float> cfgCutDCAxy{"cfgCutDCAxy", 2.0f, "DCAxy range for tracks"};
8486
Configurable<float> cfgCutDCAz{"cfgCutDCAz", 2.0f, "DCAz range for tracks"};
8587
Configurable<bool> useGlobalTrack{"useGlobalTrack", true, "use Global track"};
88+
Configurable<float> nsigmaCutTOF{"nsigmacutTOF", 3.0, "Value of the TOF Nsigma cut"};
8689
Configurable<float> nsigmaCutTPC{"nsigmacutTPC", 3.0, "Value of the TPC Nsigma cut"};
8790
Configurable<float> nsigmaCutCombined{"nsigmaCutCombined", 3.0, "Value of the TOF Nsigma cut"};
8891
Configurable<int> cfgNoMixedEvents{"cfgNoMixedEvents", 1, "Number of mixed events per event"};
@@ -269,17 +272,11 @@ struct kstarpbpb {
269272
bool selectionPID(const T& candidate, int PID)
270273
{
271274
if (PID == 0) {
272-
if (!candidate.hasTOF() && TMath::Abs(candidate.tpcNSigmaKa()) < nsigmaCutTPC) {
273-
return true;
274-
}
275-
if (candidate.hasTOF() && ((candidate.tofNSigmaKa() * candidate.tofNSigmaKa()) + (candidate.tpcNSigmaKa() * candidate.tpcNSigmaKa())) < (nsigmaCutCombined * nsigmaCutCombined)) {
275+
if (candidate.hasTOF() && TMath::Abs(candidate.tofNSigmaKa()) < nsigmaCutTOF) {
276276
return true;
277277
}
278278
} else if (PID == 1) {
279-
if (!candidate.hasTOF() && TMath::Abs(candidate.tpcNSigmaPi()) < nsigmaCutTPC) {
280-
return true;
281-
}
282-
if (candidate.hasTOF() && ((candidate.tofNSigmaPi() * candidate.tofNSigmaPi()) + (candidate.tpcNSigmaPi() * candidate.tpcNSigmaPi())) < (nsigmaCutCombined * nsigmaCutCombined)) {
279+
if (candidate.hasTOF() && TMath::Abs(candidate.tofNSigmaPi()) < nsigmaCutTOF) {
283280
return true;
284281
}
285282
}

0 commit comments

Comments
 (0)