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

std::unique_ptr< Clockworkm_c

Detailed Description

Definition at line 21 of file EMECHVModule.h.

Member Enumeration Documentation

◆ IOType

Enumerator
INNER 
OUTER 

Definition at line 24 of file EMECHVModule.h.

24{ 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 (std::make_unique<Clockwork> (manager,this,iWheel,iSide,iEta,iPhi,iSector))
57{
58}
std::unique_ptr< Clockwork > m_c

◆ ~EMECHVModule()

EMECHVModule::~EMECHVModule ( )
default

◆ 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 113 of file EMECHVModule.cxx.

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

◆ getEtaMin()

double EMECHVModule::getEtaMin ( ) const

Definition at line 103 of file EMECHVModule.cxx.

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

◆ getManager()

const EMECHVManager & EMECHVModule::getManager ( ) const

Definition at line 137 of file EMECHVModule.cxx.

138{
139 return *(m_c->manager);
140}

◆ 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 130 of file EMECHVModule.cxx.

131{
132 return
133 m_c->manager->getDescriptor().getPhiBinning().binLower(m_c->iPhi)+
134 m_c->manager->getDescriptor().getSectorBinning().binUpper(m_c->iSector);
135}

◆ getPhiMin()

double EMECHVModule::getPhiMin ( ) const

Definition at line 123 of file EMECHVModule.cxx.

124{
125 return
126 m_c->manager->getDescriptor().getPhiBinning().binLower(m_c->iPhi)+
127 m_c->manager->getDescriptor().getSectorBinning().binLower(m_c->iSector);
128}

◆ getSectorIndex()

unsigned int EMECHVModule::getSectorIndex ( ) const

Definition at line 98 of file EMECHVModule.cxx.

99{
100 return m_c->iSector;
101}

◆ getSideIndex()

unsigned int EMECHVModule::getSideIndex ( ) const

Definition at line 88 of file EMECHVModule.cxx.

89{
90 return m_c->iSide;
91}

◆ getWheelIndex()

EMECHVModule::IOType EMECHVModule::getWheelIndex ( ) const

Definition at line 93 of file EMECHVModule.cxx.

94{
95 return m_c->manager->getWheelIndex();
96}

◆ operator=()

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

Member Data Documentation

◆ m_c

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

Definition at line 63 of file EMECHVModule.h.


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