Skip to content

Commit 932a7a7

Browse files
ZFedericaalibuild
andauthored
PWGHF: add abs value in selections, use registry, add inv mass cut ToXiPi tasks (#2786)
* Add abs candidateSelector and inv mass cut candidateCreator * Switch to histo registry * Please consider the following formatting changes * Remove comments * Undo * Remove comments * Please consider the following formatting changes --------- Co-authored-by: ALICE Action Bot <alibuild@cern.ch>
1 parent 2d3fa6b commit 932a7a7

2 files changed

Lines changed: 149 additions & 136 deletions

File tree

PWGHF/TableProducer/candidateCreatorToXiPi.cxx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,11 @@ struct HfCandidateCreatorToXiPi {
7373
Configurable<std::string> ccdbPathGrp{"ccdbPathGrp", "GLO/GRP/GRP", "Path of the grp file (Run 2)"};
7474
Configurable<std::string> ccdbPathGrpMag{"ccdbPathGrpMag", "GLO/Config/GRPMagField", "CCDB path of the GRPMagField object (Run 3)"};
7575

76+
// cascade invariant mass cuts
77+
Configurable<bool> doCascadeInvMassCut{"doCascadeInvMassCut", false, "Use invariant mass cut to select cascade candidates"};
78+
Configurable<double> sigmaInvMassCascade{"sigmaInvMassCascade", 0.0025, "Invariant mass cut for cascade (sigma)"};
79+
Configurable<int> nSigmaInvMassCut{"nSigmaInvMassCut", 4, "Number of sigma for invariant mass cut"};
80+
7681
Service<o2::ccdb::BasicCCDBManager> ccdb;
7782
o2::base::MatLayerCylSet* lut;
7883
o2::base::Propagator::MatCorrType matCorr = o2::base::Propagator::MatCorrType::USEMatCorrLUT;
@@ -169,6 +174,13 @@ struct HfCandidateCreatorToXiPi {
169174
}
170175
}
171176

177+
// use invariant mass cut to select cascades candidates
178+
if (doCascadeInvMassCut) {
179+
if (std::abs(casc.mXi() - massXiFromPDG) > (nSigmaInvMassCut * sigmaInvMassCascade)) {
180+
continue;
181+
}
182+
}
183+
172184
//--------------------------reconstruct V0 track---------------------------
173185
// pseudorapidity
174186
double pseudorapV0PosDau = trackV0Dau0.eta();

0 commit comments

Comments
 (0)