ATLAS Offline Software
Loading...
Searching...
No Matches
FCALHVManager::FCALHVData Class Reference

#include <FCALHVManager.h>

Collaboration diagram for FCALHVManager::FCALHVData:

Classes

class  Payload

Public Member Functions

 FCALHVData ()
 FCALHVData (std::unique_ptr< Payload > payload)
FCALHVDataoperator= (FCALHVData &&other) noexcept
 ~FCALHVData ()
bool hvOn (const FCALHVLine &line) const
double voltage (const FCALHVLine &line) const
double current (const FCALHVLine &line) const
int hvLineNo (const FCALHVLine &line) const

Static Public Attributes

static constexpr double INVALID = -99999

Static Private Member Functions

static int index (const FCALHVLine &line)

Private Attributes

std::unique_ptr< Payloadm_payload

Detailed Description

Definition at line 37 of file FCALHVManager.h.

Constructor & Destructor Documentation

◆ FCALHVData() [1/2]

FCALHVManager::FCALHVData::FCALHVData ( )
default

◆ FCALHVData() [2/2]

FCALHVManager::FCALHVData::FCALHVData ( std::unique_ptr< Payload > payload)

Definition at line 95 of file FCALHVManager.cxx.

96 : m_payload (std::move (payload))
97{
98}
std::unique_ptr< Payload > m_payload

◆ ~FCALHVData()

FCALHVManager::FCALHVData::~FCALHVData ( )
default

Member Function Documentation

◆ current()

double FCALHVManager::FCALHVData::current ( const FCALHVLine & line) const

Definition at line 125 of file FCALHVManager.cxx.

126{
127 return m_payload->m_payloadArray[index(line)].current;
128}
static int index(const FCALHVLine &line)

◆ hvLineNo()

int FCALHVManager::FCALHVData::hvLineNo ( const FCALHVLine & line) const

Definition at line 131 of file FCALHVManager.cxx.

132{
133 return m_payload->m_payloadArray[index(line)].hvLineNo;
134}

◆ hvOn()

bool FCALHVManager::FCALHVData::hvOn ( const FCALHVLine & line) const

Definition at line 113 of file FCALHVManager.cxx.

114{
115 return voltage (line) > INVALID;
116}
static constexpr double INVALID
double voltage(const FCALHVLine &line) const

◆ index()

int FCALHVManager::FCALHVData::index ( const FCALHVLine & line)
staticprivate

Definition at line 137 of file FCALHVManager.cxx.

138{
139 unsigned int lineIndex = line.getLineIndex();
140 const FCALHVModule& module = line.getModule();
141 unsigned int sectorIndex = module.getSectorIndex();
142 unsigned int sideIndex = module.getSideIndex();
143 unsigned int samplingIndex = module.getSamplingIndex();
144 unsigned int index = 192*sideIndex+12*sectorIndex+4*samplingIndex+lineIndex;
145 return index;
146}

◆ operator=()

FCALHVManager::FCALHVData & FCALHVManager::FCALHVData::operator= ( FCALHVData && other)
noexcept

Definition at line 102 of file FCALHVManager.cxx.

102 {
103 if (this != &other) {
104 m_payload = std::move (other.m_payload);
105 }
106 return *this;
107}

◆ voltage()

double FCALHVManager::FCALHVData::voltage ( const FCALHVLine & line) const

Definition at line 119 of file FCALHVManager.cxx.

120{
121 return m_payload->m_payloadArray[index(line)].voltage;
122}

Member Data Documentation

◆ INVALID

double FCALHVManager::FCALHVData::INVALID = -99999
staticconstexpr

Definition at line 40 of file FCALHVManager.h.

◆ m_payload

std::unique_ptr<Payload> FCALHVManager::FCALHVData::m_payload
private

Definition at line 52 of file FCALHVManager.h.


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