Skip to content

Commit b1a88a0

Browse files
committed
add uncalibrated energy to the SPTableZDC
1 parent c97275a commit b1a88a0

2 files changed

Lines changed: 23 additions & 7 deletions

File tree

PWGCF/DataModel/SPTableZDC.h

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,14 @@ DECLARE_SOA_COLUMN(QxC, qxC, float);
3939
DECLARE_SOA_COLUMN(QyC, qyC, float);
4040
DECLARE_SOA_COLUMN(IsSelected, isSelected, bool);
4141
DECLARE_SOA_COLUMN(EventSelectionFlags, eventSelectionFlags, uint16_t);
42+
DECLARE_SOA_COLUMN(UncalibratedEnergyA1, uncalibratedEnergyA1, float);
43+
DECLARE_SOA_COLUMN(UncalibratedEnergyA2, uncalibratedEnergyA2, float);
44+
DECLARE_SOA_COLUMN(UncalibratedEnergyA3, uncalibratedEnergyA3, float);
45+
DECLARE_SOA_COLUMN(UncalibratedEnergyA4, uncalibratedEnergyA4, float);
46+
DECLARE_SOA_COLUMN(UncalibratedEnergyC1, uncalibratedEnergyC1, float);
47+
DECLARE_SOA_COLUMN(UncalibratedEnergyC2, uncalibratedEnergyC2, float);
48+
DECLARE_SOA_COLUMN(UncalibratedEnergyC3, uncalibratedEnergyC3, float);
49+
DECLARE_SOA_COLUMN(UncalibratedEnergyC4, uncalibratedEnergyC4, float);
4250

4351
} // namespace sptablezdc
4452

@@ -52,6 +60,14 @@ DECLARE_SOA_TABLE(SPTableZDC, "AOD", "SPZDC",
5260
sptablezdc::QxC,
5361
sptablezdc::QyC,
5462
sptablezdc::IsSelected,
55-
sptablezdc::EventSelectionFlags);
63+
sptablezdc::EventSelectionFlags,
64+
sptablezdc::UncalibratedEnergyA1,
65+
sptablezdc::UncalibratedEnergyA2,
66+
sptablezdc::UncalibratedEnergyA3,
67+
sptablezdc::UncalibratedEnergyA4,
68+
sptablezdc::UncalibratedEnergyC1,
69+
sptablezdc::UncalibratedEnergyC2,
70+
sptablezdc::UncalibratedEnergyC3,
71+
sptablezdc::UncalibratedEnergyC4);
5672
} // namespace o2::aod
5773
#endif // PWGCF_DATAMODEL_SPTABLEZDC_H_

PWGCF/Flow/TableProducer/zdcQVectors.cxx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -767,7 +767,7 @@ struct ZdcQVectors {
767767

768768
if (!foundBC.has_zdc()) {
769769
isSelected = false;
770-
spTableZDC(runnumber, cents, v, foundBC.timestamp(), 0, 0, 0, 0, isSelected, 0);
770+
spTableZDC(runnumber, cents, v, foundBC.timestamp(), 0, 0, 0, 0, isSelected, 0, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f);
771771
counter++;
772772
lastRunNumber = runnumber;
773773
return;
@@ -803,7 +803,7 @@ struct ZdcQVectors {
803803
if (!isZNAhit || !isZNChit) {
804804
counter++;
805805
isSelected = false;
806-
spTableZDC(runnumber, cents, v, foundBC.timestamp(), 0, 0, 0, 0, isSelected, 0);
806+
spTableZDC(runnumber, cents, v, foundBC.timestamp(), 0, 0, 0, 0, isSelected, 0, eZN[0], eZN[1], eZN[2], eZN[3], eZN[4], eZN[5], eZN[6], eZN[7]);
807807
lastRunNumber = runnumber;
808808
return;
809809
}
@@ -815,7 +815,7 @@ struct ZdcQVectors {
815815
if (cent < EvSel.cfgCentMin || cent > EvSel.cfgCentMax || !collision.sel8() || std::abs(collision.posZ()) > cfgVtxZ) {
816816
// event not selected
817817
isSelected = false;
818-
spTableZDC(runnumber, cents, v, foundBC.timestamp(), 0, 0, 0, 0, isSelected, eventSelectionFlags);
818+
spTableZDC(runnumber, cents, v, foundBC.timestamp(), 0, 0, 0, 0, isSelected, eventSelectionFlags, eZN[0], eZN[1], eZN[2], eZN[3], eZN[4], eZN[5], eZN[6], eZN[7]);
819819
counter++;
820820
lastRunNumber = runnumber;
821821
return;
@@ -878,7 +878,7 @@ struct ZdcQVectors {
878878
if (!cal.calibfilesLoaded[0]) {
879879
counter++;
880880
isSelected = false;
881-
spTableZDC(runnumber, cents, v, foundBC.timestamp(), 0, 0, 0, 0, isSelected, eventSelectionFlags);
881+
spTableZDC(runnumber, cents, v, foundBC.timestamp(), 0, 0, 0, 0, isSelected, eventSelectionFlags, eZN[0], eZN[1], eZN[2], eZN[3], eZN[4], eZN[5], eZN[6], eZN[7]);
882882
lastRunNumber = runnumber;
883883
return;
884884
}
@@ -1031,7 +1031,7 @@ struct ZdcQVectors {
10311031
if (isSelected && cfgFillHistRegistry)
10321032
fillCommonRegistry<kBefore>(q[0], q[1], q[2], q[3], v, centrality, rsTimestamp);
10331033

1034-
spTableZDC(runnumber, cents, v, foundBC.timestamp(), q[0], q[1], q[2], q[3], isSelected, eventSelectionFlags);
1034+
spTableZDC(runnumber, cents, v, foundBC.timestamp(), q[0], q[1], q[2], q[3], isSelected, eventSelectionFlags, eZN[0], eZN[1], eZN[2], eZN[3], eZN[4], eZN[5], eZN[6], eZN[7]);
10351035
counter++;
10361036
lastRunNumber = runnumber;
10371037
return;
@@ -1184,7 +1184,7 @@ struct ZdcQVectors {
11841184
registry.get<TProfile>(HIST("QA/after/ZNC_Qy"))->Fill(Form("%d", runnumber), qRec[3]);
11851185
}
11861186

1187-
spTableZDC(runnumber, cents, v, foundBC.timestamp(), qXaShift, qYaShift, qXcShift, qYcShift, isSelected, eventSelectionFlags);
1187+
spTableZDC(runnumber, cents, v, foundBC.timestamp(), qXaShift, qYaShift, qXcShift, qYcShift, isSelected, eventSelectionFlags, eZN[0], eZN[1], eZN[2], eZN[3], eZN[4], eZN[5], eZN[6], eZN[7]);
11881188
qRec.clear();
11891189

11901190
counter++;

0 commit comments

Comments
 (0)