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

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

#include <EMBHVModule.h>

Collaboration diagram for EMBHVModule:

Classes

class  Clockwork

Public Member Functions

 EMBHVModule (const EMBHVManager *manager, unsigned int iSide, unsigned int iEta, unsigned int iPhi, unsigned int iSector)
 ~EMBHVModule ()
unsigned int getEtaIndex () const
unsigned int getPhiIndex () const
unsigned int getSectorIndex () const
unsigned int getNumElectrodes () const
const EMBHVElectrodegetElectrode (unsigned int iElectrode) const
unsigned int getSideIndex () const
double getEtaMin () const
double getEtaMax () const
double getPhiMin () const
double getPhiMax () const
const EMBHVManagergetManager () const

Private Member Functions

EMBHVModuleoperator= (const EMBHVModule &right)
 EMBHVModule (const EMBHVModule &right)

Private Attributes

std::unique_ptr< Clockworkm_c

Friends

class ImaginaryFriend

Detailed Description

Describes one HV Module within the EMB.

Describes one HV Module within the EMEC.

It owns the pointers to HV Electrodes

Definition at line 21 of file EMBHVModule.h.

Constructor & Destructor Documentation

◆ EMBHVModule() [1/2]

EMBHVModule::EMBHVModule ( const EMBHVManager * manager,
unsigned int iSide,
unsigned int iEta,
unsigned int iPhi,
unsigned int iSector )

Definition at line 40 of file EMBHVModule.cxx.

45 : m_c (std::make_unique<Clockwork> (manager,this,iSide,iEta,iPhi,iSector))
46{
47}
std::unique_ptr< Clockwork > m_c
Definition EMBHVModule.h:57

◆ ~EMBHVModule()

EMBHVModule::~EMBHVModule ( )
default

◆ EMBHVModule() [2/2]

EMBHVModule::EMBHVModule ( const EMBHVModule & right)
private

Member Function Documentation

◆ getElectrode()

const EMBHVElectrode & EMBHVModule::getElectrode ( unsigned int iElectrode) const

Definition at line 66 of file EMBHVModule.cxx.

67{
68 return *(m_c->electrodes[iElectrode]);
69}

◆ getEtaIndex()

unsigned int EMBHVModule::getEtaIndex ( ) const

Definition at line 49 of file EMBHVModule.cxx.

50{
51 return m_c->iEta;
52}

◆ getEtaMax()

double EMBHVModule::getEtaMax ( ) const

Definition at line 86 of file EMBHVModule.cxx.

87{
88 if (m_c->iSide==0) {
89 return -m_c->manager->getDescriptor().getEtaBinning().binLower(m_c->iEta);
90 }
91 else {
92 return m_c->manager->getDescriptor().getEtaBinning().binUpper(m_c->iEta);
93 }
94}

◆ getEtaMin()

double EMBHVModule::getEtaMin ( ) const

Definition at line 76 of file EMBHVModule.cxx.

77{
78 if (m_c->iSide==0) {
79 return -m_c->manager->getDescriptor().getEtaBinning().binUpper(m_c->iEta);
80 }
81 else {
82 return m_c->manager->getDescriptor().getEtaBinning().binLower(m_c->iEta);
83 }
84}

◆ getManager()

const EMBHVManager & EMBHVModule::getManager ( ) const

Definition at line 111 of file EMBHVModule.cxx.

111 {
112 return *(m_c->manager);
113}

◆ getNumElectrodes()

unsigned int EMBHVModule::getNumElectrodes ( ) const
inline

Definition at line 36 of file EMBHVModule.h.

36{ return 64; }

◆ getPhiIndex()

unsigned int EMBHVModule::getPhiIndex ( ) const

Definition at line 54 of file EMBHVModule.cxx.

55{
56 return m_c->iPhi;
57}

◆ getPhiMax()

double EMBHVModule::getPhiMax ( ) const

Definition at line 103 of file EMBHVModule.cxx.

104{
105 return
106 m_c->manager->getDescriptor().getPhiBinning().binLower(m_c->iPhi)+
107 (m_c->iSector+1)*m_c->manager->getDescriptor().getPhiBinning().getDelta()/2.0;
108
109}

◆ getPhiMin()

double EMBHVModule::getPhiMin ( ) const

Definition at line 96 of file EMBHVModule.cxx.

97{
98 return
99 m_c->manager->getDescriptor().getPhiBinning().binLower(m_c->iPhi)+
100 m_c->iSector*m_c->manager->getDescriptor().getPhiBinning().getDelta()/2.0;
101}

◆ getSectorIndex()

unsigned int EMBHVModule::getSectorIndex ( ) const

Definition at line 59 of file EMBHVModule.cxx.

60{
61 return m_c->iSector;
62}

◆ getSideIndex()

unsigned int EMBHVModule::getSideIndex ( ) const

Definition at line 71 of file EMBHVModule.cxx.

72{
73 return m_c->iSide;
74}

◆ operator=()

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

◆ ImaginaryFriend

friend class ImaginaryFriend
friend

Definition at line 59 of file EMBHVModule.h.

Member Data Documentation

◆ m_c

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

Definition at line 57 of file EMBHVModule.h.


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