Skip to content

Commit d5eb421

Browse files
authored
[PWGHF] Add pT-dependent invariant mass cut for Lc->pKpi (#17512)
1 parent 0bf7dfa commit d5eb421

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

PWGHF/TableProducer/candidateSelectorLc.cxx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
#include "PWGHF/DataModel/CandidateReconstructionTables.h"
2525
#include "PWGHF/DataModel/CandidateSelectionTables.h"
2626
#include "PWGHF/DataModel/TrackIndexSkimmingTables.h"
27+
#include "PWGHF/Utils/utilsAnalysis.h"
2728

2829
#include "Common/Core/TrackSelectorPID.h"
2930
#include "Common/DataModel/PIDResponseCombined.h"
@@ -108,6 +109,8 @@ struct HfCandidateSelectorLc {
108109
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)"};
109110
Configurable<int64_t> timestampCCDB{"timestampCCDB", -1, "timestamp of the ONNX file for ML model used to query in CCDB"};
110111
Configurable<bool> loadModelsFromCCDB{"loadModelsFromCCDB", false, "Flag to enable or disable the loading of models from CCDB"};
112+
// Mass Cut for trigger analysis
113+
Configurable<bool> useTriggerMassCut{"useTriggerMassCut", false, "Flag to enable parametrize pT differential mass cut for triggered data"};
111114

112115
o2::analysis::HfMlResponseLcToPKPi<float, aod::hf_cand::VertexerType::DCAFitter> hfMlResponseDCA;
113116
o2::analysis::HfMlResponseLcToPKPi<float, aod::hf_cand::VertexerType::KfParticle> hfMlResponseKF;
@@ -117,6 +120,7 @@ struct HfCandidateSelectorLc {
117120
TrackSelectorPi selectorPion;
118121
TrackSelectorKa selectorKaon;
119122
TrackSelectorPr selectorProton;
123+
HfTrigger3ProngCuts hfTriggerCuts;
120124

121125
using TracksSel = soa::Join<aod::TracksWExtra,
122126
aod::TracksPidPi, aod::PidTpcTofFullPi, aod::TracksPidKa, aod::PidTpcTofFullKa, aod::TracksPidPr, aod::PidTpcTofFullPr>;
@@ -327,6 +331,10 @@ struct HfCandidateSelectorLc {
327331
return false;
328332
}
329333

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

0 commit comments

Comments
 (0)