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

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

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

◆ 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

constexpr 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:
checkFileSG.line
line
Definition: checkFileSG.py:75
FCALHVManager::FCALHVData::m_payload
std::unique_ptr< Payload > m_payload
Definition: FCALHVManager.h:52
index
Definition: index.py:1
FCALHVManager::FCALHVData::voltage
double voltage(const FCALHVLine &line) const
Definition: FCALHVManager.cxx:119
python.PyAthena.module
module
Definition: PyAthena.py:134
FCALHVManager::FCALHVData::INVALID
static constexpr double INVALID
Definition: FCALHVManager.h:40
PixelModuleFeMask_create_db.payload
string payload
Definition: PixelModuleFeMask_create_db.py:69
InDetDD::other
@ other
Definition: InDetDD_Defs.h:16
FCALHVModule
Describes one HV Module within the FCAL.
Definition: FCALHVModule.h:20
FCALHVManager::FCALHVData::index
static int index(const FCALHVLine &line)
Definition: FCALHVManager.cxx:137