Skip to content

Commit a93d2f8

Browse files
basiachBarbara Chytla
andauthored
[PWGCF] FemtoUniverse - Improving daughter nSigma selection in processCascadeQA for Cascade task (#12685)
Co-authored-by: Barbara Chytla <barbara.chytla@cern.ch>
1 parent 376392c commit a93d2f8

File tree

1 file changed

+8
-20
lines changed

1 file changed

+8
-20
lines changed

PWGCF/FemtoUniverse/Tasks/femtoUniversePairTaskTrackCascadeExtended.cxx

Lines changed: 8 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,9 @@ struct femtoUniversePairTaskTrackCascadeExtended {
5757
Configurable<float> confCascInvMassLowLimit{"confCascInvMassLowLimit", 1.315, "Lower limit of the Casc invariant mass"};
5858
Configurable<float> confCascInvMassUpLimit{"confCascInvMassUpLimit", 1.325, "Upper limit of the Casc invariant mass"};
5959

60-
Configurable<float> confNSigmaTPCPion{"confNSigmaTPCPion", 4, "NSigmaTPCPion"};
61-
Configurable<float> confNSigmaTPCProton{"confNSigmaTPCProton", 4, "NSigmaTPCProton"};
60+
// TODO: Add seperate selection for daughter particles
61+
// Configurable<float> confNSigmaTPCPion{"confNSigmaTPCPion", 4, "NSigmaTPCPion"};
62+
// Configurable<float> confNSigmaTPCProton{"confNSigmaTPCProton", 4, "NSigmaTPCProton"};
6263

6364
/// applying narrow cut
6465
Configurable<float> confZVertexCut{"confZVertexCut", 10.f, "Event sel: Maximum z-Vertex (cm)"};
@@ -350,25 +351,12 @@ struct femtoUniversePairTaskTrackCascadeExtended {
350351
const auto& negChild = parts.iteratorAt(part.globalIndex() - 2 - parts.begin().globalIndex());
351352
const auto& bachelor = parts.iteratorAt(part.globalIndex() - 1 - parts.begin().globalIndex());
352353

353-
// nSigma selection for daughter and bachelor tracks
354-
if (part.sign() < 0) {
355-
if (std::abs(posChild.tpcNSigmaPr()) > confNSigmaTPCProton) {
356-
continue;
357-
}
358-
if (std::abs(negChild.tpcNSigmaPi()) > confNSigmaTPCPion) {
359-
continue;
360-
}
361-
} else {
362-
if (std::abs(negChild.tpcNSigmaPr()) > confNSigmaTPCProton) {
363-
continue;
364-
}
365-
if (std::abs(posChild.tpcNSigmaPi()) > confNSigmaTPCPion) {
366-
continue;
367-
}
368-
}
369-
if (std::abs(bachelor.tpcNSigmaPi()) > confNSigmaTPCPion) {
354+
float posChildTPC, negChildTPC, bachelorTPC, posChildTOF, negChildTOF, bachelorTOF;
355+
if (!isParticleTPC(posChild, CascChildTable[confCascType1][0], &posChildTPC) || !isParticleTPC(negChild, CascChildTable[confCascType1][1], &negChildTPC) || !isParticleTPC(bachelor, CascChildTable[confCascType1][2], &bachelorTPC))
356+
continue;
357+
358+
if ((!confCheckTOFBachelorOnly && (!isParticleTOF(posChild, CascChildTable[confCascType1][0], &posChildTOF) || !isParticleTOF(negChild, CascChildTable[confCascType1][1], &negChildTOF))) || !isParticleTOF(bachelor, CascChildTable[confCascType1][2], &bachelorTOF))
370359
continue;
371-
}
372360

373361
rXiQA.fill(HIST("hPtXi"), part.pt());
374362
rXiQA.fill(HIST("hEtaXi"), part.eta());

0 commit comments

Comments
 (0)