Skip to content

Commit

Permalink
PWGHF: Add Selector Variables for Lc->PKPi Selector task (#7907)
Browse files Browse the repository at this point in the history
* 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]>
  • Loading branch information
3 people authored Oct 7, 2024
1 parent 8fade11 commit 81cd971
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 13 deletions.
26 changes: 13 additions & 13 deletions PWGHF/Core/SelectorCuts.h
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@ constexpr double cuts[nBinsPt][nCutVars] = {{0.05, 0.2, 0.1, 1000.0, 0.2, 300.0,
namespace hf_cuts_lc_to_p_k_pi
{
static constexpr int nBinsPt = 10;
static constexpr int nCutVars = 8;
static constexpr int nCutVars = 11;
// default values for the pT bin edges (can be used to configure histogram axis)
// offset by 1 from the bin numbers in cuts array
constexpr double binsPt[nBinsPt + 1] = {
Expand All @@ -479,17 +479,17 @@ constexpr double binsPt[nBinsPt + 1] = {
36.};
auto vecBinsPt = std::vector<double>{binsPt, binsPt + nBinsPt + 1};

// default values for the cuts
constexpr double cuts[nBinsPt][nCutVars] = {{0.400, 0.4, 0.4, 0.4, 0., 0.005, 0., -1.}, /* 0 < pT < 1 */
{0.400, 0.4, 0.4, 0.4, 0., 0.005, 0., -1.}, /* 1 < pT < 2 */
{0.400, 0.4, 0.4, 0.4, 0., 0.005, 0., -1.}, /* 2 < pT < 3 */
{0.400, 0.4, 0.4, 0.4, 0., 0.005, 0., -1.}, /* 3 < pT < 4 */
{0.400, 0.4, 0.4, 0.4, 0., 0.005, 0., -1.}, /* 4 < pT < 5 */
{0.400, 0.4, 0.4, 0.4, 0., 0.005, 0., -1.}, /* 5 < pT < 6 */
{0.400, 0.4, 0.4, 0.4, 0., 0.005, 0., -1.}, /* 6 < pT < 8 */
{0.400, 0.4, 0.4, 0.4, 0., 0.005, 0., -1.}, /* 8 < pT < 12 */
{0.400, 0.4, 0.4, 0.4, 0., 0.005, 0., -1.}, /* 12 < pT < 24 */
{0.400, 0.4, 0.4, 0.4, 0., 0.005, 0., -1.}}; /* 24 < pT < 36 */
// default values for the cuts m, ptP, ptK, ptPi, chi2PCA, dL, cosp, dLXY, NdLXY, ImpParXY, mass(Kpi)
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 */
{0.4, 0.4, 0.4, 0.4, 0., 0.005, 0., 0., 0., 1e+10, -1.}, /* 1 < pT < 2 */
{0.4, 0.4, 0.4, 0.4, 0., 0.005, 0., 0., 0., 1e+10, -1.}, /* 2 < pT < 3 */
{0.4, 0.4, 0.4, 0.4, 0., 0.005, 0., 0., 0., 1e+10, -1.}, /* 3 < pT < 4 */
{0.4, 0.4, 0.4, 0.4, 0., 0.005, 0., 0., 0., 1e+10, -1.}, /* 4 < pT < 5 */
{0.4, 0.4, 0.4, 0.4, 0., 0.005, 0., 0., 0., 1e+10, -1.}, /* 5 < pT < 6 */
{0.4, 0.4, 0.4, 0.4, 0., 0.005, 0., 0., 0., 1e+10, -1.}, /* 6 < pT < 8 */
{0.4, 0.4, 0.4, 0.4, 0., 0.005, 0., 0., 0., 1e+10, -1.}, /* 8 < pT < 12 */
{0.4, 0.4, 0.4, 0.4, 0., 0.005, 0., 0., 0., 1e+10, -1.}, /* 12 < pT < 24 */
{0.4, 0.4, 0.4, 0.4, 0., 0.005, 0., 0., 0., 1e+10, -1.}}; /* 24 < pT < 36 */

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

// column labels
static const std::vector<std::string> labelsCutVar = {"m", "pT p", "pT K", "pT Pi", "Chi2PCA", "decay length", "cos pointing angle", "mass (Kpi)"};
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)"};
} // namespace hf_cuts_lc_to_p_k_pi

namespace hf_cuts_lc_to_k0s_p
Expand Down
15 changes: 15 additions & 0 deletions PWGHF/TableProducer/candidateSelectorLc.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,21 @@ struct HfCandidateSelectorLc {
return false;
}

// candidate decay length XY
if (candidate.decayLengthXY() <= cuts->get(pTBin, "decLengthXY")) {
return false;
}

// candidate normalized decay length XY
if (candidate.decayLengthXYNormalised() < cuts->get(pTBin, "normDecLXY")) {
return false;
}

// candidate impact parameter XY
if (std::abs(candidate.impactParameterXY()) > cuts->get(pTBin, "impParXY")) {
return false;
}

if (!isSelectedCandidateProngDca(candidate)) {
return false;
}
Expand Down

0 comments on commit 81cd971

Please sign in to comment.