ATLAS Offline Software
Loading...
Searching...
No Matches
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}
std::unique_ptr< Payload > m_payload

◆ ~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}
static int index(const HECHVSubgap &subgap)

◆ 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}
static constexpr double INVALID
double voltage(const HECHVSubgap &subgap) const

◆ 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}
const HECHVModule & getModule() const
unsigned int getSubgapIndex() const
unsigned int phiIndex(float phi, float binsize)
calculate phi index for a given phi
Definition EtaPhiLUT.cxx:23

◆ 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

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: