Skip to content

Commit d8f1b76

Browse files
Add TPC inner-wall momentum and expected momentum for deuteron
1 parent e2da3b0 commit d8f1b76

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

PWGHF/D2H/Tasks/taskCd.cxx

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,8 @@ DECLARE_SOA_COLUMN(NSigmaTpcPi, nSigmaTpcPi, float); //! TPC nσ
101101
DECLARE_SOA_COLUMN(NSigmaItsDe, nSigmaItsDe, float); //! ITS nσ for deuteron hypothesis
102102
DECLARE_SOA_COLUMN(NSigmaTofDe, nSigmaTofDe, float); //! TOF nσ for deuteron hypothesis
103103
DECLARE_SOA_COLUMN(TofBetaDe, tofBetaDe, float); //! TOF beta for deuteron candidate
104+
DECLARE_SOA_COLUMN(TpcInnerParamDe, tpcInnerParamDe, float); //! TPC inner-wall momentum for deuteron candidate (GeV/c)
105+
DECLARE_SOA_COLUMN(TofExpMomDe, tofExpMomDe, float); //! TOF expected momentum for deuteron candidate (GeV/c)
104106
DECLARE_SOA_COLUMN(NSigmaTofKa, nSigmaTofKa, float); //! TOF nσ for kaon hypothesis
105107
DECLARE_SOA_COLUMN(NSigmaTofPi, nSigmaTofPi, float); //! TOF nσ for pion hypothesis
106108
DECLARE_SOA_COLUMN(NItsClusters, nItsClusters, float); //! Number of ITS clusters used in the track fit
@@ -147,6 +149,8 @@ DECLARE_SOA_TABLE(HfCandCdLite, "AOD", "HFCANDCDLITE",
147149
full::NSigmaItsDe,
148150
full::NSigmaTofDe,
149151
full::TofBetaDe,
152+
full::TpcInnerParamDe,
153+
full::TofExpMomDe,
150154
full::CtRec,
151155
full::CandidateSelFlag,
152156
full::CandidateSign,
@@ -178,6 +182,8 @@ DECLARE_SOA_TABLE(HfCandCdFull, "AOD", "HFCANDCDFULL",
178182
full::NSigmaItsDe,
179183
full::NSigmaTofDe,
180184
full::TofBetaDe,
185+
full::TpcInnerParamDe,
186+
full::TofExpMomDe,
181187
full::NSigmaTpcPi,
182188
full::NSigmaTofPi,
183189
full::NSigmaTpcKa,
@@ -522,6 +528,8 @@ struct HfTaskCd {
522528
float nSigmaItsDe = 0.f;
523529
float nSigmaTofDe = 0.f, nSigmaTofKa = 0.f, nSigmaTofPi = 0.f;
524530
float tofBetaDe = -999.f;
531+
float tpcInnerParamDe = -999.f;
532+
float tofExpMomDe = -999.f;
525533

526534
float dcaDeuteron = 0.f, dcaKaon = 0.f, dcaPion = 0.f;
527535

@@ -547,6 +555,8 @@ struct HfTaskCd {
547555
nSigmaTpcPr = candidate.nSigTpcPr0();
548556
nSigmaTofDe = candidate.nSigTofDe0();
549557
tofBetaDe = (prong0.hasTOF() && prong0.beta() > 0.f) ? prong0.beta() : -999.f;
558+
tpcInnerParamDe = prong0.tpcInnerParam();
559+
tofExpMomDe = prong0.hasTOF() ? prong0.tofExpMom() : -999.f;
550560
nSigmaTpcPi = candidate.nSigTpcPi2();
551561
nSigmaTofPi = candidate.nSigTofPi2();
552562
nSigmaItsDe = prong0Its.itsNSigmaDe();
@@ -561,6 +571,8 @@ struct HfTaskCd {
561571
nSigmaTpcPr = candidate.nSigTpcPr2();
562572
nSigmaTofDe = candidate.nSigTofDe2();
563573
tofBetaDe = (prong2.hasTOF() && prong2.beta() > 0.f) ? prong2.beta() : -999.f;
574+
tpcInnerParamDe = prong2.tpcInnerParam();
575+
tofExpMomDe = prong2.hasTOF() ? prong2.tofExpMom() : -999.f;
564576
nSigmaTpcPi = candidate.nSigTpcPi0();
565577
nSigmaTofPi = candidate.nSigTofPi0();
566578
nSigmaItsDe = prong2Its.itsNSigmaDe();
@@ -600,6 +612,8 @@ struct HfTaskCd {
600612
nSigmaItsDe,
601613
nSigmaTofDe,
602614
tofBetaDe,
615+
tpcInnerParamDe,
616+
tofExpMomDe,
603617
candidate.ct(o2::constants::physics::MassCDeuteron) * cmToMum,
604618
candFlag,
605619
candSign,
@@ -632,6 +646,8 @@ struct HfTaskCd {
632646
nSigmaItsDe,
633647
nSigmaTofDe,
634648
tofBetaDe,
649+
tpcInnerParamDe,
650+
tofExpMomDe,
635651
nSigmaTpcPi,
636652
nSigmaTofPi,
637653
nSigmaTpcKa,
@@ -844,6 +860,8 @@ struct HfTaskCd {
844860
float nSigmaItsDe = 0.f;
845861
float nSigmaTofDe = 0.f, nSigmaTofKa = 0.f, nSigmaTofPi = 0.f;
846862
float tofBetaDe = -999.f;
863+
float tpcInnerParamDe = -999.f;
864+
float tofExpMomDe = -999.f;
847865

848866
float dcaDeuteron = 0.f, dcaKaon = 0.f, dcaPion = 0.f;
849867
// int itsNClusterSizeDe = 0;
@@ -882,6 +900,8 @@ struct HfTaskCd {
882900
nSigmaTpcPr = candidate.nSigTpcPr0();
883901
nSigmaTofDe = candidate.nSigTofDe0();
884902
tofBetaDe = (prong0.hasTOF() && prong0.beta() > 0.f) ? prong0.beta() : -999.f;
903+
tpcInnerParamDe = prong0.tpcInnerParam();
904+
tofExpMomDe = prong0.hasTOF() ? prong0.tofExpMom() : -999.f;
885905
nSigmaTpcPi = candidate.nSigTpcPi2();
886906
nSigmaTofPi = candidate.nSigTofPi2();
887907
nSigmaItsDe = prong0Its.itsNSigmaDe();
@@ -901,6 +921,8 @@ struct HfTaskCd {
901921
nSigmaTpcPr = candidate.nSigTpcPr2();
902922
nSigmaTofDe = candidate.nSigTofDe2();
903923
tofBetaDe = (prong2.hasTOF() && prong2.beta() > 0.f) ? prong2.beta() : -999.f;
924+
tpcInnerParamDe = prong2.tpcInnerParam();
925+
tofExpMomDe = prong2.hasTOF() ? prong2.tofExpMom() : -999.f;
904926
nSigmaTpcPi = candidate.nSigTpcPi0();
905927
nSigmaTofPi = candidate.nSigTofPi0();
906928
nSigmaItsDe = prong2Its.itsNSigmaDe();
@@ -959,6 +981,8 @@ struct HfTaskCd {
959981
nSigmaItsDe,
960982
nSigmaTofDe,
961983
tofBetaDe,
984+
tpcInnerParamDe,
985+
tofExpMomDe,
962986
candidate.ct(o2::constants::physics::MassCDeuteron),
963987
candFlag,
964988
candSign,
@@ -992,6 +1016,8 @@ struct HfTaskCd {
9921016
nSigmaItsDe,
9931017
nSigmaTofDe,
9941018
tofBetaDe,
1019+
tpcInnerParamDe,
1020+
tofExpMomDe,
9951021
nSigmaTpcPi,
9961022
nSigmaTofPi,
9971023
nSigmaTpcKa,

0 commit comments

Comments
 (0)