Skip to content

Commit 4c4ad3f

Browse files
jikim1290junleekim
andauthored
[PWGLF] seperate PID selection (#6274)
Co-authored-by: junleekim <junleekim@maccbookjunlee2024.dyndns.cern.ch>
1 parent 4e973ca commit 4c4ad3f

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

PWGLF/Tasks/Strangeness/lambdapolarization.cxx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,8 @@ struct lambdapolarization {
8686
Configurable<bool> cfgQAv0{"cfgQAv0", false, "QA plot"};
8787

8888
Configurable<int> cfgDaughTPCnclsMin{"cfgDaughTPCnclsMin", 70, "minimum fired crossed rows"};
89-
Configurable<float> cfgDaughPIDCutsTPC{"cfgDaughPIDCutsTPC", 5, "nsigma for TPC"};
89+
Configurable<float> cfgDaughPIDCutsTPCPr{"cfgDaughPIDCutsTPCPr", 5, "proton nsigma for TPC"};
90+
Configurable<float> cfgDaughPIDCutsTPCPi{"cfgDaughPIDCutsTPCPi", 5, "pion nsigma for TPC"};
9091
Configurable<float> cfgDaughEtaMin{"cfgDaughEtaMin", -0.8, "minimum daughter eta"};
9192
Configurable<float> cfgDaughEtaMax{"cfgDaughEtaMax", 0.8, "maximum daughter eta"};
9293
Configurable<float> cfgDaughPrPt{"cfgDaughPrPt", 0.6, "minimum daughter proton pt"};
@@ -192,7 +193,9 @@ struct lambdapolarization {
192193
{
193194
if (track.tpcNClsFound() < cfgDaughTPCnclsMin)
194195
return false;
195-
if (std::abs(track.tpcNSigmaPr()) > cfgDaughPIDCutsTPC)
196+
if (pid == 0 && std::abs(track.tpcNSigmaPr()) > cfgDaughPIDCutsTPCPr)
197+
return false;
198+
if (pid == 1 && std::abs(track.tpcNSigmaPi()) > cfgDaughPIDCutsTPCPi)
196199
return false;
197200
if (track.eta() > cfgDaughEtaMax)
198201
return false;

0 commit comments

Comments
 (0)