ATLAS Offline Software
Loading...
Searching...
No Matches
EMBPresamplerHVManager::EMBPresamplerHVData Class Reference

#include <EMBPresamplerHVManager.h>

Collaboration diagram for EMBPresamplerHVManager::EMBPresamplerHVData:

Classes

class  Payload

Public Member Functions

 EMBPresamplerHVData ()
 EMBPresamplerHVData (std::unique_ptr< Payload > payload)
EMBPresamplerHVDataoperator= (EMBPresamplerHVData &&other) noexcept
 ~EMBPresamplerHVData ()
bool hvOn (const EMBPresamplerHVModule &module, const int &iGap) const
double voltage (const EMBPresamplerHVModule &module, const int &iGap) const
double current (const EMBPresamplerHVModule &module, const int &iGap) const
int hvLineNo (const EMBPresamplerHVModule &module, const int &iGap) const

Static Public Attributes

static constexpr double INVALID = -99999

Static Private Member Functions

static int index (const EMBPresamplerHVModule &module)

Private Attributes

std::unique_ptr< Payloadm_payload

Detailed Description

Definition at line 39 of file EMBPresamplerHVManager.h.

Constructor & Destructor Documentation

◆ EMBPresamplerHVData() [1/2]

EMBPresamplerHVManager::EMBPresamplerHVData::EMBPresamplerHVData ( )
default

◆ EMBPresamplerHVData() [2/2]

EMBPresamplerHVManager::EMBPresamplerHVData::EMBPresamplerHVData ( std::unique_ptr< Payload > payload)

Definition at line 80 of file EMBPresamplerHVManager.cxx.

82 : m_payload (std::move (payload))
83{
84}

◆ ~EMBPresamplerHVData()

EMBPresamplerHVManager::EMBPresamplerHVData::~EMBPresamplerHVData ( )
default

Member Function Documentation

◆ current()

double EMBPresamplerHVManager::EMBPresamplerHVData::current ( const EMBPresamplerHVModule & module,
const int & iGap ) const

Definition at line 114 of file EMBPresamplerHVManager.cxx.

116{
117 return m_payload->m_payloadArray[index(module)].current[iGap];
118}
static int index(const EMBPresamplerHVModule &module)

◆ hvLineNo()

int EMBPresamplerHVManager::EMBPresamplerHVData::hvLineNo ( const EMBPresamplerHVModule & module,
const int & iGap ) const

Definition at line 121 of file EMBPresamplerHVManager.cxx.

123{
124 return m_payload->m_payloadArray[index(module)].hvLineNo[iGap];
125}

◆ hvOn()

bool EMBPresamplerHVManager::EMBPresamplerHVData::hvOn ( const EMBPresamplerHVModule & module,
const int & iGap ) const

Definition at line 100 of file EMBPresamplerHVManager.cxx.

102{
103 return voltage (module, iGap) > INVALID;
104}
double voltage(const EMBPresamplerHVModule &module, const int &iGap) const

◆ index()

int EMBPresamplerHVManager::EMBPresamplerHVData::index ( const EMBPresamplerHVModule & module)
staticprivate

Definition at line 128 of file EMBPresamplerHVManager.cxx.

130{
131 unsigned int sideIndex = module.getSideIndex();
132 unsigned int phiIndex = module.getPhiIndex();
133 unsigned int etaIndex = module.getEtaIndex();
134 unsigned int index = 128*sideIndex+32*etaIndex+phiIndex;
135 return index;
136}
unsigned int phiIndex(float phi, float binsize)
calculate phi index for a given phi
Definition EtaPhiLUT.cxx:23

◆ operator=()

EMBPresamplerHVManager::EMBPresamplerHVData & EMBPresamplerHVManager::EMBPresamplerHVData::operator= ( EMBPresamplerHVData && other)
noexcept

Definition at line 88 of file EMBPresamplerHVManager.cxx.

88 {
89 if (this != &other) {
90 m_payload = std::move (other.m_payload);
91 }
92 return *this;
93}

◆ voltage()

double EMBPresamplerHVManager::EMBPresamplerHVData::voltage ( const EMBPresamplerHVModule & module,
const int & iGap ) const

Definition at line 107 of file EMBPresamplerHVManager.cxx.

109{
110 return m_payload->m_payloadArray[index(module)].voltage[iGap];
111}

Member Data Documentation

◆ INVALID

double EMBPresamplerHVManager::EMBPresamplerHVData::INVALID = -99999
staticconstexpr

Definition at line 42 of file EMBPresamplerHVManager.h.

◆ m_payload

std::unique_ptr<Payload> EMBPresamplerHVManager::EMBPresamplerHVData::m_payload
private

Definition at line 54 of file EMBPresamplerHVManager.h.


The documentation for this class was generated from the following files: