Skip to content

Commit 703743f

Browse files
committed
PWGHF: Implent the possibility to apply proton PID for baryons in HF finding
1 parent b2b92b9 commit 703743f

3 files changed

Lines changed: 315 additions & 184 deletions

File tree

PWGHF/Core/SelectorCuts.h

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,16 @@ static const std::vector<std::string> labelsPtTrack{};
6363
static const std::vector<std::string> labelsCutVarTrack = {"min_dcaxytoprimary", "max_dcaxytoprimary"};
6464
} // namespace hf_cuts_single_track
6565

66+
namespace hf_presel_proton_pid
67+
{
68+
// default values for the PID cuts for protons in the track-index-skim-creator
69+
constexpr float cutsProtonPid[3][6] = {{0.f, 1000.f, 5.f, 0.f, 1000.f, 5.f},
70+
{0.f, 1000.f, 5.f, 0.f, 1000.f, 5.f},
71+
{0.f, 1000.f, 5.f, 0.f, 1000.f, 5.f}};
72+
static const std::vector<std::string> labelsCutsProtonPid = {"minPtTpc", "maxPtTpc", "nSigmaMaxTpc", "minPtTof", "maxPtTof", "nSigmaMaxTof"};
73+
static const std::vector<std::string> labelsRowsProtonPid = {"LcToPKPi", "XicToPKPi", "LcToPK0S"};
74+
} // namespace hf_presel_proton_pid
75+
6676
namespace hf_cuts_bdt_multiclass
6777
{
6878
static constexpr int nBinsPt = 1;

PWGHF/DataModel/CandidateReconstructionTables.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,10 +153,12 @@ DECLARE_SOA_TABLE(HfSelCollision, "AOD", "HFSELCOLLISION", //!
153153
namespace hf_sel_track
154154
{
155155
DECLARE_SOA_COLUMN(IsSelProng, isSelProng, int); //!
156+
DECLARE_SOA_COLUMN(IsProton, isProton, int8_t); //!
156157
} // namespace hf_sel_track
157158

158159
DECLARE_SOA_TABLE(HfSelTrack, "AOD", "HFSELTRACK", //!
159-
hf_sel_track::IsSelProng);
160+
hf_sel_track::IsSelProng,
161+
hf_sel_track::IsProton);
160162

161163
namespace hf_pv_refit_track
162164
{

0 commit comments

Comments
 (0)