From 41e3e1a3b9204656ee5f1731b978f741faf8bcc6 Mon Sep 17 00:00:00 2001 From: Matthias Kleiner Date: Sun, 26 Nov 2023 17:54:05 +0100 Subject: [PATCH] Adding lumi source as meta data --- .../include/TPCSpaceCharge/SpaceChargeHelpers.h | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/Detectors/TPC/spacecharge/include/TPCSpaceCharge/SpaceChargeHelpers.h b/Detectors/TPC/spacecharge/include/TPCSpaceCharge/SpaceChargeHelpers.h index 01228ce6f28d7..954bf90d2ebcf 100644 --- a/Detectors/TPC/spacecharge/include/TPCSpaceCharge/SpaceChargeHelpers.h +++ b/Detectors/TPC/spacecharge/include/TPCSpaceCharge/SpaceChargeHelpers.h @@ -32,11 +32,17 @@ namespace tpc struct SCMetaData { + enum LumiType { + CTP = 0, + IDC = 1 + }; + void print() const { - std::array collisionTypes{"PP", "Pb-Pb"}; + const std::array collisionTypes{"PP", "Pb-Pb"}; + const std::array slumiSource{"CTP", "IDC"}; if (collisionType < collisionTypes.size()) { - LOGP(info, "meanLumi: {}, IR: {}kHz, run: {}, collisionType {}", meanLumi, ir, run, collisionTypes[collisionType]); + LOGP(info, "meanLumi: {}, source of lumi: {}, IR: {}kHz, run: {}, collisionType {}", meanLumi, slumiSource[lumiSource], ir, run, collisionTypes[collisionType]); } else { LOGP(info, "Specified collision type {} not allowed", collisionType); } @@ -46,6 +52,7 @@ struct SCMetaData { float ir = 0; ///< IR int run = 0; ///< run number this object anchored to to int collisionType = 0; ///< 0=PP, 1-Pb-Pb + LumiType lumiSource{}; ///< source of luminosity private: ClassDefNV(SCMetaData, 1);