Skip to content

Commit 81cd971

Browse files
phymanshualibuildmfaggin
authored
PWGHF: Add Selector Variables for Lc->PKPi Selector task (AliceO2Group#7907)
* Update SelectorCuts.h Add More Variables in the LcToPKPi selector * Update candidateSelectorLc.cxx Add More Selector Variables * Please consider the following formatting changes * Update SelectorCuts.h * Update SelectorCuts.h * Update candidateSelectorLc.cxx * Update PWGHF/Core/SelectorCuts.h --------- Co-authored-by: ALICE Action Bot <[email protected]> Co-authored-by: Mattia Faggin <[email protected]>
1 parent 8fade11 commit 81cd971

File tree

2 files changed

+28
-13
lines changed

2 files changed

+28
-13
lines changed

PWGHF/Core/SelectorCuts.h

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,7 @@ constexpr double cuts[nBinsPt][nCutVars] = {{0.05, 0.2, 0.1, 1000.0, 0.2, 300.0,
462462
namespace hf_cuts_lc_to_p_k_pi
463463
{
464464
static constexpr int nBinsPt = 10;
465-
static constexpr int nCutVars = 8;
465+
static constexpr int nCutVars = 11;
466466
// default values for the pT bin edges (can be used to configure histogram axis)
467467
// offset by 1 from the bin numbers in cuts array
468468
constexpr double binsPt[nBinsPt + 1] = {
@@ -479,17 +479,17 @@ constexpr double binsPt[nBinsPt + 1] = {
479479
36.};
480480
auto vecBinsPt = std::vector<double>{binsPt, binsPt + nBinsPt + 1};
481481

482-
// default values for the cuts
483-
constexpr double cuts[nBinsPt][nCutVars] = {{0.400, 0.4, 0.4, 0.4, 0., 0.005, 0., -1.}, /* 0 < pT < 1 */
484-
{0.400, 0.4, 0.4, 0.4, 0., 0.005, 0., -1.}, /* 1 < pT < 2 */
485-
{0.400, 0.4, 0.4, 0.4, 0., 0.005, 0., -1.}, /* 2 < pT < 3 */
486-
{0.400, 0.4, 0.4, 0.4, 0., 0.005, 0., -1.}, /* 3 < pT < 4 */
487-
{0.400, 0.4, 0.4, 0.4, 0., 0.005, 0., -1.}, /* 4 < pT < 5 */
488-
{0.400, 0.4, 0.4, 0.4, 0., 0.005, 0., -1.}, /* 5 < pT < 6 */
489-
{0.400, 0.4, 0.4, 0.4, 0., 0.005, 0., -1.}, /* 6 < pT < 8 */
490-
{0.400, 0.4, 0.4, 0.4, 0., 0.005, 0., -1.}, /* 8 < pT < 12 */
491-
{0.400, 0.4, 0.4, 0.4, 0., 0.005, 0., -1.}, /* 12 < pT < 24 */
492-
{0.400, 0.4, 0.4, 0.4, 0., 0.005, 0., -1.}}; /* 24 < pT < 36 */
482+
// default values for the cuts m, ptP, ptK, ptPi, chi2PCA, dL, cosp, dLXY, NdLXY, ImpParXY, mass(Kpi)
483+
constexpr double cuts[nBinsPt][nCutVars] = {{0.4, 0.4, 0.4, 0.4, 0., 0.005, 0., 0., 0., 1e+10, -1.}, /* 0 < pT < 1 */
484+
{0.4, 0.4, 0.4, 0.4, 0., 0.005, 0., 0., 0., 1e+10, -1.}, /* 1 < pT < 2 */
485+
{0.4, 0.4, 0.4, 0.4, 0., 0.005, 0., 0., 0., 1e+10, -1.}, /* 2 < pT < 3 */
486+
{0.4, 0.4, 0.4, 0.4, 0., 0.005, 0., 0., 0., 1e+10, -1.}, /* 3 < pT < 4 */
487+
{0.4, 0.4, 0.4, 0.4, 0., 0.005, 0., 0., 0., 1e+10, -1.}, /* 4 < pT < 5 */
488+
{0.4, 0.4, 0.4, 0.4, 0., 0.005, 0., 0., 0., 1e+10, -1.}, /* 5 < pT < 6 */
489+
{0.4, 0.4, 0.4, 0.4, 0., 0.005, 0., 0., 0., 1e+10, -1.}, /* 6 < pT < 8 */
490+
{0.4, 0.4, 0.4, 0.4, 0., 0.005, 0., 0., 0., 1e+10, -1.}, /* 8 < pT < 12 */
491+
{0.4, 0.4, 0.4, 0.4, 0., 0.005, 0., 0., 0., 1e+10, -1.}, /* 12 < pT < 24 */
492+
{0.4, 0.4, 0.4, 0.4, 0., 0.005, 0., 0., 0., 1e+10, -1.}}; /* 24 < pT < 36 */
493493

494494
// row labels
495495
static const std::vector<std::string> labelsPt = {
@@ -505,7 +505,7 @@ static const std::vector<std::string> labelsPt = {
505505
"pT bin 9"};
506506

507507
// column labels
508-
static const std::vector<std::string> labelsCutVar = {"m", "pT p", "pT K", "pT Pi", "Chi2PCA", "decay length", "cos pointing angle", "mass (Kpi)"};
508+
static const std::vector<std::string> labelsCutVar = {"m", "pT p", "pT K", "pT Pi", "Chi2PCA", "decay length", "cos pointing angle", "decLengthXY", "normDecLXY", "impParXY", "mass (Kpi)"};
509509
} // namespace hf_cuts_lc_to_p_k_pi
510510

511511
namespace hf_cuts_lc_to_k0s_p

PWGHF/TableProducer/candidateSelectorLc.cxx

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,21 @@ struct HfCandidateSelectorLc {
201201
return false;
202202
}
203203

204+
// candidate decay length XY
205+
if (candidate.decayLengthXY() <= cuts->get(pTBin, "decLengthXY")) {
206+
return false;
207+
}
208+
209+
// candidate normalized decay length XY
210+
if (candidate.decayLengthXYNormalised() < cuts->get(pTBin, "normDecLXY")) {
211+
return false;
212+
}
213+
214+
// candidate impact parameter XY
215+
if (std::abs(candidate.impactParameterXY()) > cuts->get(pTBin, "impParXY")) {
216+
return false;
217+
}
218+
204219
if (!isSelectedCandidateProngDca(candidate)) {
205220
return false;
206221
}

0 commit comments

Comments
 (0)