Skip to content

Commit bbf9857

Browse files
authored
[PWGLF] add ITSChi2 information for daughter tracks (#12432)
1 parent b4faf6e commit bbf9857

File tree

2 files changed

+13
-7
lines changed

2 files changed

+13
-7
lines changed

PWGLF/DataModel/LFHypernucleiTables.h

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ DECLARE_SOA_COLUMN(NTPCpidClusPi, nTPCpidClusPi, uint8_t); // Number
6060
DECLARE_SOA_COLUMN(TPCsignalHe, tpcSignalHe, uint16_t); // TPC signal of the He daughter
6161
DECLARE_SOA_COLUMN(TPCsignalPi, tpcSignalPi, uint16_t); // TPC signal of the Pi daughter
6262
DECLARE_SOA_COLUMN(TPCChi2He, tpcChi2He, float); // TPC chi2 of the He daughter
63+
DECLARE_SOA_COLUMN(ITSChi2He, itsChi2He, float); // ITS chi2 of the He daughter
64+
DECLARE_SOA_COLUMN(ITSChi2Pi, itsChi2Pi, float); // ITS chi2 of the Pi daughter
6365
DECLARE_SOA_COLUMN(TrackedClSize, trackedClSize, int); // int: zero for non-tracked candidates
6466
DECLARE_SOA_COLUMN(Flags, flags, uint8_t); // Flags for PID in tracking (bits [0, 3] for negative daughter, [4,7] for positive daughter)
6567
DECLARE_SOA_COLUMN(TPCmomHe, tpcMomHe, float); // TPC momentum of the He daughter
@@ -94,7 +96,7 @@ DECLARE_SOA_TABLE(DataHypCands, "AOD", "HYPCANDS",
9496
hyperrec::XDecVtx, hyperrec::YDecVtx, hyperrec::ZDecVtx,
9597
hyperrec::DcaV0Daug, hyperrec::DcaHe, hyperrec::DcaPi,
9698
hyperrec::NSigmaHe, hyperrec::NTPCclusHe, hyperrec::NTPCclusPi, hyperrec::NTPCpidClusHe, hyperrec::NTPCpidClusPi,
97-
hyperrec::TPCmomHe, hyperrec::TPCmomPi, hyperrec::TPCsignalHe, hyperrec::TPCsignalPi, hyperrec::TPCChi2He,
99+
hyperrec::TPCmomHe, hyperrec::TPCmomPi, hyperrec::TPCsignalHe, hyperrec::TPCsignalPi, hyperrec::TPCChi2He, hyperrec::ITSChi2He, hyperrec::ITSChi2Pi,
98100
hyperrec::TOFMass,
99101
hyperrec::ITSclusterSizesHe, hyperrec::ITSclusterSizesPi,
100102
hyperrec::Flags, hyperrec::TrackedClSize);
@@ -113,7 +115,7 @@ DECLARE_SOA_TABLE(DataHypCandsFlow, "AOD", "HYPCANDSFLOW",
113115
hyperrec::XDecVtx, hyperrec::YDecVtx, hyperrec::ZDecVtx,
114116
hyperrec::DcaV0Daug, hyperrec::DcaHe, hyperrec::DcaPi,
115117
hyperrec::NSigmaHe, hyperrec::NTPCclusHe, hyperrec::NTPCclusPi, hyperrec::NTPCpidClusHe, hyperrec::NTPCpidClusPi,
116-
hyperrec::TPCmomHe, hyperrec::TPCmomPi, hyperrec::TPCsignalHe, hyperrec::TPCsignalPi, hyperrec::TPCChi2He,
118+
hyperrec::TPCmomHe, hyperrec::TPCmomPi, hyperrec::TPCsignalHe, hyperrec::TPCsignalPi, hyperrec::TPCChi2He, hyperrec::ITSChi2He, hyperrec::ITSChi2Pi,
117119
hyperrec::TOFMass,
118120
hyperrec::ITSclusterSizesHe, hyperrec::ITSclusterSizesPi,
119121
hyperrec::Flags, hyperrec::TrackedClSize);
@@ -129,7 +131,7 @@ DECLARE_SOA_TABLE(MCHypCands, "AOD", "MCHYPCANDS",
129131
hyperrec::XDecVtx, hyperrec::YDecVtx, hyperrec::ZDecVtx,
130132
hyperrec::DcaV0Daug, hyperrec::DcaHe, hyperrec::DcaPi,
131133
hyperrec::NSigmaHe, hyperrec::NTPCclusHe, hyperrec::NTPCclusPi, hyperrec::NTPCpidClusHe, hyperrec::NTPCpidClusPi,
132-
hyperrec::TPCmomHe, hyperrec::TPCmomPi, hyperrec::TPCsignalHe, hyperrec::TPCsignalPi, hyperrec::TPCChi2He,
134+
hyperrec::TPCmomHe, hyperrec::TPCmomPi, hyperrec::TPCsignalHe, hyperrec::TPCsignalPi, hyperrec::TPCChi2He, hyperrec::ITSChi2He, hyperrec::ITSChi2Pi,
133135
hyperrec::TOFMass,
134136
hyperrec::ITSclusterSizesHe, hyperrec::ITSclusterSizesPi,
135137
hyperrec::Flags, hyperrec::TrackedClSize,

PWGLF/TableProducer/Nuspex/hyperRecoTask.cxx

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,8 @@ struct hyperCandidate {
110110
uint16_t tpcSignalHe3 = 0u;
111111
uint16_t tpcSignalPi = 0u;
112112
float tpcChi2He3 = 0.f;
113+
float itsChi2He3 = 0.f;
114+
float itsChi2Pi = 0.f;
113115
float massTOFHe3 = 0.f;
114116
uint8_t nTPCClustersHe3 = 0u;
115117
uint8_t nTPCClustersPi = 0u;
@@ -413,6 +415,8 @@ struct hyperRecoTask {
413415
hypCand.nTPCpidClusPi = (int16_t)piTrack.tpcNClsFindable() - piTrack.tpcNClsFindableMinusPID();
414416
hypCand.tpcSignalPi = piTrack.tpcSignal();
415417
hypCand.tpcChi2He3 = heTrack.tpcChi2NCl();
418+
hypCand.itsChi2He3 = heTrack.itsChi2NCl();
419+
hypCand.itsChi2Pi = piTrack.itsChi2NCl();
416420
hypCand.clusterSizeITSPi = piTrack.itsClusterSizes();
417421
bool heliumPID = heTrack.pidForTracking() == o2::track::PID::Helium3 || heTrack.pidForTracking() == o2::track::PID::Alpha;
418422
hypCand.momHe3TPC = (heliumPID && cfgCompensatePIDinTracking) ? heTrack.tpcInnerParam() / 2 : heTrack.tpcInnerParam();
@@ -687,7 +691,7 @@ struct hyperRecoTask {
687691
hypCand.dcaV0dau, hypCand.he3DCAXY, hypCand.piDCAXY,
688692
hypCand.nSigmaHe3, hypCand.nTPCClustersHe3, hypCand.nTPCClustersPi,
689693
hypCand.nTPCpidClusHe3, hypCand.nTPCpidClusPi,
690-
hypCand.momHe3TPC, hypCand.momPiTPC, hypCand.tpcSignalHe3, hypCand.tpcSignalPi, hypCand.tpcChi2He3,
694+
hypCand.momHe3TPC, hypCand.momPiTPC, hypCand.tpcSignalHe3, hypCand.tpcSignalPi, hypCand.tpcChi2He3, hypCand.itsChi2He3, hypCand.itsChi2Pi,
691695
hypCand.massTOFHe3,
692696
hypCand.clusterSizeITSHe3, hypCand.clusterSizeITSPi, hypCand.flags, trackedHypClSize);
693697
}
@@ -722,7 +726,7 @@ struct hyperRecoTask {
722726
hypCand.dcaV0dau, hypCand.he3DCAXY, hypCand.piDCAXY,
723727
hypCand.nSigmaHe3, hypCand.nTPCClustersHe3, hypCand.nTPCClustersPi,
724728
hypCand.nTPCpidClusHe3, hypCand.nTPCpidClusPi,
725-
hypCand.momHe3TPC, hypCand.momPiTPC, hypCand.tpcSignalHe3, hypCand.tpcSignalPi, hypCand.tpcChi2He3,
729+
hypCand.momHe3TPC, hypCand.momPiTPC, hypCand.tpcSignalHe3, hypCand.tpcSignalPi, hypCand.tpcChi2He3, hypCand.itsChi2He3, hypCand.itsChi2Pi,
726730
hypCand.massTOFHe3,
727731
hypCand.clusterSizeITSHe3, hypCand.clusterSizeITSPi, hypCand.flags, trackedHypClSize);
728732
}
@@ -757,7 +761,7 @@ struct hyperRecoTask {
757761
hypCand.decVtx[0], hypCand.decVtx[1], hypCand.decVtx[2],
758762
hypCand.dcaV0dau, hypCand.he3DCAXY, hypCand.piDCAXY,
759763
hypCand.nSigmaHe3, hypCand.nTPCClustersHe3, hypCand.nTPCClustersPi, hypCand.nTPCpidClusHe3, hypCand.nTPCpidClusPi,
760-
hypCand.momHe3TPC, hypCand.momPiTPC, hypCand.tpcSignalHe3, hypCand.tpcSignalPi, hypCand.tpcChi2He3,
764+
hypCand.momHe3TPC, hypCand.momPiTPC, hypCand.tpcSignalHe3, hypCand.tpcSignalPi, hypCand.tpcChi2He3, hypCand.itsChi2He3, hypCand.itsChi2Pi,
761765
hypCand.massTOFHe3,
762766
hypCand.clusterSizeITSHe3, hypCand.clusterSizeITSPi, hypCand.flags, trackedHypClSize,
763767
chargeFactor * hypCand.genPt(), hypCand.genPhi(), hypCand.genEta(), hypCand.genPtHe3(),
@@ -831,7 +835,7 @@ struct hyperRecoTask {
831835
-1, -1, -1,
832836
-1, -1, -1,
833837
-1, -1, -1,
834-
-1, -1, -1, -1, -1, -1, 0, 0,
838+
-1, -1, -1, -1, -1, -1, 0, 0, 0, 0,
835839
-1, -1, -1, false,
836840
chargeFactor * hypCand.genPt(), hypCand.genPhi(), hypCand.genEta(), hypCand.genPtHe3(),
837841
hypCand.gDecVtx[0], hypCand.gDecVtx[1], hypCand.gDecVtx[2],

0 commit comments

Comments
 (0)