ATLAS Offline Software
Classes | Public Member Functions | Static Public Attributes | Static Private Member Functions | Private Attributes | List of all members
EMECPresamplerHVManager::EMECPresamplerHVData Class Reference

#include <EMECPresamplerHVManager.h>

Collaboration diagram for EMECPresamplerHVManager::EMECPresamplerHVData:

Classes

class  Payload
 

Public Member Functions

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

Static Public Attributes

static constexpr double INVALID = -99999
 

Static Private Member Functions

static int index (const EMECPresamplerHVModule &module)
 

Private Attributes

std::unique_ptr< Payloadm_payload
 

Detailed Description

Definition at line 38 of file EMECPresamplerHVManager.h.

Constructor & Destructor Documentation

◆ EMECPresamplerHVData() [1/2]

EMECPresamplerHVManager::EMECPresamplerHVData::EMECPresamplerHVData ( )
default

◆ EMECPresamplerHVData() [2/2]

EMECPresamplerHVManager::EMECPresamplerHVData::EMECPresamplerHVData ( std::unique_ptr< Payload payload)

Definition at line 71 of file EMECPresamplerHVManager.cxx.

73  : m_payload (std::move (payload))
74 {
75 }

◆ ~EMECPresamplerHVData()

EMECPresamplerHVManager::EMECPresamplerHVData::~EMECPresamplerHVData ( )
default

Member Function Documentation

◆ current()

double EMECPresamplerHVManager::EMECPresamplerHVData::current ( const EMECPresamplerHVModule module,
const int &  iGap 
) const

Definition at line 105 of file EMECPresamplerHVManager.cxx.

107 {
108  return m_payload->m_payloadArray[index(module)].current;
109 }

◆ hvLineNo()

int EMECPresamplerHVManager::EMECPresamplerHVData::hvLineNo ( const EMECPresamplerHVModule module,
const int &  iGap 
) const

Definition at line 112 of file EMECPresamplerHVManager.cxx.

114 {
115  return m_payload->m_payloadArray[index(module)].hvLineNo;
116 }

◆ hvOn()

bool EMECPresamplerHVManager::EMECPresamplerHVData::hvOn ( const EMECPresamplerHVModule module,
const int &  iGap 
) const

Definition at line 91 of file EMECPresamplerHVManager.cxx.

93 {
94  return voltage (module, iGap) > INVALID;
95 }

◆ index()

int EMECPresamplerHVManager::EMECPresamplerHVData::index ( const EMECPresamplerHVModule module)
staticprivate

Definition at line 119 of file EMECPresamplerHVManager.cxx.

121 {
122  unsigned int phiIndex = module.getPhiIndex();
123  unsigned int sideIndex = module.getSideIndex();
124  unsigned int index = 64*sideIndex+phiIndex;
125  return index;
126 }

◆ operator=()

EMECPresamplerHVManager::EMECPresamplerHVData & EMECPresamplerHVManager::EMECPresamplerHVData::operator= ( EMECPresamplerHVData &&  other)
noexcept

Definition at line 79 of file EMECPresamplerHVManager.cxx.

79  {
80  if (this != &other) {
81  m_payload = std::move (other.m_payload);
82  }
83  return *this;
84 }

◆ voltage()

double EMECPresamplerHVManager::EMECPresamplerHVData::voltage ( const EMECPresamplerHVModule module,
const int &  iGap 
) const

Definition at line 98 of file EMECPresamplerHVManager.cxx.

100 {
101  return m_payload->m_payloadArray[index(module)].voltage;
102 }

Member Data Documentation

◆ INVALID

constexpr double EMECPresamplerHVManager::EMECPresamplerHVData::INVALID = -99999
staticconstexpr

Definition at line 41 of file EMECPresamplerHVManager.h.

◆ m_payload

std::unique_ptr<Payload> EMECPresamplerHVManager::EMECPresamplerHVData::m_payload
private

Definition at line 53 of file EMECPresamplerHVManager.h.


The documentation for this class was generated from the following files:
EMECPresamplerHVManager::EMECPresamplerHVData::voltage
double voltage(const EMECPresamplerHVModule &module, const int &iGap) const
Definition: EMECPresamplerHVManager.cxx:99
index
Definition: index.py:1
python.PyAthena.module
module
Definition: PyAthena.py:134
EMECPresamplerHVManager::EMECPresamplerHVData::index
static int index(const EMECPresamplerHVModule &module)
Definition: EMECPresamplerHVManager.cxx:120
EMECPresamplerHVManager::EMECPresamplerHVData::INVALID
static constexpr double INVALID
Definition: EMECPresamplerHVManager.h:41
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
EMECPresamplerHVManager::EMECPresamplerHVData::m_payload
std::unique_ptr< Payload > m_payload
Definition: EMECPresamplerHVManager.h:53