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

#include <EMECHVModule.h>

Collaboration diagram for EMECHVModule:

Classes

class  Clockwork

Public Types

enum  IOType { INNER = 0 , OUTER = 1 }

Public Member Functions

 EMECHVModule (const EMECHVManager *manager, IOType iWheel, unsigned int iSide, unsigned int iEta, unsigned int iPhi, unsigned int iSector)
 ~EMECHVModule ()
double getEtaMin () const
double getEtaMax () const
double getPhiMin () const
double getPhiMax () const
unsigned int getEtaIndex () const
unsigned int getPhiIndex () const
unsigned int getNumElectrodes () const
const EMECHVElectrodegetElectrode (unsigned int iElectrode) const
unsigned int getSideIndex () const
EMECHVModule::IOType getWheelIndex () const
unsigned int getSectorIndex () const
const EMECHVManagergetManager () const

Private Member Functions

 EMECHVModule (const EMECHVModule &right)
EMECHVModuleoperator= (const EMECHVModule &right)

Private Attributes

Clockworkm_c

Detailed Description

Definition at line 19 of file EMECHVModule.h.

Member Enumeration Documentation

◆ IOType

Enumerator
INNER 
OUTER 

Definition at line 22 of file EMECHVModule.h.

22{ INNER = 0, OUTER = 1};

Constructor & Destructor Documentation

◆ EMECHVModule() [1/2]

EMECHVModule::EMECHVModule ( const EMECHVManager * manager,
IOType iWheel,
unsigned int iSide,
unsigned int iEta,
unsigned int iPhi,
unsigned int iSector )

Definition at line 50 of file EMECHVModule.cxx.

56 : m_c(new Clockwork(manager,this,iWheel,iSide,iEta,iPhi,iSector))
57{
58}
Clockwork * m_c

◆ ~EMECHVModule()

EMECHVModule::~EMECHVModule ( )

Definition at line 86 of file EMECHVModule.cxx.

87{
88 delete m_c;
89}

◆ EMECHVModule() [2/2]

EMECHVModule::EMECHVModule ( const EMECHVModule & right)
private

Member Function Documentation

◆ getElectrode()

const EMECHVElectrode & EMECHVModule::getElectrode ( unsigned int iElectrode) const

Definition at line 81 of file EMECHVModule.cxx.

82{
83 return *(m_c->electrodes[iElectrode]);
84}

◆ getEtaIndex()

unsigned int EMECHVModule::getEtaIndex ( ) const

Definition at line 60 of file EMECHVModule.cxx.

61{
62 return m_c->iEta;
63}

◆ getEtaMax()

double EMECHVModule::getEtaMax ( ) const

Definition at line 116 of file EMECHVModule.cxx.

117{
118 if (m_c->iSide==0) {
119 return -m_c->manager->getDescriptor().getEtaBinning().binLower(m_c->iEta);
120 }
121 else {
122 return m_c->manager->getDescriptor().getEtaBinning().binUpper(m_c->iEta);
123 }
124}

◆ getEtaMin()

double EMECHVModule::getEtaMin ( ) const

Definition at line 106 of file EMECHVModule.cxx.

107{
108 if (m_c->iSide==0) {
109 return -m_c->manager->getDescriptor().getEtaBinning().binUpper(m_c->iEta);
110 }
111 else {
112 return m_c->manager->getDescriptor().getEtaBinning().binLower(m_c->iEta);
113 }
114}

◆ getManager()

const EMECHVManager & EMECHVModule::getManager ( ) const

Definition at line 140 of file EMECHVModule.cxx.

141{
142 return *(m_c->manager);
143}

◆ getNumElectrodes()

unsigned int EMECHVModule::getNumElectrodes ( ) const

Definition at line 70 of file EMECHVModule.cxx.

71{
72 IOType IO=m_c->manager->getWheelIndex();
73 if (IO==OUTER) {
74 return 24;
75 }
76 else {
77 return 4;
78 }
79}

◆ getPhiIndex()

unsigned int EMECHVModule::getPhiIndex ( ) const

Definition at line 65 of file EMECHVModule.cxx.

66{
67 return m_c->iPhi;
68}

◆ getPhiMax()

double EMECHVModule::getPhiMax ( ) const

Definition at line 133 of file EMECHVModule.cxx.

134{
135 return
136 m_c->manager->getDescriptor().getPhiBinning().binLower(m_c->iPhi)+
137 m_c->manager->getDescriptor().getSectorBinning().binUpper(m_c->iSector);
138}

◆ getPhiMin()

double EMECHVModule::getPhiMin ( ) const

Definition at line 126 of file EMECHVModule.cxx.

127{
128 return
129 m_c->manager->getDescriptor().getPhiBinning().binLower(m_c->iPhi)+
130 m_c->manager->getDescriptor().getSectorBinning().binLower(m_c->iSector);
131}

◆ getSectorIndex()

unsigned int EMECHVModule::getSectorIndex ( ) const

Definition at line 101 of file EMECHVModule.cxx.

102{
103 return m_c->iSector;
104}

◆ getSideIndex()

unsigned int EMECHVModule::getSideIndex ( ) const

Definition at line 91 of file EMECHVModule.cxx.

92{
93 return m_c->iSide;
94}

◆ getWheelIndex()

EMECHVModule::IOType EMECHVModule::getWheelIndex ( ) const

Definition at line 96 of file EMECHVModule.cxx.

97{
98 return m_c->manager->getWheelIndex();
99}

◆ operator=()

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

Member Data Documentation

◆ m_c

Clockwork* EMECHVModule::m_c
private

Definition at line 61 of file EMECHVModule.h.


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