ATLAS Offline Software
Loading...
Searching...
No Matches
TrigLiveFractionCondData.h
Go to the documentation of this file.
1// This file's extension implies that it's C, but it's really -*- C++ -*-.
2/*
3 * Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration.
4 */
11
12
13#ifndef LUMIBLOCKDATA_TRIGLIVEFRACTIONCONDDATA_H
14#define LUMIBLOCKDATA_TRIGLIVEFRACTIONCONDDATA_H
15
16
19#include <vector>
20
21
29{
30public:
39 TrigLiveFractionCondData (unsigned int turnCounter,
40 std::vector<float>&& liveFractionLo,
41 std::vector<float>&& liveFractionHi,
42 float lumiLiveFractionLo,
43 float lumiLiveFractionHi);
44
45 // L1 livefraction information from /TRIGGER/LUMI/PerBcidDeadtime
46 // Use highPriority = false to get low priority triggers
47
48 // Return vector with all BCIDs indexed by BCID number
49 const std::vector<float>& l1LiveFractionVector (bool highPriority = true) const;
50
51
52 // Number of turns in this lumi block (can be used to compute errors I guess)
53 unsigned int lhcTurnCounter() const;
54
55
56 // Luminosity-averaged live fraction over all physics BCIDs (high or low priority triggers)
57 // Depends on luminosity from LuminosityCondAlg.
58 float lbAverageLiveFraction (bool highPriority=true) const;
59
60
61private:
62 // Number of turns in this lumi block
63 unsigned int m_turnCounter;
64
65 // Live fraction per BCID
66 std::vector<float> m_liveFractionLo;
67 std::vector<float> m_liveFractionHi;
68
69 // Luminosity-weighted live fractions
72};
73
74
77
78
79#endif // not LUMIBLOCKDATA_TRIGLIVEFRACTIONCONDDATA_H
Hold mappings of ranges to condition objects.
#define CONDCONT_DEF(...)
Definition CondCont.h:1413
macros to associate a CLID to a type
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
Hold live fraction data produced by TrigLiveFractionCondAlg.
const std::vector< float > & l1LiveFractionVector(bool highPriority=true) const
Return vector with all BCIDs indexed by BCID number.
TrigLiveFractionCondData(unsigned int turnCounter, std::vector< float > &&liveFractionLo, std::vector< float > &&liveFractionHi, float lumiLiveFractionLo, float lumiLiveFractionHi)
Constructor.
float lbAverageLiveFraction(bool highPriority=true) const
Luminosity-averaged live fraction over all physics BCIDs.
std::vector< float > m_liveFractionLo
std::vector< float > m_liveFractionHi
unsigned int lhcTurnCounter() const
Number of turns in this lumi block (can be used to compute errors I guess).