Skip to content

Commit 0ac4c85

Browse files
authored
[PWGLF] Add PID info of daughter tracks in the table (#8437)
1 parent 9c3524c commit 0ac4c85

File tree

2 files changed

+93
-13
lines changed

2 files changed

+93
-13
lines changed

PWGLF/DataModel/LFResonanceTables.h

Lines changed: 61 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -123,19 +123,37 @@ DECLARE_SOA_COLUMN(HasITS, hasITS, bool); //! Has ITS
123123
DECLARE_SOA_COLUMN(HasTPC, hasTPC, bool); //! Has TPC
124124
DECLARE_SOA_COLUMN(HasTOF, hasTOF, bool); //! Has TOF
125125
DECLARE_SOA_COLUMN(TPCCrossedRowsOverFindableCls, tpcCrossedRowsOverFindableCls, float);
126-
DECLARE_SOA_COLUMN(DaughDCA, daughDCA, float); //! DCA between daughters
127-
DECLARE_SOA_COLUMN(CascDaughDCA, cascdaughDCA, float); //! DCA between daughters from cascade
128-
DECLARE_SOA_COLUMN(V0CosPA, v0CosPA, float); //! V0 Cosine of Pointing Angle
129-
DECLARE_SOA_COLUMN(CascCosPA, cascCosPA, float); //! Cascade Cosine of Pointing Angle
130-
DECLARE_SOA_COLUMN(MLambda, mLambda, float); //! The invariant mass of V0 candidate, assuming lambda
131-
DECLARE_SOA_COLUMN(MAntiLambda, mAntiLambda, float); //! The invariant mass of V0 candidate, assuming antilambda
132-
DECLARE_SOA_COLUMN(MK0Short, mK0Short, float); //! The invariant mass of V0 candidate, assuming k0s
133-
DECLARE_SOA_COLUMN(MXi, mXi, float); //! The invariant mass of Xi candidate
134-
DECLARE_SOA_COLUMN(TransRadius, transRadius, float); //! Transverse radius of the decay vertex
135-
DECLARE_SOA_COLUMN(CascTransRadius, casctransRadius, float); //! Transverse radius of the decay vertex from cascade
136-
DECLARE_SOA_COLUMN(DecayVtxX, decayVtxX, float); //! X position of the decay vertex
137-
DECLARE_SOA_COLUMN(DecayVtxY, decayVtxY, float); //! Y position of the decay vertex
138-
DECLARE_SOA_COLUMN(DecayVtxZ, decayVtxZ, float); //! Z position of the decay vertex
126+
DECLARE_SOA_COLUMN(DaughDCA, daughDCA, float); //! DCA between daughters
127+
DECLARE_SOA_COLUMN(CascDaughDCA, cascdaughDCA, float); //! DCA between daughters from cascade
128+
DECLARE_SOA_COLUMN(V0CosPA, v0CosPA, float); //! V0 Cosine of Pointing Angle
129+
DECLARE_SOA_COLUMN(CascCosPA, cascCosPA, float); //! Cascade Cosine of Pointing Angle
130+
DECLARE_SOA_COLUMN(MLambda, mLambda, float); //! The invariant mass of V0 candidate, assuming lambda
131+
DECLARE_SOA_COLUMN(MAntiLambda, mAntiLambda, float); //! The invariant mass of V0 candidate, assuming antilambda
132+
DECLARE_SOA_COLUMN(MK0Short, mK0Short, float); //! The invariant mass of V0 candidate, assuming k0s
133+
DECLARE_SOA_COLUMN(MXi, mXi, float); //! The invariant mass of Xi candidate
134+
DECLARE_SOA_COLUMN(TransRadius, transRadius, float); //! Transverse radius of the decay vertex
135+
DECLARE_SOA_COLUMN(CascTransRadius, casctransRadius, float); //! Transverse radius of the decay vertex from cascade
136+
DECLARE_SOA_COLUMN(DecayVtxX, decayVtxX, float); //! X position of the decay vertex
137+
DECLARE_SOA_COLUMN(DecayVtxY, decayVtxY, float); //! Y position of the decay vertex
138+
DECLARE_SOA_COLUMN(DecayVtxZ, decayVtxZ, float); //! Z position of the decay vertex
139+
DECLARE_SOA_COLUMN(DaughterTPCNSigmaPi1, daughterTPCNSigmaPi1, float); //! TPC PID of the first daughter as Pion
140+
DECLARE_SOA_COLUMN(DaughterTPCNSigmaKa1, daughterTPCNSigmaKa1, float); //! TPC PID of the first daughter as Kaon
141+
DECLARE_SOA_COLUMN(DaughterTPCNSigmaPr1, daughterTPCNSigmaPr1, float); //! TPC PID of the first daughter as Proton
142+
DECLARE_SOA_COLUMN(DaughterTPCNSigmaPi2, daughterTPCNSigmaPi2, float); //! TPC PID of the second daughter as Pion
143+
DECLARE_SOA_COLUMN(DaughterTPCNSigmaKa2, daughterTPCNSigmaKa2, float); //! TPC PID of the second daughter as Kaon
144+
DECLARE_SOA_COLUMN(DaughterTPCNSigmaPr2, daughterTPCNSigmaPr2, float); //! TPC PID of the second daughter as Proton
145+
DECLARE_SOA_COLUMN(DaughterTPCNSigmaPiBach, daughterTPCNSigmaPiBach, float); //! TPC PID of the bachelor daughter as Pion
146+
DECLARE_SOA_COLUMN(DaughterTPCNSigmaKaBach, daughterTPCNSigmaKaBach, float); //! TPC PID of the bachelor daughter as Kaon
147+
DECLARE_SOA_COLUMN(DaughterTPCNSigmaPrBach, daughterTPCNSigmaPrBach, float); //! TPC PID of the bachelor daughter as Proton
148+
DECLARE_SOA_COLUMN(DaughterTOFNSigmaPi1, daughterTOFNSigmaPi1, float); //! TOF PID of the first daughter as Pion
149+
DECLARE_SOA_COLUMN(DaughterTOFNSigmaKa1, daughterTOFNSigmaKa1, float); //! TOF PID of the first daughter as Kaon
150+
DECLARE_SOA_COLUMN(DaughterTOFNSigmaPr1, daughterTOFNSigmaPr1, float); //! TOF PID of the first daughter as Proton
151+
DECLARE_SOA_COLUMN(DaughterTOFNSigmaPi2, daughterTOFNSigmaPi2, float); //! TOF PID of the second daughter as Pion
152+
DECLARE_SOA_COLUMN(DaughterTOFNSigmaKa2, daughterTOFNSigmaKa2, float); //! TOF PID of the second daughter as Kaon
153+
DECLARE_SOA_COLUMN(DaughterTOFNSigmaPr2, daughterTOFNSigmaPr2, float); //! TOF PID of the second daughter as Proton
154+
DECLARE_SOA_COLUMN(DaughterTOFNSigmaPiBach, daughterTOFNSigmaPiBach, float); //! TOF PID of the bachelor daughter as Pion
155+
DECLARE_SOA_COLUMN(DaughterTOFNSigmaKaBach, daughterTOFNSigmaKaBach, float); //! TOF PID of the bachelor daughter as Kaon
156+
DECLARE_SOA_COLUMN(DaughterTOFNSigmaPrBach, daughterTOFNSigmaPrBach, float); //! TOF PID of the bachelor daughter as Proton
139157
// For MC
140158
DECLARE_SOA_INDEX_COLUMN(McParticle, mcParticle); //! Index of the corresponding MC particle
141159
DECLARE_SOA_COLUMN(IsPhysicalPrimary, isPhysicalPrimary, bool);
@@ -200,6 +218,18 @@ DECLARE_SOA_TABLE(ResoV0s, "AOD", "RESOV0S",
200218
resodaughter::Eta,
201219
resodaughter::Phi,
202220
resodaughter::Indices,
221+
resodaughter::DaughterTPCNSigmaPi1,
222+
resodaughter::DaughterTPCNSigmaKa1,
223+
resodaughter::DaughterTPCNSigmaPr1,
224+
resodaughter::DaughterTPCNSigmaPi2,
225+
resodaughter::DaughterTPCNSigmaKa2,
226+
resodaughter::DaughterTPCNSigmaPr2,
227+
resodaughter::DaughterTOFNSigmaPi1,
228+
resodaughter::DaughterTOFNSigmaKa1,
229+
resodaughter::DaughterTOFNSigmaPr1,
230+
resodaughter::DaughterTOFNSigmaPi2,
231+
resodaughter::DaughterTOFNSigmaKa2,
232+
resodaughter::DaughterTOFNSigmaPr2,
203233
resodaughter::V0CosPA,
204234
resodaughter::DaughDCA,
205235
v0data::DCAPosToPV,
@@ -224,6 +254,24 @@ DECLARE_SOA_TABLE(ResoCascades, "AOD", "RESOCASCADES",
224254
resodaughter::Eta,
225255
resodaughter::Phi,
226256
resodaughter::CascadeIndices,
257+
resodaughter::DaughterTPCNSigmaPi1,
258+
resodaughter::DaughterTPCNSigmaKa1,
259+
resodaughter::DaughterTPCNSigmaPr1,
260+
resodaughter::DaughterTPCNSigmaPi2,
261+
resodaughter::DaughterTPCNSigmaKa2,
262+
resodaughter::DaughterTPCNSigmaPr2,
263+
resodaughter::DaughterTPCNSigmaPiBach,
264+
resodaughter::DaughterTPCNSigmaKaBach,
265+
resodaughter::DaughterTPCNSigmaPrBach,
266+
resodaughter::DaughterTOFNSigmaPi1,
267+
resodaughter::DaughterTOFNSigmaKa1,
268+
resodaughter::DaughterTOFNSigmaPr1,
269+
resodaughter::DaughterTOFNSigmaPi2,
270+
resodaughter::DaughterTOFNSigmaKa2,
271+
resodaughter::DaughterTOFNSigmaPr2,
272+
resodaughter::DaughterTOFNSigmaPiBach,
273+
resodaughter::DaughterTOFNSigmaKaBach,
274+
resodaughter::DaughterTOFNSigmaPrBach,
227275
resodaughter::V0CosPA,
228276
resodaughter::CascCosPA,
229277
resodaughter::DaughDCA,

PWGLF/TableProducer/Resonances/LFResonanceInitializer.cxx

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
///
1616
/// \author Bong-Hwi Lim <bong-hwi.lim@cern.ch>
1717

18+
#include <string>
19+
#include <vector>
1820
#include "Common/DataModel/PIDResponse.h"
1921
#include "Common/Core/TrackSelection.h"
2022
#include "Common/DataModel/Centrality.h"
@@ -511,6 +513,18 @@ struct reso2initializer {
511513
v0.eta(),
512514
v0.phi(),
513515
childIDs,
516+
v0.template posTrack_as<TrackType>().tpcNSigmaPi(),
517+
v0.template posTrack_as<TrackType>().tpcNSigmaKa(),
518+
v0.template posTrack_as<TrackType>().tpcNSigmaPr(),
519+
v0.template posTrack_as<TrackType>().tofNSigmaPi(),
520+
v0.template posTrack_as<TrackType>().tofNSigmaKa(),
521+
v0.template posTrack_as<TrackType>().tofNSigmaPr(),
522+
v0.template negTrack_as<TrackType>().tpcNSigmaPi(),
523+
v0.template negTrack_as<TrackType>().tpcNSigmaKa(),
524+
v0.template negTrack_as<TrackType>().tpcNSigmaPr(),
525+
v0.template negTrack_as<TrackType>().tofNSigmaPi(),
526+
v0.template negTrack_as<TrackType>().tofNSigmaKa(),
527+
v0.template negTrack_as<TrackType>().tofNSigmaPr(),
514528
v0.v0cosPA(),
515529
v0.dcaV0daughters(),
516530
v0.dcapostopv(),
@@ -545,6 +559,24 @@ struct reso2initializer {
545559
casc.eta(),
546560
casc.phi(),
547561
childIDs,
562+
casc.template posTrack_as<TrackType>().tpcNSigmaPi(),
563+
casc.template posTrack_as<TrackType>().tpcNSigmaKa(),
564+
casc.template posTrack_as<TrackType>().tpcNSigmaPr(),
565+
casc.template posTrack_as<TrackType>().tofNSigmaPi(),
566+
casc.template posTrack_as<TrackType>().tofNSigmaKa(),
567+
casc.template posTrack_as<TrackType>().tofNSigmaPr(),
568+
casc.template negTrack_as<TrackType>().tpcNSigmaPi(),
569+
casc.template negTrack_as<TrackType>().tpcNSigmaKa(),
570+
casc.template negTrack_as<TrackType>().tpcNSigmaPr(),
571+
casc.template negTrack_as<TrackType>().tofNSigmaPi(),
572+
casc.template negTrack_as<TrackType>().tofNSigmaKa(),
573+
casc.template negTrack_as<TrackType>().tofNSigmaPr(),
574+
casc.template bachelor_as<TrackType>().tpcNSigmaPi(),
575+
casc.template bachelor_as<TrackType>().tpcNSigmaKa(),
576+
casc.template bachelor_as<TrackType>().tpcNSigmaPr(),
577+
casc.template bachelor_as<TrackType>().tofNSigmaPi(),
578+
casc.template bachelor_as<TrackType>().tofNSigmaKa(),
579+
casc.template bachelor_as<TrackType>().tofNSigmaPr(),
548580
casc.v0cosPA(collision.posX(), collision.posY(), collision.posZ()),
549581
casc.casccosPA(collision.posX(), collision.posY(), collision.posZ()),
550582
casc.dcaV0daughters(),

0 commit comments

Comments
 (0)