Skip to content

Commit 800cf79

Browse files
committed
Fixed the comment from vit
1 parent 798fbae commit 800cf79

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

PWGHF/Core/SelectorCuts.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,10 @@ static const std::vector<std::string> labelsCutVarTrack = {"min_dcaxytoprimary",
6767

6868
namespace hf_presel_pid
6969
{
70+
static constexpr int NPidRows = 7; // number of PID channels / rows
71+
static constexpr int NPidCuts = 6; // number of cuts per PID (TPC+TOF)
7072
// default values for the PID cuts for protons in the track-index-skim-creator
71-
constexpr float CutsPid[7][6] = {{0.f, 1000.f, 5.f, 0.f, 1000.f, 5.f},
73+
constexpr float CutsPid[NPidRows][NPidCuts] = {{0.f, 1000.f, 5.f, 0.f, 1000.f, 5.f},
7274
{0.f, 1000.f, 5.f, 0.f, 1000.f, 5.f},
7375
{0.f, 1000.f, 5.f, 0.f, 1000.f, 5.f},
7476
{0.f, 1000.f, 5.f, 0.f, 1000.f, 5.f},

PWGHF/TableProducer/trackIndexSkimCreator.cxx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ constexpr int ChannelsDeuteronPid = ChannelsProtonPid::NChannelsProtonPid + 1;
140140
constexpr int ChannelsTritonPid = ChannelsProtonPid::NChannelsProtonPid + 2;
141141
constexpr int ChannelsHeliumPid = ChannelsProtonPid::NChannelsProtonPid + 3;
142142
constexpr int NChannelsPidFor3Prong = static_cast<int>(ChannelsProtonPid::NChannelsProtonPid) + static_cast<int>(ChannelsKaonPid::NChannelsKaonPid) + static_cast<int>(ChannelsLightNucleiPid::NChannelsLightNucleiPid);
143+
143144
enum class ChannelsNucleiQA : int {
144145
Deuteron = 0,
145146
Triton = 1,
@@ -331,7 +332,7 @@ struct HfTrackIndexSkimCreatorTagSelTracks {
331332
Configurable<bool> useIsGlobalTrackWoDCAForSoftPion{"useIsGlobalTrackWoDCAForSoftPion", false, "check isGlobalTrackWoDCA status for soft pion tracks"};
332333
Configurable<bool> useIsQualityTrackITSForSoftPion{"useIsQualityTrackITSForSoftPion", true, "check qualityTracksITS status for soft pion tracks"};
333334
// proton PID, applied only if corresponding process function enabled
334-
Configurable<LabeledArray<float>> selectionsPid{"selectionsPid", {hf_presel_pid::CutsPid[0], 7, 6, hf_presel_pid::labelsRowsPid, hf_presel_pid::labelsCutsPid}, "PID selections for proton / kaon / deuteron / triton /helium applied if proper process function enabled"};
335+
Configurable<LabeledArray<float>> selectionsPid{"selectionsPid", {hf_presel_pid::CutsPid[0], hf_presel_pid::NPidRows, hf_presel_pid::NPidCuts, hf_presel_pid::labelsRowsPid, hf_presel_pid::labelsCutsPid}, "PID selections for proton / kaon / deuteron / triton /helium applied if proper process function enabled"};
335336
// CCDB
336337
Configurable<std::string> ccdbUrl{"ccdbUrl", "http://alice-ccdb.cern.ch", "url of the ccdb repository"};
337338
Configurable<std::string> ccdbPathLut{"ccdbPathLut", "GLO/Param/MatLUT", "Path for LUT parametrization"};

0 commit comments

Comments
 (0)