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

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 19 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(new Clockwork(manager,this,iSide,iEta,iPhi,iSector))
46 {
47 }

◆ ~EMBHVModule()

EMBHVModule::~EMBHVModule ( )

Definition at line 64 of file EMBHVModule.cxx.

65 {
66  delete m_c;
67 }

◆ EMBHVModule() [2/2]

EMBHVModule::EMBHVModule ( const EMBHVModule right)
private

Member Function Documentation

◆ getElectrode()

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

Definition at line 69 of file EMBHVModule.cxx.

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

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

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

◆ getEtaMin()

double EMBHVModule::getEtaMin ( ) const

Definition at line 79 of file EMBHVModule.cxx.

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

◆ getManager()

const EMBHVManager & EMBHVModule::getManager ( ) const

Definition at line 114 of file EMBHVModule.cxx.

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

◆ getNumElectrodes()

unsigned int EMBHVModule::getNumElectrodes ( ) const
inline

Definition at line 34 of file EMBHVModule.h.

34 { 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 106 of file EMBHVModule.cxx.

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

◆ getPhiMin()

double EMBHVModule::getPhiMin ( ) const

Definition at line 99 of file EMBHVModule.cxx.

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

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

75 {
76  return m_c->iSide;
77 }

◆ operator=()

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

Friends And Related Function Documentation

◆ ImaginaryFriend

friend class ImaginaryFriend
friend

Definition at line 57 of file EMBHVModule.h.

Member Data Documentation

◆ m_c

Clockwork* EMBHVModule::m_c
private

Definition at line 55 of file EMBHVModule.h.


The documentation for this class was generated from the following files:
EMBHVModule::Clockwork::iPhi
unsigned int iPhi
Definition: EMBHVModule.cxx:35
EMBHVManager::getDescriptor
const EMBHVDescriptor & getDescriptor() const
Definition: EMBHVManager.cxx:169
EMBHVModule::Clockwork::iEta
unsigned int iEta
Definition: EMBHVModule.cxx:34
EMBHVModule::Clockwork::iSector
unsigned int iSector
Definition: EMBHVModule.cxx:36
EMBHVModule::m_c
Clockwork * m_c
Definition: EMBHVModule.h:54
EMBHVModule::Clockwork::electrodes
const EMBHVElectrode * electrodes[64]
Definition: EMBHVModule.cxx:37
Trk::iPhi
@ iPhi
Definition: ParamDefs.h:47
EMBHVDescriptor::getEtaBinning
const CellBinning & getEtaBinning() const
Definition: EMBHVDescriptor.h:16
python.Logging.manager
manager
Definition: PhysicsAnalysis/D3PDTools/AnaAlgorithm/python/Logging.py:92
EMBHVDescriptor::getPhiBinning
const CellBinning & getPhiBinning() const
Definition: EMBHVDescriptor.h:21
xAOD::iEta
setScale setgFexType iEta
Definition: gFexJetRoI_v1.cxx:77
EMBHVModule::Clockwork::iSide
unsigned int iSide
Definition: EMBHVModule.cxx:33
EMBHVModule::Clockwork::manager
const EMBHVManager * manager
Definition: EMBHVModule.cxx:32