ATLAS Offline Software
Classes | Public Member Functions | Static Public Attributes | Static Private Member Functions | Private Attributes | List of all members
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 }

◆ 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 }

◆ 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 }

◆ 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

constexpr 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:
index
Definition: index.py:1
python.PyAthena.module
module
Definition: PyAthena.py:134
EMBPresamplerHVManager::EMBPresamplerHVData::voltage
double voltage(const EMBPresamplerHVModule &module, const int &iGap) const
Definition: EMBPresamplerHVManager.cxx:108
PixelModuleFeMask_create_db.payload
string payload
Definition: PixelModuleFeMask_create_db.py:69
eflowRec::phiIndex
unsigned int phiIndex(float phi, float binsize)
calculate phi index for a given phi
Definition: EtaPhiLUT.cxx:23
InDetDD::other
@ other
Definition: InDetDD_Defs.h:16
EMBPresamplerHVManager::EMBPresamplerHVData::INVALID
static constexpr double INVALID
Definition: EMBPresamplerHVManager.h:42
EMBPresamplerHVManager::EMBPresamplerHVData::index
static int index(const EMBPresamplerHVModule &module)
Definition: EMBPresamplerHVManager.cxx:129
EMBPresamplerHVManager::EMBPresamplerHVData::m_payload
std::unique_ptr< Payload > m_payload
Definition: EMBPresamplerHVManager.h:54