Skip to content

Commit 84138c6

Browse files
committed
[Xic0Xicp] Xicp added to selector and tree creator
1 parent e08b58d commit 84138c6

File tree

3 files changed

+1163
-99
lines changed

3 files changed

+1163
-99
lines changed

PWGHF/Core/SelectorCuts.h

Lines changed: 75 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -903,23 +903,24 @@ static const std::vector<std::string> labelsCutVar = {"m", "y", "eta", "eta Pi f
903903
namespace hf_cuts_xic0_xicp_to_hadronic
904904
{
905905
// cuts for xic0
906-
906+
namespace xic0
907+
{
907908
static constexpr int NBinsPt = 10;
908909
static constexpr int NCutVars = 10;
909910
// default values for the pT bin edges
910911
// offset by 1 from the bin numbers in cuts array
911912
constexpr double BinsPt[NBinsPt+1] = {
912-
0.,
913-
1.,
914-
2.,
915-
3.,
916-
4.,
917-
5.,
918-
6.,
919-
8.,
920-
12.,
921-
24.,
922-
36.
913+
0.,
914+
1.,
915+
2.,
916+
3.,
917+
4.,
918+
5.,
919+
6.,
920+
8.,
921+
12.,
922+
24.,
923+
36.
923924
};
924925
auto vecBinsPt = std::vector<double>{BinsPt, BinsPt+NBinsPt+1};
925926

@@ -960,6 +961,68 @@ static const std::vector<std::string> labelsCutVar = {
960961
"cosine pointing angle XY",
961962
"max impParXY Xi",
962963
"max impParXY Pi"};
964+
}// namspace hf_cuts_xic0_xicp_to_hadronic::xic0
965+
966+
namespace xicp
967+
{
968+
static constexpr int NBinsPt= 10;
969+
static constexpr int NCutVars= 12;
970+
// default values for the pT bin edges (can be used to configure histogram axis)
971+
// offset by 1 from the bin numbers in cuts array
972+
constexpr double BinsPt[NBinsPt+ 1] = {
973+
0.,
974+
1.,
975+
2.,
976+
3.,
977+
4.,
978+
5.,
979+
6.,
980+
8.,
981+
12.,
982+
24.,
983+
36.};
984+
auto vecBinsPt= std::vector<double>{BinsPt, BinsPt+ NBinsPt+ 1};
985+
986+
// default values for the cuts m ptXi ptPi0 ptPi1 chi2PCA dL dLXY cosp cospXY impParXY Xi Pi0 Pi1
987+
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 */
988+
{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 */
989+
{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 */
990+
{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 */
991+
{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 */
992+
{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 */
993+
{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 */
994+
{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 */
995+
{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 */
996+
{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 */
997+
// row labels
998+
static const std::vector<std::string> labelsPt= {
999+
"pT bin 0",
1000+
"pT bin 1",
1001+
"pT bin 2",
1002+
"pT bin 3",
1003+
"pT bin 4",
1004+
"pT bin 5",
1005+
"pT bin 6",
1006+
"pT bin 7",
1007+
"pT bin 8",
1008+
"pT bin 9"};
1009+
1010+
// column labels
1011+
static const std::vector<std::string> labelsCutVar= {
1012+
"m",
1013+
"pT Xi",
1014+
"pT Pi0",
1015+
"pT Pi1",
1016+
"chi2PCA",
1017+
"max decay length",
1018+
"max decay length XY",
1019+
"cos pointing angle",
1020+
"cos pointing angle XY",
1021+
"max impParXY Xi",
1022+
"max impParXY Pi0",
1023+
"max impParXY Pi1"}; // end Xicp settings
1024+
1025+
}// namspace hf_cuts_xic0_xicp_to_hadronic::xicp
9631026

9641027
}// namespace hf_cuts_xic0_xicp_to_hadronic
9651028

0 commit comments

Comments
 (0)