Skip to content

Commit aeb0e7f

Browse files
author
Prottay Das
committed
updated tasks to run on derived data for phi and kstar
1 parent 1a15b2b commit aeb0e7f

4 files changed

Lines changed: 976 additions & 1064 deletions

File tree

PWGLF/DataModel/LFCKSSpinalignmentTables.h

Lines changed: 62 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
// or submit itself to any jurisdiction.
1111

1212
/// \file LFCKSSpinalignmentTables.h
13-
/// \brief DataModel for Charged KStar spin alignment
13+
/// \brief DataModel for reduced K0s and pion tables for charged KStar analysis
1414
///
1515
/// \author Prottay Das <prottay.das@cern.ch>
1616

@@ -20,7 +20,6 @@
2020
#include <Framework/ASoA.h>
2121
#include <Framework/AnalysisDataModel.h>
2222

23-
#include <cmath>
2423
#include <cstdint>
2524

2625
namespace o2::aod
@@ -29,77 +28,89 @@ namespace kshortpionevent
2928
{
3029
DECLARE_SOA_COLUMN(Cent, cent, float);
3130
DECLARE_SOA_COLUMN(Posz, posz, float);
32-
// DECLARE_SOA_COLUMN(CollIndex, collIndex, float);
3331
DECLARE_SOA_COLUMN(PsiFT0C, psiFT0C, float);
3432
DECLARE_SOA_COLUMN(PsiFT0A, psiFT0A, float);
3533
DECLARE_SOA_COLUMN(PsiTPC, psiTPC, float);
3634
} // namespace kshortpionevent
35+
3736
DECLARE_SOA_TABLE(KShortpionEvents, "AOD", "KSHORTPIONEVENT",
3837
o2::soa::Index<>,
3938
kshortpionevent::Cent,
4039
kshortpionevent::Posz,
41-
// kshortpionevent::CollIndex,
4240
kshortpionevent::PsiFT0C,
4341
kshortpionevent::PsiFT0A,
44-
kshortpionevent::PsiTPC)
42+
kshortpionevent::PsiTPC);
43+
4544
using KShortpionEvent = KShortpionEvents::iterator;
4645

