ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
LumiBlock
LumiBlockData
LumiBlockData
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
17
#include "
AthenaKernel/CondCont.h
"
18
#include "
AthenaKernel/CLASS_DEF.h
"
19
#include <vector>
20
21
28
class
TrigLiveFractionCondData
29
{
30
public
:
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
61
private
:
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
70
float
m_lumiLiveFractionLo
;
71
float
m_lumiLiveFractionHi
;
72
};
73
74
75
CLASS_DEF
(
TrigLiveFractionCondData
, 143256074, 0)
76
CONDCONT_DEF
(
TrigLiveFractionCondData
, 241111590);
77
78
79
#endif
// not LUMIBLOCKDATA_TRIGLIVEFRACTIONCONDDATA_H
CondCont.h
Hold mappings of ranges to condition objects.
CONDCONT_DEF
#define CONDCONT_DEF(...)
Definition
CondCont.h:1413
CLASS_DEF.h
macros to associate a CLID to a type
CLASS_DEF
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
Definition
Control/AthenaKernel/AthenaKernel/CLASS_DEF.h:67
TrigLiveFractionCondData
Hold live fraction data produced by TrigLiveFractionCondAlg.
Definition
TrigLiveFractionCondData.h:29
TrigLiveFractionCondData::l1LiveFractionVector
const std::vector< float > & l1LiveFractionVector(bool highPriority=true) const
Return vector with all BCIDs indexed by BCID number.
Definition
TrigLiveFractionCondData.cxx:42
TrigLiveFractionCondData::TrigLiveFractionCondData
TrigLiveFractionCondData(unsigned int turnCounter, std::vector< float > &&liveFractionLo, std::vector< float > &&liveFractionHi, float lumiLiveFractionLo, float lumiLiveFractionHi)
Constructor.
Definition
TrigLiveFractionCondData.cxx:23
TrigLiveFractionCondData::lbAverageLiveFraction
float lbAverageLiveFraction(bool highPriority=true) const
Luminosity-averaged live fraction over all physics BCIDs.
Definition
TrigLiveFractionCondData.cxx:66
TrigLiveFractionCondData::m_turnCounter
unsigned int m_turnCounter
Definition
TrigLiveFractionCondData.h:63
TrigLiveFractionCondData::m_liveFractionLo
std::vector< float > m_liveFractionLo
Definition
TrigLiveFractionCondData.h:66
TrigLiveFractionCondData::m_lumiLiveFractionLo
float m_lumiLiveFractionLo
Definition
TrigLiveFractionCondData.h:70
TrigLiveFractionCondData::m_liveFractionHi
std::vector< float > m_liveFractionHi
Definition
TrigLiveFractionCondData.h:67
TrigLiveFractionCondData::m_lumiLiveFractionHi
float m_lumiLiveFractionHi
Definition
TrigLiveFractionCondData.h:71
TrigLiveFractionCondData::lhcTurnCounter
unsigned int lhcTurnCounter() const
Number of turns in this lumi block (can be used to compute errors I guess).
Definition
TrigLiveFractionCondData.cxx:55
Generated on
for ATLAS Offline Software by
1.17.0