Skip to content

Commit fcfc4e7

Browse files
author
Francesco Mazzaschi
committed
uniform data table
1 parent 76d47f8 commit fcfc4e7

1 file changed

Lines changed: 42 additions & 40 deletions

File tree

PWGLF/DataModel/LFHypernucleiTables.h

Lines changed: 42 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -34,45 +34,46 @@ DECLARE_SOA_COLUMN(MultFT0C, multFT0C, float); // Multiplicity with
3434
DECLARE_SOA_COLUMN(PsiTPC, psiTPC, float); // Psi with TPC estimator
3535
DECLARE_SOA_COLUMN(MultTPC, multTPC, float); // Multiplicity with TPC estimator
3636

37-
DECLARE_SOA_COLUMN(IsMatter, isMatter, bool); // bool: true for matter
38-
DECLARE_SOA_COLUMN(PtHe3, ptHe3, float); // Pt of the He daughter
39-
DECLARE_SOA_COLUMN(PhiHe3, phiHe3, float); // Phi of the He daughter
40-
DECLARE_SOA_COLUMN(EtaHe3, etaHe3, float); // Eta of the He daughter
41-
DECLARE_SOA_COLUMN(PtPi, ptPi, float); // Pt of the Pi daughter
42-
DECLARE_SOA_COLUMN(PhiPi, phiPi, float); // Phi of the Pi daughter
43-
DECLARE_SOA_COLUMN(EtaPi, etaPi, float); // Eta of the Pi daughter
44-
DECLARE_SOA_COLUMN(XPrimVtx, xPrimVtx, float); // Decay vertex of the candidate (x direction)
45-
DECLARE_SOA_COLUMN(YPrimVtx, yPrimVtx, float); // Decay vertex of the candidate (y direction)
46-
DECLARE_SOA_COLUMN(ZPrimVtx, zPrimVtx, float); // Decay vertex of the candidate (z direction)
47-
DECLARE_SOA_COLUMN(XDecVtx, xDecVtx, float); // Decay vertex of the candidate (x direction)
48-
DECLARE_SOA_COLUMN(YDecVtx, yDecVtx, float); // Decay vertex of the candidate (y direction)
49-
DECLARE_SOA_COLUMN(ZDecVtx, zDecVtx, float); // Decay vertex of the candidate (z direction)
50-
DECLARE_SOA_COLUMN(MassH3L, massH3L, float); // Squared mass w/ hypertriton mass hypo
51-
DECLARE_SOA_COLUMN(MassH4L, massH4L, float); // Squared mass w/ H4L mass hypo
52-
DECLARE_SOA_COLUMN(DcaV0Daug, dcaV0Daug, float); // DCA between daughters
53-
DECLARE_SOA_COLUMN(CosPA, cosPA, double); // Cosine of the pointing angle
54-
DECLARE_SOA_COLUMN(NSigmaHe, nSigmaHe, float); // Number of sigmas of the He daughter
55-
DECLARE_SOA_COLUMN(NTPCclusHe, nTPCclusHe, uint8_t); // Number of TPC clusters of the He daughter
56-
DECLARE_SOA_COLUMN(NTPCclusPi, nTPCclusPi, uint8_t); // Number of TPC clusters of the Pi daughter
57-
DECLARE_SOA_COLUMN(TPCsignalHe, tpcSignalHe, uint16_t); // TPC signal of the He daughter
58-
DECLARE_SOA_COLUMN(TPCsignalPi, tpcSignalPi, uint16_t); // TPC signal of the Pi daughter
59-
DECLARE_SOA_COLUMN(Flags, flags, uint8_t); // Flags for PID in tracking (bits [0, 3] for negative daughter, [4,7] for positive daughter)
60-
DECLARE_SOA_COLUMN(TPCmomHe, tpcMomHe, float); // TPC momentum of the He daughter
61-
DECLARE_SOA_COLUMN(TPCmomPi, tpcMomPi, float); // TPC momentum of the Pi daughter
62-
DECLARE_SOA_COLUMN(ITSclusterSizesHe, itsClusterSizesHe, uint32_t); // ITS cluster size of the He daughter
63-
DECLARE_SOA_COLUMN(ITSclusterSizesPi, itsClusterSizesPi, uint32_t); // ITS cluster size of the Pi daughter
64-
DECLARE_SOA_COLUMN(DcaHe, dcaHe, float); // DCA between He daughter and V0
65-
DECLARE_SOA_COLUMN(DcaPi, dcaPi, float); // DCA between pi daughter and V0
66-
DECLARE_SOA_COLUMN(GenPt, genPt, float); // Pt of the hypertriton
67-
DECLARE_SOA_COLUMN(GenPhi, genPhi, float); // Phi of the hypertriton
68-
DECLARE_SOA_COLUMN(GenEta, genEta, float); // Eta of the hypertriton
69-
DECLARE_SOA_COLUMN(GenPtHe3, genPtHe3, float); // Pt of the He daughter (to be used for the recalibration)
70-
DECLARE_SOA_COLUMN(GenXDecVtx, genXDecVtx, float); // Decay vertex of the candidate (x direction)
71-
DECLARE_SOA_COLUMN(GenYDecVtx, genYDecVtx, float); // Decay vertex of the candidate (y direction)
72-
DECLARE_SOA_COLUMN(GenZDecVtx, genZDecVtx, float); // Decay vertex of the candidate (z direction)
73-
DECLARE_SOA_COLUMN(IsReco, isReco, bool); // bool: true for reco
74-
DECLARE_SOA_COLUMN(IsSignal, isSignal, bool); // bool: true for signal
75-
DECLARE_SOA_COLUMN(SurvivedEventSelection, survivedEventSelection, bool); // bool: true for survived event selection
37+
DECLARE_SOA_COLUMN(IsMatter, isMatter, bool); // bool: true for matter
38+
DECLARE_SOA_COLUMN(PtHe3, ptHe3, float); // Pt of the He daughter
39+
DECLARE_SOA_COLUMN(PhiHe3, phiHe3, float); // Phi of the He daughter
40+
DECLARE_SOA_COLUMN(EtaHe3, etaHe3, float); // Eta of the He daughter
41+
DECLARE_SOA_COLUMN(PtPi, ptPi, float); // Pt of the Pi daughter
42+
DECLARE_SOA_COLUMN(PhiPi, phiPi, float); // Phi of the Pi daughter
43+
DECLARE_SOA_COLUMN(EtaPi, etaPi, float); // Eta of the Pi daughter
44+
DECLARE_SOA_COLUMN(XPrimVtx, xPrimVtx, float); // Decay vertex of the candidate (x direction)
45+
DECLARE_SOA_COLUMN(YPrimVtx, yPrimVtx, float); // Decay vertex of the candidate (y direction)
46+
DECLARE_SOA_COLUMN(ZPrimVtx, zPrimVtx, float); // Decay vertex of the candidate (z direction)
47+
DECLARE_SOA_COLUMN(XDecVtx, xDecVtx, float); // Decay vertex of the candidate (x direction)
48+
DECLARE_SOA_COLUMN(YDecVtx, yDecVtx, float); // Decay vertex of the candidate (y direction)
49+
DECLARE_SOA_COLUMN(ZDecVtx, zDecVtx, float); // Decay vertex of the candidate (z direction)
50+
DECLARE_SOA_COLUMN(MassH3L, massH3L, float); // Squared mass w/ hypertriton mass hypo
51+
DECLARE_SOA_COLUMN(MassH4L, massH4L, float); // Squared mass w/ H4L mass hypo
52+
DECLARE_SOA_COLUMN(DcaV0Daug, dcaV0Daug, float); // DCA between daughters
53+
DECLARE_SOA_COLUMN(CosPA, cosPA, double); // Cosine of the pointing angle
54+
DECLARE_SOA_COLUMN(NSigmaHe, nSigmaHe, float); // Number of sigmas of the He daughter
55+
DECLARE_SOA_COLUMN(NTPCclusHe, nTPCclusHe, uint8_t); // Number of TPC clusters of the He daughter
56+
DECLARE_SOA_COLUMN(NTPCclusPi, nTPCclusPi, uint8_t); // Number of TPC clusters of the Pi daughter
57+
DECLARE_SOA_COLUMN(TPCsignalHe, tpcSignalHe, uint16_t); // TPC signal of the He daughter
58+
DECLARE_SOA_COLUMN(TPCsignalPi, tpcSignalPi, uint16_t); // TPC signal of the Pi daughter
59+
DECLARE_SOA_COLUMN(Flags, flags, uint8_t); // Flags for PID in tracking (bits [0, 3] for negative daughter, [4,7] for positive daughter)
60+
DECLARE_SOA_COLUMN(TPCmomHe, tpcMomHe, float); // TPC momentum of the He daughter
61+
DECLARE_SOA_COLUMN(TPCmomPi, tpcMomPi, float); // TPC momentum of the Pi daughter
62+
DECLARE_SOA_COLUMN(ITSclusterSizesHe, itsClusterSizesHe, uint32_t); // ITS cluster size of the He daughter
63+
DECLARE_SOA_COLUMN(ITSclusterSizesPi, itsClusterSizesPi, uint32_t); // ITS cluster size of the Pi daughter
64+
DECLARE_SOA_COLUMN(DcaHe, dcaHe, float); // DCA between He daughter and V0
65+
DECLARE_SOA_COLUMN(DcaPi, dcaPi, float); // DCA between pi daughter and V0
66+
DECLARE_SOA_COLUMN(GenPt, genPt, float); // Pt of the hypertriton
67+
DECLARE_SOA_COLUMN(GenPhi, genPhi, float); // Phi of the hypertriton
68+
DECLARE_SOA_COLUMN(GenEta, genEta, float); // Eta of the hypertriton
69+
DECLARE_SOA_COLUMN(GenPtHe3, genPtHe3, float); // Pt of the He daughter (to be used for the recalibration)
70+
DECLARE_SOA_COLUMN(GenXDecVtx, genXDecVtx, float); // Decay vertex of the candidate (x direction)
71+
DECLARE_SOA_COLUMN(GenYDecVtx, genYDecVtx, float); // Decay vertex of the candidate (y direction)
72+
DECLARE_SOA_COLUMN(GenZDecVtx, genZDecVtx, float); // Decay vertex of the candidate (z direction)
73+
DECLARE_SOA_COLUMN(IsReco, isReco, bool); // bool: true for reco
74+
DECLARE_SOA_COLUMN(IsSignal, isSignal, bool); // bool: true for signal
75+
DECLARE_SOA_COLUMN(IsRecoMCCollision, isRecoMCCollision, bool); // bool: true for reco MC collision
76+
DECLARE_SOA_COLUMN(IsSurvEvSel, isSurvEvSel, bool); // bool: true for survived event selection
7677
} // namespace hyperrec
7778

7879
DECLARE_SOA_TABLE(DataHypCands, "AOD", "HYPCANDS",
@@ -131,7 +132,8 @@ DECLARE_SOA_TABLE(MCHypCands, "AOD", "MCHYPCANDS",
131132
hyperrec::GenZDecVtx,
132133
hyperrec::IsReco,
133134
hyperrec::IsSignal,
134-
hyperrec::SurvivedEventSelection);
135+
hyperrec::IsRecoMCCollision,
136+
hyperrec::IsSurvEvSel);
135137

136138
using DataHypCand = DataHypCands::iterator;
137139
using DataHypCandFlow = DataHypCandsFlow::iterator;

0 commit comments

Comments
 (0)