Skip to content

Commit b1b42b3

Browse files
committed
[Xic0Xicp] Xicp added to selector and tree creator
1 parent 813907a commit b1b42b3

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
@@ -803,23 +803,24 @@ static const std::vector<std::string> labelsCutVar = {"m", "pT Xi", "pT Pi0", "p
803803
namespace hf_cuts_xic0_xicp_to_hadronic
804804
{
805805
// cuts for xic0
806-
806+
namespace xic0
807+
{
807808
static constexpr int NBinsPt = 10;
808809
static constexpr int NCutVars = 10;
809810
// default values for the pT bin edges
810811
// offset by 1 from the bin numbers in cuts array
811812
constexpr double BinsPt[NBinsPt+1] = {
812-
0.,
813-
1.,
814-
2.,
815-
3.,
816-
4.,
817-
5.,
818-
6.,
819-
8.,
820-
12.,
821-
24.,
822-
36.
813+
0.,
814+
1.,
815+
2.,
816+
3.,
817+
4.,
818+
5.,
819+
6.,
820+
8.,
821+
12.,
822+
24.,
823+
36.
823824
};
824825
auto vecBinsPt = std::vector<double>{BinsPt, BinsPt+NBinsPt+1};
825826

@@ -860,6 +861,68 @@ static const std::vector<std::string> labelsCutVar = {
860861
"cosine pointing angle XY",
861862
"max impParXY Xi",
862863
"max impParXY Pi"};
864+
}// namspace hf_cuts_xic0_xicp_to_hadronic::xic0
865+
866+
namespace xicp
867+
{
868+
static constexpr int NBinsPt= 10;
869+
static constexpr int NCutVars= 12;
870+
// default values for the pT bin edges (can be used to configure histogram axis)
871+
// offset by 1 from the bin numbers in cuts array
872+
constexpr double BinsPt[NBinsPt+ 1] = {
873+
0.,
874+
1.,
875+
2.,
876+
3.,
877+
4.,
878+
5.,
879+
6.,
880+
8.,
881+
12.,
882+
24.,
883+
36.};
884+
auto vecBinsPt= std::vector<double>{BinsPt, BinsPt+ NBinsPt+ 1};
885+
886+
// default values for the cuts m ptXi ptPi0 ptPi1 chi2PCA dL dLXY cosp cospXY impParXY Xi Pi0 Pi1
887+
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 */
888+
{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 */
889+
{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 */
890+
{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 */
891+
{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 */
892+
{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 */
893+
{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 */
894+
{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 */
895+
{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 */
896+
{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 */
897+
// row labels
898+
static const std::vector<std::string> labelsPt= {
899+
"pT bin 0",
900+
"pT bin 1",
901+
"pT bin 2",
902+
"pT bin 3",
903+
"pT bin 4",
904+
"pT bin 5",
905+
"pT bin 6",
906+
"pT bin 7",
907+
"pT bin 8",
908+
"pT bin 9"};
909+
910+
// column labels
911+
static const std::vector<std::string> labelsCutVar= {
912+
"m",
913+
"pT Xi",
914+
"pT Pi0",
915+
"pT Pi1",
916+
"chi2PCA",
917+
"max decay length",
918+
"max decay length XY",
919+
"cos pointing angle",
920+
"cos pointing angle XY",
921+
"max impParXY Xi",
922+
"max impParXY Pi0",
923+
"max impParXY Pi1"}; // end Xicp settings
924+
925+
}// namspace hf_cuts_xic0_xicp_to_hadronic::xicp
863926

864927
}// namespace hf_cuts_xic0_xicp_to_hadronic
865928

0 commit comments

Comments
 (0)