ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
TrigLiveFractionCondData Class Reference

Hold live fraction data produced by TrigLiveFractionCondAlg. More...

#include <TrigLiveFractionCondData.h>

Collaboration diagram for TrigLiveFractionCondData:

Public Member Functions

 TrigLiveFractionCondData (unsigned int turnCounter, std::vector< float > &&liveFractionLo, std::vector< float > &&liveFractionHi, float lumiLiveFractionLo, float lumiLiveFractionHi)
 Constructor. More...
 
const std::vector< float > & l1LiveFractionVector (bool highPriority=true) const
 Return vector with all BCIDs indexed by BCID number. More...
 
unsigned int lhcTurnCounter () const
 Number of turns in this lumi block (can be used to compute errors I guess). More...
 
float lbAverageLiveFraction (bool highPriority=true) const
 Luminosity-averaged live fraction over all physics BCIDs. More...
 

Private Attributes

unsigned int m_turnCounter
 
std::vector< float > m_liveFractionLo
 
std::vector< float > m_liveFractionHi
 
float m_lumiLiveFractionLo
 
float m_lumiLiveFractionHi
 

Detailed Description

Hold live fraction data produced by TrigLiveFractionCondAlg.

L1 livefraction information from /TRIGGER/LUMI/PerBcidDeadtime Use highPriority = false to get low priority triggers

Definition at line 28 of file TrigLiveFractionCondData.h.

Constructor & Destructor Documentation

◆ TrigLiveFractionCondData()

TrigLiveFractionCondData::TrigLiveFractionCondData ( unsigned int  turnCounter,
std::vector< float > &&  liveFractionLo,
std::vector< float > &&  liveFractionHi,
float  lumiLiveFractionLo,
float  lumiLiveFractionHi 
)

Constructor.

Parameters
turnCounterNumber of turns in this lumi block./
liveFractionLoPer-BCID live fraction, low-priority triggers.
liveFractionHiPer-BCID live fraction, high-priority triggers.
lumiLiveFractionLoLuminosity-averaged live fraction, low-priority triggers.
lumiLiveFractionHiLuminosity-averaged live fraction, high-priority triggers.

Definition at line 23 of file TrigLiveFractionCondData.cxx.

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 }

Member Function Documentation

◆ l1LiveFractionVector()

const std::vector< float > & TrigLiveFractionCondData::l1LiveFractionVector ( bool  highPriority = true) const

Return vector with all BCIDs indexed by BCID number.

Parameters
highPriorityHigh- or low-priority triggers.

Definition at line 42 of file TrigLiveFractionCondData.cxx.

43 {
44  if (highPriority) {
45  return m_liveFractionHi;
46  }
47  return m_liveFractionLo;
48 }

◆ lbAverageLiveFraction()

float TrigLiveFractionCondData::lbAverageLiveFraction ( bool  highPriority = true) const

Luminosity-averaged live fraction over all physics BCIDs.

Parameters
highPriorityHigh- or low-priority triggers.

Definition at line 66 of file TrigLiveFractionCondData.cxx.

67 {
68  if (highPriority) {
69  return m_lumiLiveFractionHi;
70  }
71  return m_lumiLiveFractionLo;
72 }

◆ lhcTurnCounter()

unsigned int TrigLiveFractionCondData::lhcTurnCounter ( ) const

Number of turns in this lumi block (can be used to compute errors I guess).

Definition at line 55 of file TrigLiveFractionCondData.cxx.

56 {
57  return m_turnCounter;
58 }

Member Data Documentation

◆ m_liveFractionHi

std::vector<float> TrigLiveFractionCondData::m_liveFractionHi
private

Definition at line 67 of file TrigLiveFractionCondData.h.

◆ m_liveFractionLo

std::vector<float> TrigLiveFractionCondData::m_liveFractionLo
private

Definition at line 66 of file TrigLiveFractionCondData.h.

◆ m_lumiLiveFractionHi

float TrigLiveFractionCondData::m_lumiLiveFractionHi
private

Definition at line 71 of file TrigLiveFractionCondData.h.

◆ m_lumiLiveFractionLo

float TrigLiveFractionCondData::m_lumiLiveFractionLo
private

Definition at line 70 of file TrigLiveFractionCondData.h.

◆ m_turnCounter

unsigned int TrigLiveFractionCondData::m_turnCounter
private

Definition at line 63 of file TrigLiveFractionCondData.h.


The documentation for this class was generated from the following files:
TrigLiveFractionCondData::m_lumiLiveFractionHi
float m_lumiLiveFractionHi
Definition: TrigLiveFractionCondData.h:71
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::m_lumiLiveFractionLo
float m_lumiLiveFractionLo
Definition: TrigLiveFractionCondData.h:70
TrigLiveFractionCondData::m_turnCounter
unsigned int m_turnCounter
Definition: TrigLiveFractionCondData.h:63