Skip to content

Commit a2ebc3b

Browse files
committed
Implement Vit comments
1 parent eb1eb00 commit a2ebc3b

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

PWGHF/Core/SelectorCuts.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -254,13 +254,13 @@ static const std::vector<std::string> labelsCutVar = {"massMin", "massMax", "cos
254254

255255
// Single prong min pt selection
256256
static constexpr int NSpecies = 8; // number of species for 3-prong candidates
257-
static const float ptProngMin[NSpecies][1] = {{0.4}, {0.4}, {0.4}, {0.4}, {0.4}, {0.4}, {0.4}, {0.4}};
257+
constexpr float ptProngMin[NSpecies][1] = {{0.4f}, {0.4f}, {0.4f}, {0.4f}, {0.4f}, {0.4f}, {0.4f}, {0.4f}};
258258

259259
// 3-prong species labels
260-
static const std::vector<std::string> labelsPtProngMin = {"Dplus", "Lc", "Ds", "Xic", "Cd", "Ct", "Ch", "Ca"};
260+
static const std::vector<std::string> labelsSpecies = {"Dplus", "Lc", "Ds", "Xic", "Cd", "Ct", "Ch", "Ca"};
261261

262262
// column label
263-
static const std::vector<std::string> labelsMinPt = {"Minimum prong transverse momentum (GeV/c)"};
263+
static const std::vector<std::string> labelsPtProngMin = {"Minimum pT (GeV/c)"};
264264

265265
} // namespace hf_cuts_presel_3prong
266266

PWGHF/TableProducer/trackIndexSkimCreator.cxx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1457,7 +1457,7 @@ struct HfTrackIndexSkimCreator {
14571457
Configurable<LabeledArray<double>> cutsDstarToD0Pi{"cutsDstarToD0Pi", {hf_cuts_presel_dstar::Cuts[0], hf_cuts_presel_dstar::NBinsPt, hf_cuts_presel_dstar::NCutVars, hf_cuts_presel_dstar::labelsPt, hf_cuts_presel_dstar::labelsCutVar}, "D*+->D0pi selections per pT bin"};
14581458

14591459
// Species-differential track min pT selection for 3-prong candidates
1460-
Configurable<LabeledArray<float>> ptProngMin3Prong{"ptProngMin3Prong", {hf_cuts_presel_3prong::ptProngMin[0], hf_cuts_presel_3prong::NSpecies, 1, hf_cuts_presel_3prong::labelsPtProngMin, hf_cuts_presel_3prong::labelsMinPt}, "Min pT selection for prongs of 3-prong candidates in GeV/c"};
1460+
Configurable<LabeledArray<float>> ptProngMin3Prong{"ptProngMin3Prong", {hf_cuts_presel_3prong::ptProngMin[0], hf_cuts_presel_3prong::NSpecies, 1, hf_cuts_presel_3prong::labelsSpecies, hf_cuts_presel_3prong::labelsPtProngMin}, "Min pT selection for prongs of 3-prong candidates in GeV/c"};
14611461

14621462
// proton PID selections for Lc and Xic
14631463
Configurable<bool> applyProtonPidForLcToPKPi{"applyProtonPidForLcToPKPi", false, "Apply proton PID for Lc->pKpi"};
@@ -1892,7 +1892,7 @@ struct HfTrackIndexSkimCreator {
18921892
}
18931893

18941894
// invariant mass
1895-
if ((config.debug || TESTBIT(isSelected, iDecay3P))) {
1895+
if (config.debug || TESTBIT(isSelected, iDecay3P)) {
18961896
const double minMass = cut3Prong[iDecay3P].get(binPt, 0u);
18971897
const double maxMass = cut3Prong[iDecay3P].get(binPt, 1u);
18981898
if (minMass >= 0. && maxMass > 0.) { // no need to check isSelected but to avoid mistakes
@@ -2032,7 +2032,7 @@ struct HfTrackIndexSkimCreator {
20322032
}
20332033

20342034
// decay length
2035-
if ((config.debug || TESTBIT(isSelected, iDecay3P))) {
2035+
if (config.debug || TESTBIT(isSelected, iDecay3P)) {
20362036
const auto decayLength = RecoDecay::distance(primVtx, secVtx);
20372037
if (decayLength < cut3Prong[iDecay3P].get(binPt, 3u)) { // 3u == decLenIndex[iDecay3P]
20382038
CLRBIT(isSelected, iDecay3P);
@@ -2043,7 +2043,7 @@ struct HfTrackIndexSkimCreator {
20432043
}
20442044

20452045
// prong daughter pT
2046-
if ((config.debug || TESTBIT(isSelected, iDecay3P))) {
2046+
if (config.debug || TESTBIT(isSelected, iDecay3P)) {
20472047
const auto ptProngMin = config.ptProngMin3Prong->get(iDecay3P);
20482048
if (ptProngs[0] < ptProngMin || ptProngs[1] < ptProngMin || ptProngs[2] < ptProngMin) {
20492049
CLRBIT(isSelected, iDecay3P);

0 commit comments

Comments
 (0)