ATLAS Offline Software
TrigLiveFractionCondData.cxx
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration.
3  */
13 
14 
24  std::vector<float>&& liveFractionLo,
25  std::vector<float>&& liveFractionHi,
26  float lumiLiveFractionLo,
27  float lumiLiveFractionHi)
28  : m_turnCounter (turnCounter),
29  m_liveFractionLo (std::move (liveFractionLo)),
30  m_liveFractionHi (std::move (liveFractionHi)),
31  m_lumiLiveFractionLo (lumiLiveFractionLo),
32  m_lumiLiveFractionHi (lumiLiveFractionHi)
33 {
34 }
35 
36 
41 const std::vector<float>&
42 TrigLiveFractionCondData::l1LiveFractionVector (bool highPriority /*= true*/) const
43 {
44  if (highPriority) {
45  return m_liveFractionHi;
46  }
47  return m_liveFractionLo;
48 }
49 
50 
51 
56 {
57  return m_turnCounter;
58 }
59 
60 
65 float
66 TrigLiveFractionCondData::lbAverageLiveFraction (bool highPriority /*=true*/) const
67 {
68  if (highPriority) {
69  return m_lumiLiveFractionHi;
70  }
71  return m_lumiLiveFractionLo;
72 }
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
TrigLiveFractionCondData::m_lumiLiveFractionHi
float m_lumiLiveFractionHi
Definition: TrigLiveFractionCondData.h:71
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.h
Hold live fraction data produced by TrigLiveFractionCondAlg.
TrigLiveFractionCondData::m_liveFractionHi
std::vector< float > m_liveFractionHi
Definition: TrigLiveFractionCondData.h:67
TrigLiveFractionCondData::m_liveFractionLo
std::vector< float > m_liveFractionLo
Definition: TrigLiveFractionCondData.h:66
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::m_lumiLiveFractionLo
float m_lumiLiveFractionLo
Definition: TrigLiveFractionCondData.h:70
TrigLiveFractionCondData::m_turnCounter
unsigned int m_turnCounter
Definition: TrigLiveFractionCondData.h:63