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

◆ ~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 {
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)+
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)+
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:
EMECHVModule::Clockwork::iEta
unsigned int iEta
Definition: EMECHVModule.cxx:43
EMECHVModule::Clockwork::iSide
unsigned int iSide
Definition: EMECHVModule.cxx:42
EMECHVModule::m_c
Clockwork * m_c
Definition: EMECHVModule.h:60
EMECHVDescriptor::getPhiBinning
const CellBinning & getPhiBinning() const
Definition: EMECHVDescriptor.h:21
EMECHVManager::getWheelIndex
EMECHVManager::IOType getWheelIndex() const
Definition: EMECHVManager.cxx:250
EMECHVModule::Clockwork::iPhi
unsigned int iPhi
Definition: EMECHVModule.cxx:44
EMECHVModule::INNER
@ INNER
Definition: EMECHVModule.h:22
EMECHVModule::Clockwork::electrodes
std::vector< const EMECHVElectrode * > electrodes
Definition: EMECHVModule.cxx:46
Trk::iPhi
@ iPhi
Definition: ParamDefs.h:53
EMECHVModule::OUTER
@ OUTER
Definition: EMECHVModule.h:22
EMECHVModule::Clockwork::iSector
unsigned int iSector
Definition: EMECHVModule.cxx:45
EMECHVModule::IOType
IOType
Definition: EMECHVModule.h:22
EMECHVManager::getDescriptor
const EMECHVDescriptor & getDescriptor() const
Definition: EMECHVManager.cxx:197
EMECHVDescriptor::getEtaBinning
const CellPartitioning & getEtaBinning() const
Definition: EMECHVDescriptor.h:16
python.Logging.manager
manager
Definition: PhysicsAnalysis/D3PDTools/AnaAlgorithm/python/Logging.py:92
xAOD::iEta
setScale setgFexType iEta
Definition: gFexJetRoI_v1.cxx:74
EMECHVDescriptor::getSectorBinning
const CellBinning & getSectorBinning() const
Definition: EMECHVDescriptor.h:26
EMECHVModule::Clockwork::manager
const EMECHVManager * manager
Definition: EMECHVModule.cxx:41