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

#include <HECHVManager.h>

Collaboration diagram for HECHVManager::HECHVData:

Classes

class  Payload
 

Public Member Functions

 HECHVData ()
 
 HECHVData (std::unique_ptr< Payload > payload)
 
HECHVDataoperator= (HECHVData &&other) noexcept
 
 ~HECHVData ()
 
bool hvOn (const HECHVSubgap &subgap) const
 
double voltage (const HECHVSubgap &subgap) const
 
double current (const HECHVSubgap &subgap) const
 
int hvLineNo (const HECHVSubgap &subgap) const
 

Static Public Attributes

static constexpr double INVALID = -99999
 

Static Private Member Functions

static int index (const HECHVSubgap &subgap)
 

Private Attributes

std::unique_ptr< Payloadm_payload
 

Detailed Description

Definition at line 38 of file HECHVManager.h.

Constructor & Destructor Documentation

◆ HECHVData() [1/2]

HECHVManager::HECHVData::HECHVData ( )
default

◆ HECHVData() [2/2]

HECHVManager::HECHVData::HECHVData ( std::unique_ptr< Payload payload)

Definition at line 99 of file HECHVManager.cxx.

100  : m_payload (std::move (payload))
101 {
102 }

◆ ~HECHVData()

HECHVManager::HECHVData::~HECHVData ( )
default

Member Function Documentation

◆ current()

double HECHVManager::HECHVData::current ( const HECHVSubgap subgap) const

Definition at line 130 of file HECHVManager.cxx.

131 {
132  return m_payload->m_payloadArray[index(subgap)].current;
133 }

◆ hvLineNo()

int HECHVManager::HECHVData::hvLineNo ( const HECHVSubgap subgap) const

Definition at line 136 of file HECHVManager.cxx.

137 {
138  return m_payload->m_payloadArray[index(subgap)].hvLineNo;
139 }

◆ hvOn()

bool HECHVManager::HECHVData::hvOn ( const HECHVSubgap subgap) const

Definition at line 118 of file HECHVManager.cxx.

119 {
120  return voltage (subgap) > INVALID;
121 }

◆ index()

int HECHVManager::HECHVData::index ( const HECHVSubgap subgap)
staticprivate

Definition at line 142 of file HECHVManager.cxx.

143 {
144  unsigned int subgapIndex = subgap.getSubgapIndex();
145  const HECHVModule& module = subgap.getModule();
146  unsigned int phiIndex = module.getPhiIndex();
147  unsigned int samplingIndex = module.getSamplingIndex();
148  unsigned int sideIndex = module.getSideIndex();
149  unsigned int index = 512*sideIndex+16*phiIndex+4*samplingIndex+subgapIndex;
150  return index;
151 }

◆ operator=()

HECHVManager::HECHVData & HECHVManager::HECHVData::operator= ( HECHVData &&  other)
noexcept

Definition at line 106 of file HECHVManager.cxx.

106  {
107  if (this != &other) {
108  m_payload = std::move (other.m_payload);
109  }
110  return *this;
111 }

◆ voltage()

double HECHVManager::HECHVData::voltage ( const HECHVSubgap subgap) const

Definition at line 124 of file HECHVManager.cxx.

125 {
126  return m_payload->m_payloadArray[index(subgap)].voltage;
127 }

Member Data Documentation

◆ INVALID

constexpr double HECHVManager::HECHVData::INVALID = -99999
staticconstexpr

Definition at line 41 of file HECHVManager.h.

◆ m_payload

std::unique_ptr<Payload> HECHVManager::HECHVData::m_payload
private

Definition at line 53 of file HECHVManager.h.


The documentation for this class was generated from the following files:
HECHVModule
Describes one HV Module within the HEC.
Definition: HECHVModule.h:21
index
Definition: index.py:1
HECHVManager::HECHVData::index
static int index(const HECHVSubgap &subgap)
Definition: HECHVManager.cxx:142
python.PyAthena.module
module
Definition: PyAthena.py:131
HECHVManager::HECHVData::voltage
double voltage(const HECHVSubgap &subgap) const
Definition: HECHVManager.cxx:124
HECHVManager::HECHVData::m_payload
std::unique_ptr< Payload > m_payload
Definition: HECHVManager.h:53
HECHVSubgap::getModule
const HECHVModule & getModule() const
Definition: HECHVSubgap.cxx:34
HECHVSubgap::getSubgapIndex
unsigned int getSubgapIndex() const
Definition: HECHVSubgap.cxx:39
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
HECHVManager::HECHVData::INVALID
static constexpr double INVALID
Definition: HECHVManager.h:41