ATLAS Offline Software
Loading...
Searching...
No Matches
FCALHVModule Class Reference

Describes one HV Module within the FCAL. More...

#include <FCALHVModule.h>

Collaboration diagram for FCALHVModule:

Classes

class  Clockwork

Public Member Functions

 FCALHVModule (const FCALHVManager *manager, unsigned int iSide, unsigned int iSector, unsigned int iSampling)
 ~FCALHVModule ()
unsigned int getSideIndex () const
unsigned int getSamplingIndex () const
unsigned int getSectorIndex () const
const FCALHVLine & getHVLine (unsigned int iLine) const
const FCALHVManager & getManager () const

Static Public Member Functions

static unsigned int getNumHVLines ()

Private Member Functions

 FCALHVModule (const FCALHVModule &right)
FCALHVModule & operator= (const FCALHVModule &right)

Private Attributes

std::unique_ptr< Clockwork > m_c

Detailed Description

Describes one HV Module within the FCAL.

It owns the pointers to HV Lines

Definition at line 21 of file FCALHVModule.h.

Constructor & Destructor Documentation

◆ FCALHVModule() [1/2]

FCALHVModule::FCALHVModule ( const FCALHVManager * manager,
unsigned int iSide,
unsigned int iSector,
unsigned int iSampling )

Definition at line 41 of file FCALHVModule.cxx.

45 : m_c (std::make_unique<Clockwork> (manager,this,iSide,iSector,iSampling))
46{
47}
std::unique_ptr< Clockwork > m_c

◆ ~FCALHVModule()

FCALHVModule::~FCALHVModule ( )
default

◆ FCALHVModule() [2/2]

FCALHVModule::FCALHVModule ( const FCALHVModule & right)
private

Member Function Documentation

◆ getHVLine()

const FCALHVLine & FCALHVModule::getHVLine ( unsigned int iLine) const

Definition at line 71 of file FCALHVModule.cxx.

72{
73 // Check bounds and throw error if out of range.
74 if (iLine>3) {
75 std::string msg = std::string("FCALHVModule requesting out of range HV line, number ") + std::to_string(iLine);
76 throw std::runtime_error(msg.c_str());
77 }
78
79 return *(m_c->hvLine[iLine]);
80}
MsgStream & msg
Definition testRead.cxx:32

◆ getManager()

const FCALHVManager & FCALHVModule::getManager ( ) const

Definition at line 82 of file FCALHVModule.cxx.

83{
84 return *(m_c->manager);
85}

◆ getNumHVLines()

unsigned int FCALHVModule::getNumHVLines ( )
static

Definition at line 66 of file FCALHVModule.cxx.

67{
68 return 4;
69}

◆ getSamplingIndex()

unsigned int FCALHVModule::getSamplingIndex ( ) const

Definition at line 56 of file FCALHVModule.cxx.

57{
58 return m_c->iSampling;
59}

◆ getSectorIndex()

unsigned int FCALHVModule::getSectorIndex ( ) const

Definition at line 61 of file FCALHVModule.cxx.

62{
63 return m_c->iSector;
64}

◆ getSideIndex()

unsigned int FCALHVModule::getSideIndex ( ) const

Definition at line 51 of file FCALHVModule.cxx.

52{
53 return m_c->iSide;
54}

◆ operator=()

FCALHVModule & FCALHVModule::operator= ( const FCALHVModule & right)
private

Member Data Documentation

◆ m_c

std::unique_ptr<Clockwork> FCALHVModule::m_c
private

Definition at line 47 of file FCALHVModule.h.


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