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 EMBHVElectrode & getElectrode (unsigned int iElectrode) const
unsigned int getSideIndex () const
double getEtaMin () const
double getEtaMax () const
double getPhiMin () const
double getPhiMax () const
const EMBHVManager & getManager () const

Private Member Functions

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

Private Attributes

std::unique_ptr< Clockwork > m_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 42 of file EMBHVModule.cxx.

47 : m_c (std::make_unique<Clockwork> (manager,this,iSide,iEta,iPhi,iSector))
48{
49}
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 68 of file EMBHVModule.cxx.

69{
70 return *(m_c->electrodes[iElectrode]);
71}

◆ getEtaIndex()

unsigned int EMBHVModule::getEtaIndex ( ) const

Definition at line 51 of file EMBHVModule.cxx.

52{
53 return m_c->iEta;
54}

◆ getEtaMax()

double EMBHVModule::getEtaMax ( ) const

Definition at line 88 of file EMBHVModule.cxx.

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

◆ getEtaMin()

double EMBHVModule::getEtaMin ( ) const

Definition at line 78 of file EMBHVModule.cxx.

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

◆ getManager()

const EMBHVManager & EMBHVModule::getManager ( ) const

Definition at line 113 of file EMBHVModule.cxx.

113 {
114 return *(m_c->manager);
115}

◆ 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 56 of file EMBHVModule.cxx.

57{
58 return m_c->iPhi;
59}

◆ getPhiMax()

double EMBHVModule::getPhiMax ( ) const

Definition at line 105 of file EMBHVModule.cxx.

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

◆ getPhiMin()

double EMBHVModule::getPhiMin ( ) const

Definition at line 98 of file EMBHVModule.cxx.

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

◆ getSectorIndex()

unsigned int EMBHVModule::getSectorIndex ( ) const

Definition at line 61 of file EMBHVModule.cxx.

62{
63 return m_c->iSector;
64}

◆ getSideIndex()

unsigned int EMBHVModule::getSideIndex ( ) const

Definition at line 73 of file EMBHVModule.cxx.

74{
75 return m_c->iSide;
76}

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