Skip to content

Commit 14c70d9

Browse files
authored
[PWGHF] Update candidate selector in XicToXiPiPi workflow (#11816)
1 parent 3bb9873 commit 14c70d9

File tree

3 files changed

+241
-115
lines changed

3 files changed

+241
-115
lines changed

PWGHF/Core/SelectorCuts.h

Lines changed: 26 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -753,8 +753,8 @@ static const std::vector<std::string> labelsCutVar = {"m", "pT p", "pT K", "pT P
753753

754754
namespace hf_cuts_xic_to_xi_pi_pi
755755
{
756-
static constexpr int NBinsPt = 10;
757-
static constexpr int NCutVars = 12;
756+
static constexpr int NBinsPt = 13;
757+
static constexpr int NCutVars = 11;
758758
// default values for the pT bin edges (can be used to configure histogram axis)
759759
// offset by 1 from the bin numbers in cuts array
760760
constexpr double BinsPt[NBinsPt + 1] = {
@@ -765,23 +765,29 @@ constexpr double BinsPt[NBinsPt + 1] = {
765765
4.,
766766
5.,
767767
6.,
768+
7.,
768769
8.,
770+
9.,
771+
10.,
772+
11.,
769773
12.,
770-
24.,
771-
36.};
774+
20.};
772775
auto vecBinsPt = std::vector<double>{BinsPt, BinsPt + NBinsPt + 1};
773776

774-
// default values for the cuts m ptXi ptPi0 ptPi1 chi2PCA dL dLXY cosp cospXY impParXY Xi Pi0 Pi1
775-
constexpr double Cuts[NBinsPt][NCutVars] = {{0.4, 0.4, 0.4, 0.4, 1e-5, 0.5, 0.5, 0.9, 0.9, 0.1, 0.1, 0.1}, /* 0 < pT < 1 */
776-
{0.4, 0.4, 0.4, 0.4, 1e-5, 0.5, 0.5, 0.9, 0.9, 0.1, 0.1, 0.1}, /* 1 < pT < 2 */
777-
{0.4, 0.4, 0.4, 0.4, 1e-5, 0.5, 0.5, 0.9, 0.9, 0.1, 0.1, 0.1}, /* 2 < pT < 3 */
778-
{0.4, 0.4, 0.4, 0.4, 1e-5, 0.5, 0.5, 0.9, 0.9, 0.1, 0.1, 0.1}, /* 3 < pT < 4 */
779-
{0.4, 0.4, 0.4, 0.4, 1e-5, 0.5, 0.5, 0.9, 0.9, 0.1, 0.1, 0.1}, /* 4 < pT < 5 */
780-
{0.4, 0.4, 0.4, 0.4, 1e-5, 0.5, 0.5, 0.9, 0.9, 0.1, 0.1, 0.1}, /* 5 < pT < 6 */
781-
{0.4, 0.4, 0.4, 0.4, 1e-5, 0.5, 0.5, 0.9, 0.9, 0.1, 0.1, 0.1}, /* 6 < pT < 8 */
782-
{0.4, 0.4, 0.4, 0.4, 1e-5, 0.5, 0.5, 0.9, 0.9, 0.1, 0.1, 0.1}, /* 8 < pT < 10 */
783-
{0.4, 0.4, 0.4, 0.4, 1e-5, 0.5, 0.5, 0.9, 0.9, 0.1, 0.1, 0.1}, /* 12 < pT < 24 */
784-
{0.4, 0.4, 0.4, 0.4, 1e-5, 0.5, 0.5, 0.9, 0.9, 0.1, 0.1, 0.1}}; /* 24 < pT < 36 */
777+
// default values for the cuts m Y Eta EtaDau ptPi0 ptPi1 chi2SV dL dLXY invMass Xi-Pi pairs
778+
constexpr double Cuts[NBinsPt][NCutVars] = {{0.4, 0.8, 0.8, 0.8, 0.4, 0.4, 100, 0.0, 0.0, 2.4, 2.4}, /* 0 < pT < 1 */
779+
{0.4, 0.8, 0.8, 0.8, 0.4, 0.4, 100, 0.0, 0.0, 2.4, 2.4}, /* 1 < pT < 2 */
780+
{0.4, 0.8, 0.8, 0.8, 0.4, 0.4, 100, 0.0, 0.0, 2.4, 2.4}, /* 2 < pT < 3 */
781+
{0.4, 0.8, 0.8, 0.8, 0.4, 0.4, 100, 0.0, 0.0, 2.4, 2.4}, /* 3 < pT < 4 */
782+
{0.4, 0.8, 0.8, 0.8, 0.4, 0.4, 100, 0.0, 0.0, 2.4, 2.4}, /* 4 < pT < 5 */
783+
{0.4, 0.8, 0.8, 0.8, 0.4, 0.4, 100, 0.0, 0.0, 2.4, 2.4}, /* 5 < pT < 6 */
784+
{0.4, 0.8, 0.8, 0.8, 0.4, 0.4, 100, 0.0, 0.0, 2.4, 2.4}, /* 6 < pT < 7 */
785+
{0.4, 0.8, 0.8, 0.8, 0.4, 0.4, 100, 0.0, 0.0, 2.4, 2.4}, /* 7 < pT < 8 */
786+
{0.4, 0.8, 0.8, 0.8, 0.4, 0.4, 100, 0.0, 0.0, 2.4, 2.4}, /* 8 < pT < 9 */
787+
{0.4, 0.8, 0.8, 0.8, 0.4, 0.4, 100, 0.0, 0.0, 2.4, 2.4}, /* 9 < pT < 10 */
788+
{0.4, 0.8, 0.8, 0.8, 0.4, 0.4, 100, 0.0, 0.0, 2.4, 2.4}, /* 10 < pT < 11 */
789+
{0.4, 0.8, 0.8, 0.8, 0.4, 0.4, 100, 0.0, 0.0, 2.4, 2.4}, /* 11 < pT < 12 */
790+
{0.4, 0.8, 0.8, 0.8, 0.4, 0.4, 100, 0.0, 0.0, 2.4, 2.4}}; /* 12 < pT < 20 */
785791

786792
// row labels
787793
static const std::vector<std::string> labelsPt = {
@@ -794,10 +800,13 @@ static const std::vector<std::string> labelsPt = {
794800
"pT bin 6",
795801
"pT bin 7",
796802
"pT bin 8",
797-
"pT bin 9"};
803+
"pT bin 9",
804+
"pT bin 10",
805+
"pT bin 11",
806+
"pT bin 12"};
798807

799808
// column labels
800-
static const std::vector<std::string> labelsCutVar = {"m", "pT Xi", "pT Pi0", "pT Pi1", "chi2PCA", "max decay length", "max decay length XY", "cos pointing angle", "cos pointing angle XY", "max impParXY Xi", "max impParXY Pi0", "max impParXY Pi1"};
809+
static const std::vector<std::string> labelsCutVar = {"m", "y", "eta", "eta Daughters", "pT Pi0", "pT Pi1", "chi2SV", "min decay length", "min decay length XY", "max inv mass Xi-Pi0", "max inv mass Xi-Pi1"};
801810
} // namespace hf_cuts_xic_to_xi_pi_pi
802811

803812
namespace hf_cuts_xicc_to_p_k_pi_pi

PWGHF/DataModel/CandidateSelectionTables.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -317,6 +317,14 @@ DECLARE_SOA_COLUMN(MlProbXicToPiKP, mlProbXicToPiKP, std::vector<float>); //!
317317
// XicPlus to Xi Pi Pi
318318
DECLARE_SOA_COLUMN(IsSelXicToXiPiPi, isSelXicToXiPiPi, int); //!
319319
DECLARE_SOA_COLUMN(MlProbXicToXiPiPi, mlProbXicToXiPiPi, std::vector<float>); //!
320+
enum XicToXiPiPiSelectionStep {
321+
RecoTotal = 0,
322+
RecoKinTopol,
323+
RecoTrackQuality,
324+
RecoPID,
325+
RecoMl,
326+
NSelectionSteps
327+
};
320328
} // namespace hf_sel_candidate_xic
321329

322330
DECLARE_SOA_TABLE(HfSelXicToPKPi, "AOD", "HFSELXIC", //!

0 commit comments

Comments
 (0)