ATLAS Offline Software
Public Member Functions | Static Public Attributes | Private Attributes | List of all members
TRTCond::AliveStraws Class Reference

#include <AliveStraws.h>

Collaboration diagram for TRTCond::AliveStraws:

Public Member Functions

 AliveStraws ()
 
virtual ~AliveStraws ()
 
const std::array< int, NTOTAL > & getStwTotal () const
 
const std::array< std::array< int, NLOCALPHI >, NLOCAL > & getStwLocal () const
 
const std::array< std::array< int, NLOCALPHI >, NWHEEL > & getStwWheel () const
 
void update (const unsigned int i, const unsigned int j, const unsigned int phi)
 

Static Public Attributes

static constexpr unsigned int NTOTAL = 7
 
static constexpr unsigned int NLOCAL = 6
 
static constexpr unsigned int NWHEEL = 34
 
static constexpr unsigned int NLOCALPHI = 32
 

Private Attributes

std::array< int, NTOTALm_stw_total {}
 
std::array< std::array< int, NLOCALPHI >, NLOCALm_stw_local {}
 
std::array< std::array< int, NLOCALPHI >, NWHEELm_stw_wheel {}
 

Detailed Description

Definition at line 14 of file AliveStraws.h.

Constructor & Destructor Documentation

◆ AliveStraws()

TRTCond::AliveStraws::AliveStraws ( )
inline

Definition at line 20 of file AliveStraws.h.

20 {}

◆ ~AliveStraws()

virtual TRTCond::AliveStraws::~AliveStraws ( )
inlinevirtual

Definition at line 22 of file AliveStraws.h.

22 {}

Member Function Documentation

◆ getStwLocal()

const std::array<std::array<int,NLOCALPHI>,NLOCAL>& TRTCond::AliveStraws::getStwLocal ( ) const
inline

Definition at line 24 of file AliveStraws.h.

24 {return m_stw_local; }

◆ getStwTotal()

const std::array<int,NTOTAL>& TRTCond::AliveStraws::getStwTotal ( ) const
inline

Definition at line 23 of file AliveStraws.h.

23 {return m_stw_total; }

◆ getStwWheel()

const std::array<std::array<int,NLOCALPHI>,NWHEEL>& TRTCond::AliveStraws::getStwWheel ( ) const
inline

Definition at line 25 of file AliveStraws.h.

25 {return m_stw_wheel; }

◆ update()

void TRTCond::AliveStraws::update ( const unsigned int  i,
const unsigned int  j,
const unsigned int  phi 
)
inline

Definition at line 26 of file AliveStraws.h.

26  {
27  assert(i>0 && i<m_stw_total.size() && i-1<m_stw_local.size() && j<m_stw_wheel.size() && phi<NLOCALPHI);
28  m_stw_total[0] +=1;
29  m_stw_total[i] +=1;
30  m_stw_local[i-1][phi] +=1;
31  m_stw_wheel[j][phi] +=1;
32  }

Member Data Documentation

◆ m_stw_local

std::array<std::array<int,NLOCALPHI>,NLOCAL> TRTCond::AliveStraws::m_stw_local {}
private

Definition at line 36 of file AliveStraws.h.

◆ m_stw_total

std::array<int,NTOTAL> TRTCond::AliveStraws::m_stw_total {}
private

Definition at line 35 of file AliveStraws.h.

◆ m_stw_wheel

std::array<std::array<int,NLOCALPHI>,NWHEEL> TRTCond::AliveStraws::m_stw_wheel {}
private

Definition at line 37 of file AliveStraws.h.

◆ NLOCAL

constexpr unsigned int TRTCond::AliveStraws::NLOCAL = 6
staticconstexpr

Definition at line 17 of file AliveStraws.h.

◆ NLOCALPHI

constexpr unsigned int TRTCond::AliveStraws::NLOCALPHI = 32
staticconstexpr

Definition at line 19 of file AliveStraws.h.

◆ NTOTAL

constexpr unsigned int TRTCond::AliveStraws::NTOTAL = 7
staticconstexpr

Definition at line 16 of file AliveStraws.h.

◆ NWHEEL

constexpr unsigned int TRTCond::AliveStraws::NWHEEL = 34
staticconstexpr

Definition at line 18 of file AliveStraws.h.


The documentation for this class was generated from the following file:
phi
Scalar phi() const
phi method
Definition: AmgMatrixBasePlugin.h:64
TRTCond::AliveStraws::m_stw_local
std::array< std::array< int, NLOCALPHI >, NLOCAL > m_stw_local
Definition: AliveStraws.h:36
TRTCond::AliveStraws::m_stw_total
std::array< int, NTOTAL > m_stw_total
Definition: AliveStraws.h:35
TRTCond::AliveStraws::NLOCALPHI
static constexpr unsigned int NLOCALPHI
Definition: AliveStraws.h:19
lumiFormat.i
int i
Definition: lumiFormat.py:92
TRTCond::AliveStraws::m_stw_wheel
std::array< std::array< int, NLOCALPHI >, NWHEEL > m_stw_wheel
Definition: AliveStraws.h:37