47-
namespace kshortpionpair
46+
// ------------------------------------------------------------
47+
// K0s candidate table
48+
// ------------------------------------------------------------
49+
namespace kshorttrack
4850
{
4951
DECLARE_SOA_INDEX_COLUMN(KShortpionEvent, kshortpionevent);
50-
DECLARE_SOA_COLUMN(V0Cospa, v0Cospa, float); //! V0 Cospa
51-
DECLARE_SOA_COLUMN(V0Radius, v0Radius, float); //! V0 Radius
52-
DECLARE_SOA_COLUMN(DcaPositive, dcaPositive, float); //! DCA Positive
53-
DECLARE_SOA_COLUMN(DcaNegative, dcaNegative, float); //! DCA Negative
54-
DECLARE_SOA_COLUMN(DcaBetweenDaughter, dcaBetweenDaughter, float); //! DCA between daughters
55-
DECLARE_SOA_COLUMN(V0Lifetime, v0Lifetime, float); //! KShort lifetime
56-
DECLARE_SOA_COLUMN(KShortPx, kShortPx, float); //! KShort Px
57-
DECLARE_SOA_COLUMN(KShortPy, kShortPy, float); //! KShort Py
58-
DECLARE_SOA_COLUMN(KShortPz, kShortPz, float); //! KShort Pz
59-
DECLARE_SOA_COLUMN(KShortMass, kShortMass, float); //! KShort Mass
60-
DECLARE_SOA_COLUMN(PionBachPx, pionBachPx, float); //! Bachelor Pion Px
61-
DECLARE_SOA_COLUMN(PionBachPy, pionBachPy, float); //! Bachelor Pion Py
62-
DECLARE_SOA_COLUMN(PionBachPz, pionBachPz, float); //! Bachelor Pion Pz
63-
/*DECLARE_SOA_COLUMN(PionBachTPC, pionBachTPC, float); //! Bachelor Pion nsigmatpc
64-
DECLARE_SOA_COLUMN(PionBachTOFHit, pionBachTOFHit, int); //! Bachelor Pion tof hit availability
65-
DECLARE_SOA_COLUMN(PionBachTOF, pionBachTOF, float); //! Bachelor Pion nsigmatof*/
66-
DECLARE_SOA_COLUMN(PionBachIndex, pionBachIndex, int); //! Bachelor Pion index
67-
DECLARE_SOA_COLUMN(PionIndex1, pionIndex1, int); //! Daughter Pion index1
68-
DECLARE_SOA_COLUMN(PionIndex2, pionIndex2, int); //! Daughter Pion index2
69-
DECLARE_SOA_COLUMN(PionPidMask, pionPidMask, uint8_t); //! bitmask for PID selections
70-
} // namespace kshortpionpair
52+
53+
DECLARE_SOA_COLUMN(V0Cospa, v0Cospa, float);
54+
DECLARE_SOA_COLUMN(V0Radius, v0Radius, float);
55+
DECLARE_SOA_COLUMN(DcaPositive, dcaPositive, float);
56+
DECLARE_SOA_COLUMN(DcaNegative, dcaNegative, float);
57+
DECLARE_SOA_COLUMN(DcaBetweenDaughter, dcaBetweenDaughter, float);
58+
// DECLARE_SOA_COLUMN(V0Lifetime, v0Lifetime, float);
59+
60+
DECLARE_SOA_COLUMN(KShortPx, kShortPx, float);
61+
DECLARE_SOA_COLUMN(KShortPy, kShortPy, float);
62+
DECLARE_SOA_COLUMN(KShortPz, kShortPz, float);
63+
DECLARE_SOA_COLUMN(KShortMass, kShortMass, float);
64+
65+
DECLARE_SOA_COLUMN(PionIndex1, pionIndex1, int64_t);
66+
DECLARE_SOA_COLUMN(PionIndex2, pionIndex2, int64_t);
67+
} // namespace kshorttrack
68+
7169
DECLARE_SOA_TABLE(KShortTracks, "AOD", "KSHORTTRACK",
7270
o2::soa::Index<>,
73-
kshortpionpair::KShortpionEventId,
74-
kshortpionpair::V0Cospa,
75-
kshortpionpair::V0Radius,
76-
kshortpionpair::DcaPositive,
77-
kshortpionpair::DcaNegative,
78-
kshortpionpair::DcaBetweenDaughter,
79-
kshortpionpair::V0Lifetime,
80-
// kshortpionpair::Armenteros,
81-
kshortpionpair::KShortPx,
82-
kshortpionpair::KShortPy,
83-
kshortpionpair::KShortPz,
84-
kshortpionpair::KShortMass,
85-
kshortpionpair::PionIndex1,
86-
kshortpionpair::PionIndex2);
71+
kshorttrack::KShortpionEventId,
72+
kshorttrack::V0Cospa,
73+
kshorttrack::V0Radius,
74+
kshorttrack::DcaPositive,
75+
kshorttrack::DcaNegative,
76+
kshorttrack::DcaBetweenDaughter,
77+
// kshorttrack::V0Lifetime,
78+
kshorttrack::KShortPx,
79+
kshorttrack::KShortPy,
80+
kshorttrack::KShortPz,
81+
kshorttrack::KShortMass,
82+
kshorttrack::PionIndex1,
83+
kshorttrack::PionIndex2);
8784

8885
using KShortTrack = KShortTracks::iterator;
8986

87+
// ------------------------------------------------------------
88+
// Bachelor pion table
89+
// ------------------------------------------------------------
90+
namespace piontrack
91+
{
92+
DECLARE_SOA_INDEX_COLUMN(KShortpionEvent, kshortpionevent);
93+
94+
DECLARE_SOA_COLUMN(PionBachPx, pionBachPx, float);
95+
DECLARE_SOA_COLUMN(PionBachPy, pionBachPy, float);
96+
DECLARE_SOA_COLUMN(PionBachPz, pionBachPz, float);
97+
DECLARE_SOA_COLUMN(Charge, charge, int8_t);
98+
DECLARE_SOA_COLUMN(PionBachIndex, pionBachIndex, int64_t);
99+
DECLARE_SOA_COLUMN(PionPidMask, pionPidMask, uint8_t);
100+
} // namespace piontrack
101+
90102
DECLARE_SOA_TABLE(PionTracks, "AOD", "PIONTRACK",
91103
o2::soa::Index<>,
92-
kshortpionpair::KShortpionEventId,
93-
kshortpionpair::PionBachPx,
94-
kshortpionpair::PionBachPy,
95-
kshortpionpair::PionBachPz,
96-
// kshortpionpair::PionBachSign,
97-
// kshortpionpair::PionBachTPC,
98-
// kshortpionpair::PionBachTOFHit,
99-
// kshortpionpair::PionBachTOF,
100-
kshortpionpair::PionBachIndex,
101-
kshortpionpair::PionPidMask);
104+
piontrack::KShortpionEventId,
105+
piontrack::PionBachPx,
106+
piontrack::PionBachPy,
107+
piontrack::PionBachPz,
108+
piontrack::Charge,
109+
piontrack::PionBachIndex,
110+
piontrack::PionPidMask);
102111

103112
using PionTrack = PionTracks::iterator;
113+
104114
} // namespace o2::aod
115+
105116
#endif // PWGLF_DATAMODEL_LFCKSSPINALIGNMENTTABLES_H_

0 commit comments

Comments
 (0)