Skip to content

Commit 7bcd950

Browse files
f3schshahor02
authored andcommitted
V0: cleanup unused AP cuts
No Armenteros-Podolanski selection cuts were ever applied and are not planned to be applied. Thus we can safely remove this. Nota Bene for me: The code right now is anyway bugged. Fixes - float pT1 = pPos * std::sqrt( 1 - p1 * p1 ); - selection params need to be adjusted Signed-off-by: Felix Schlepper <felix.schlepper@cern.ch>
1 parent 91ccc94 commit 7bcd950

2 files changed

Lines changed: 0 additions & 39 deletions

File tree

Detectors/Vertexing/include/DetectorsVertexing/SVertexerParams.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -123,14 +123,9 @@ struct SVertexerParams : public o2::conf::ConfigurableParamHelper<SVertexerParam
123123

124124
// cuts on different V0 PID params
125125
bool checkV0Hypothesis = true; // enable Mass Hypothesis check
126-
bool checkV0AP = false; // enable Armenteros-Podolanski check
127126
float pidCutsPhoton[SVertexHypothesis::NPIDParams] = {0.001, 20, 0.10, 20, 0.10, 0.0, 0.0, 0.0, 0.0}; // Photon
128-
float pidCutsPhotonAP_qT = 0.04; // Loose Armenteros-Podolanski q_T cut for photons in case mass-hypothesis was good
129127
float pidCutsK0[SVertexHypothesis::NPIDParams] = {0., 20, 0., 5.0, 0.0, 2.84798e-03, 9.84206e-04, 3.31951e-03, 2.39438}; // K0
130-
float pidCutsK0AP_qT = 0.6; // Loose Armenteros-Podolanski q_T cut for K0s in case mass-hypothesis was good
131128
float pidCutsLambda[SVertexHypothesis::NPIDParams] = {0., 20, 0., 5.0, 0.0, 1.09004e-03, 2.62291e-04, 8.93179e-03, 2.83121}; // Lambda
132-
float pidCutsLambdaAP_qT = 0.9; // Loose Armenteros-Podolanski q_T cut for Lambda in case mass-hypothesis was good
133-
float pidCutsLambdaAP_a = 0.9; // Loose Armenteros-Podolanski alpha cut for Lambda in case mass-hypothesis was good
134129
float pidCutsHTriton[SVertexHypothesis::NPIDParams] = {0.0025, 14, 0.07, 14, 0.0, 0.5, 0.0, 0.0, 0.0}; // HyperTriton
135130
float pidCutsHhydrog4[SVertexHypothesis::NPIDParams] = {0.0025, 14, 0.07, 14, 0.0, 0.5, 0.0, 0.0, 0.0}; // Hyperhydrog4 - Need to update
136131
//

Detectors/Vertexing/src/SVertexer.cxx

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -690,40 +690,6 @@ bool SVertexer::checkV0(const TrackCand& seedP, const TrackCand& seedN, int iP,
690690
}
691691
}
692692

693-
// apply loose Armenteros-Podolanski cut to photons and K0
694-
// the AP space and mass space correlated very well, and should in theory already be detected above but every bit helps
695-
if (mSVParams->checkV0Hypothesis && mSVParams->checkV0AP &&
696-
(hypCheckStatus[HypV0::Photon] || hypCheckStatus[HypV0::K0] || goodLamForCascade || goodALamForCascade)) {
697-
float pV0Abs = std::sqrt(p2V0);
698-
float pPos = std::sqrt(p2Pos);
699-
float p1 = (pV0[0] * pP[0] + pV0[1] * pP[1] + pV0[2] * pP[2]) /
700-
(pV0Abs * pPos);
701-
float p2 = (pV0[0] * pN[0] + pV0[1] * pN[1] + pV0[2] * pN[2]) /
702-
(pV0Abs * seedN.getP());
703-
float pL1 = p1 * seedP.getP();
704-
float pL2 = p2 * seedN.getP();
705-
float alpha = (pL1 - pL2) / (pL1 + pL2);
706-
float pT1 = pPos * std::sqrt(1 - p1);
707-
if (hypCheckStatus[HypV0::Photon] && pT1 > mSVParams->pidCutsPhotonAP_qT) {
708-
hypCheckStatus[HypV0::Photon] = false;
709-
}
710-
if (hypCheckStatus[HypV0::K0] && pT1 < mSVParams->pidCutsK0AP_qT) {
711-
hypCheckStatus[HypV0::K0] = false;
712-
}
713-
if ((goodLamForCascade || goodALamForCascade) && std::abs(alpha) > mSVParams->pidCutsLambdaAP_a && pT1 > mSVParams->pidCutsLambdaAP_qT) {
714-
goodLamForCascade = false;
715-
goodALamForCascade = false;
716-
}
717-
// Check if any good hypothesis remains
718-
goodHyp = false;
719-
for (int ipid = 0; ipid < nPID; ipid++) {
720-
if (hypCheckStatus[ipid]) {
721-
goodHyp = true;
722-
break;
723-
}
724-
}
725-
}
726-
727693
// apply mass selections for 3-body decay
728694
bool good3bodyV0Hyp = false;
729695
for (int ipid = 2; ipid < 4; ipid++) {

0 commit comments

Comments
 (0)