Skip to content

Commit 0701882

Browse files
committed
Added timing information of ZDC to output tree
1 parent 221a6c6 commit 0701882

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

PWGUD/DataModel/TauThreeProngEventTables.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ DECLARE_SOA_COLUMN(ZvtxFT0vsPv, zvtxFT0vsPv, int8_t);
5050
DECLARE_SOA_COLUMN(VtxITSTPC, vtxITSTPC, int8_t);
5151
DECLARE_SOA_COLUMN(ZdcAenergy, zdcAenergy, float);
5252
DECLARE_SOA_COLUMN(ZdcCenergy, zdcCenergy, float);
53+
DECLARE_SOA_COLUMN(ZdcAtime, zdcAtime, float);
54+
DECLARE_SOA_COLUMN(ZdcCtime, zdcCtime, float);
5355
// DECLARE_SOA_COLUMN(Qtot, qtot, int8_t);
5456
// FIT info
5557
DECLARE_SOA_COLUMN(TotalFT0AmplitudeA, totalFT0AmplitudeA, float);
@@ -113,6 +115,7 @@ DECLARE_SOA_TABLE(DataTauFourTracks, "AOD", "TAUFOURTRACK",
113115
tautree::Trs, tautree::Trofs, tautree::Hmpr,
114116
tautree::Tfb, tautree::ItsRofb, tautree::Sbp, tautree::ZvtxFT0vsPv, tautree::VtxITSTPC,
115117
tautree::ZdcAenergy, tautree::ZdcCenergy,
118+
tautree::ZdcAtime, tautree::ZdcCtime,
116119
// tautree::Qtot,
117120
tautree::TotalFT0AmplitudeA, tautree::TotalFT0AmplitudeC, tautree::TotalFV0AmplitudeA,
118121
// tautree::TimeFT0A, tautree::TimeFT0C, tautree::TimeFV0A,
@@ -135,6 +138,7 @@ DECLARE_SOA_TABLE(TrueTauFourTracks, "AOD", "TRUETAU",
135138
tautree::Trs, tautree::Trofs, tautree::Hmpr,
136139
tautree::Tfb, tautree::ItsRofb, tautree::Sbp, tautree::ZvtxFT0vsPv, tautree::VtxITSTPC,
137140
tautree::ZdcAenergy, tautree::ZdcCenergy,
141+
tautree::ZdcAtime, tautree::ZdcCtime,
138142
// tautree::Qtot,
139143
tautree::TotalFT0AmplitudeA, tautree::TotalFT0AmplitudeC, tautree::TotalFV0AmplitudeA,
140144
// tautree::TimeFT0A, tautree::TimeFT0C, tautree::TimeFV0A,

PWGUD/TableProducer/tauThreeProngEventTableProducer.cxx

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,11 @@ using namespace o2::constants::physics;
6363

6464
enum MyRecoProblem {
6565
NO_PROBLEM = 0, // no problem
66-
MANY_RECO = 1, // more than 1 reconstructed collision
66+
MANY_RECO = 1, // more than 1 reconstructed collision, event not rejected
6767
TOO_MANY_DAUGHTERS = 2, // more than 6 daughters from 2 taus
6868
TWO_TRACKS = 3, // more than 1 associated track to MC particle (tau daughter)
69-
NO_TRACK = 4 // No associated track to MC particle (tau daughter)
69+
NO_TRACK = 4, // No associated track to MC particle (tau daughter)
70+
MIXED_TRACKS = 5 // 4 (or 6) tracks reconstructed but from 2 collisions
7071
};
7172

7273
enum MyParticle {
@@ -718,6 +719,8 @@ struct TauThreeProngEventTableProducer {
718719
energyZNA = -1.;
719720
if (energyZNC < 0)
720721
energyZNC = -1.;
722+
float timeZNA = dgcand.timeZNA();
723+
float timeZNC = dgcand.timeZNC();
721724

722725
int nTofTrk = 0;
723726
int nEtaIn15 = 0;
@@ -872,6 +875,7 @@ struct TauThreeProngEventTableProducer {
872875
dgcand.trs(), dgcand.trofs(), dgcand.hmpr(), // to test it
873876
dgcand.tfb(), dgcand.itsROFb(), dgcand.sbp(), dgcand.zVtxFT0vPV(), dgcand.vtxITSTPC(),
874877
energyZNA, energyZNC,
878+
timeZNA, timeZNC,
875879
// qtot, <<-------- comment out
876880
dgcand.totalFT0AmplitudeA(), dgcand.totalFT0AmplitudeC(), dgcand.totalFV0AmplitudeA(),
877881
// dgcand.timeFT0A(), dgcand.timeFT0C(), dgcand.timeFV0A(),
@@ -1202,6 +1206,8 @@ struct TauThreeProngEventTableProducer {
12021206
// zdc information - there i sno information in MC
12031207
float energyZNA = -999.;
12041208
float energyZNC = -999.;
1209+
float timeZNA = -999.;
1210+
float timeZNC = -999.;
12051211

12061212
float amplitudesFIT[3] = {-999., -999., -999.}; // FT0A, FT0C, FV0
12071213
// float timesFIT[3] = {-999., -999., -999.}; // FT0A, FT0C, FV0
@@ -1577,6 +1583,7 @@ struct TauThreeProngEventTableProducer {
15771583
bcSels[0], bcSels[1], bcSels[2], // to test it
15781584
bcSels[3], bcSels[4], bcSels[5], bcSels[6], bcSels[7],
15791585
energyZNA, energyZNC,
1586+
timeZNA, timeZNC,
15801587
// qtot, <<-------- comment out
15811588
amplitudesFIT[0], amplitudesFIT[1], amplitudesFIT[2],
15821589
// timesFIT[0], timesFIT[1], timesFIT[2],

0 commit comments

Comments
 (0)