Skip to content

Commit 7fa2768

Browse files
committed
Add pT-dependent invariant mass cut for Lc->pKpi
1 parent 0c126d3 commit 7fa2768

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

PWGHF/TableProducer/candidateSelectorLc.cxx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,8 @@ struct HfCandidateSelectorLc {
108108
Configurable<std::vector<std::string>> onnxFileNames{"onnxFileNames", std::vector<std::string>{"ModelHandler_onnx_LcToPKPi.onnx"}, "ONNX file names for each pT bin (if not from CCDB full path)"};
109109
Configurable<int64_t> timestampCCDB{"timestampCCDB", -1, "timestamp of the ONNX file for ML model used to query in CCDB"};
110110
Configurable<bool> loadModelsFromCCDB{"loadModelsFromCCDB", false, "Flag to enable or disable the loading of models from CCDB"};
111+
// Mass Cut for trigger analysis
112+
Configurable<bool> useTriggerMassCut{"useTriggerMassCut", false, "Flag to enable parametrize pT differential mass cut for triggered data"};
111113

112114
o2::analysis::HfMlResponseLcToPKPi<float, aod::hf_cand::VertexerType::DCAFitter> hfMlResponseDCA;
113115
o2::analysis::HfMlResponseLcToPKPi<float, aod::hf_cand::VertexerType::KfParticle> hfMlResponseKF;
@@ -117,6 +119,7 @@ struct HfCandidateSelectorLc {
117119
TrackSelectorPi selectorPion;
118120
TrackSelectorKa selectorKaon;
119121
TrackSelectorPr selectorProton;
122+
HfTrigger3ProngCuts hfTriggerCuts;
120123

121124
using TracksSel = soa::Join<aod::TracksWExtra,
122125
aod::TracksPidPi, aod::PidTpcTofFullPi, aod::TracksPidKa, aod::PidTpcTofFullKa, aod::TracksPidPr, aod::PidTpcTofFullPr>;
@@ -327,6 +330,10 @@ struct HfCandidateSelectorLc {
327330
return false;
328331
}
329332

333+
if (useTriggerMassCut && !isCandidateInMassRange(massLc, o2::constants::physics::MassLambdaCPlus, ptCand, hfTriggerCuts)) {
334+
return false;
335+
}
336+
330337
/// cut on the Kpi pair invariant mass, to study Lc->pK*(->Kpi)
331338
const double cutMassKPi = cuts->get(pTBin, "mass (Kpi)");
332339
if (cutMassKPi > 0 && std::abs(massKPi - massK0Star892) > cutMassKPi) {

0 commit comments

Comments
 (0)