Skip to content

Commit 918b909

Browse files
committed
Add run number column to the ZDC derived data needed for run-by-run calibration of Q-vectors
1 parent 2e8b86c commit 918b909

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Common/DataModel/ZDCExtra.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ DECLARE_SOA_COLUMN(Vx, vx, float); //! Vertex X
4646
DECLARE_SOA_COLUMN(Vy, vy, float); //! Vertex Y
4747
DECLARE_SOA_COLUMN(Vz, vz, float); //! Vertex Z
4848
DECLARE_SOA_COLUMN(Timestamp, timestamp, uint64_t); //! Timestamp
49+
DECLARE_SOA_COLUMN(RunNumber, runNumber, uint32_t); //! Run Number
4950
DECLARE_SOA_COLUMN(SelectionBits, selectionBits, uint8_t); //! Selection Flags
5051
} // namespace zdcextra
5152

@@ -71,6 +72,7 @@ DECLARE_SOA_TABLE(ZdcExtras, "AOD", "ZDCEXTRA", o2::soa::Index<>,
7172
zdcextra::Vy,
7273
zdcextra::Vz,
7374
zdcextra::Timestamp,
75+
zdcextra::RunNumber,
7476
zdcextra::SelectionBits);
7577
} // namespace o2::aod
7678

Common/TableProducer/zdcExtraTableProducer.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ struct ZdcExtraTableProducer {
312312
auto vy = collision.posY();
313313

314314
if (isZNAhit || isZNChit) {
315-
zdcextras(pmcZNA, pmqZNA[0], pmqZNA[1], pmqZNA[2], pmqZNA[3], tdcZNA, centroidZNA[0], centroidZNA[1], pmcZNC, pmqZNC[0], pmqZNC[1], pmqZNC[2], pmqZNC[3], tdcZNC, centroidZNC[0], centroidZNC[1], centrality, vx, vy, vz, foundBC.timestamp(), evSelection);
315+
zdcextras(pmcZNA, pmqZNA[0], pmqZNA[1], pmqZNA[2], pmqZNA[3], tdcZNA, centroidZNA[0], centroidZNA[1], pmcZNC, pmqZNC[0], pmqZNC[1], pmqZNC[2], pmqZNC[3], tdcZNC, centroidZNC[0], centroidZNC[1], centrality, vx, vy, vz, foundBC.timestamp(), foundBC.runNumber(), evSelection);
316316
}
317317
}
318318
}

0 commit comments

Comments
 (0)