Skip to content

Commit

Permalink
Adding lumi source as meta data
Browse files Browse the repository at this point in the history
  • Loading branch information
matthias-kleiner committed Nov 26, 2023
1 parent 526d21b commit 41e3e1a
Showing 1 changed file with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,17 @@ namespace tpc

struct SCMetaData {

enum LumiType {
CTP = 0,
IDC = 1
};

void print() const
{
std::array<std::string, 2> collisionTypes{"PP", "Pb-Pb"};
const std::array<std::string, 2> collisionTypes{"PP", "Pb-Pb"};
const std::array<std::string, 2> 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);
}
Expand All @@ -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);
Expand Down

0 comments on commit 41e3e1a

Please sign in to comment.