ATLAS Offline Software
EMBPresamplerHVModule.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3 */
4 
9 
11 public:
13  , unsigned int side
14  , unsigned int eta
15  , unsigned int phi)
16  : manager(managerPtr)
17  , iSide(side)
18  , iEta(eta)
19  , iPhi(phi)
20  {}
22  unsigned int iSide;
23  unsigned int iEta;
24  unsigned int iPhi;
25 };
26 
28  , unsigned int iSide
29  , unsigned int iEta
30  , unsigned int iPhi)
31  : m_c(new Clockwork(manager,iSide,iEta,iPhi))
32 {
33 }
34 
36 {
37  delete m_c;
38 }
39 
41 {
42  return m_c->iEta;
43 }
44 
46 {
47  return m_c->iPhi;
48 }
49 
51 {
52  return m_c->iSide;
53 }
54 
56 {
57  if (m_c->iSide==0) {
58  return -m_c->manager->getDescriptor()->getEtaPartitioning().binUpper(m_c->iEta);
59  }
60  else {
61  return m_c->manager->getDescriptor()->getEtaPartitioning().binLower(m_c->iEta);
62  }
63 }
64 
66 {
67  if (m_c->iSide==0) {
68  return -m_c->manager->getDescriptor()->getEtaPartitioning().binLower(m_c->iEta);
69  }
70  else {
71  return m_c->manager->getDescriptor()->getEtaPartitioning().binUpper(m_c->iEta);
72  }
73 }
74 
76 {
77  return m_c->manager->getDescriptor()->getPhiBinning().binLower(m_c->iPhi);
78 }
79 
81 {
82  return m_c->manager->getDescriptor()->getPhiBinning().binUpper(m_c->iPhi);
83 }
84 
86 {
87  return *(m_c->manager);
88 }
89 
90 #if !(defined(SIMULATIONBASE) || defined(GENERATIONBASE))
91 int EMBPresamplerHVModule::hvLineNo(int iGap, const LArHVIdMapping* hvIdMapping) const {
92  return m_c->manager->hvLineNo(*this,iGap,hvIdMapping);
93 }
94 #endif
EMBPresamplerHVDescriptor.h
EMBPresamplerHVModule::Clockwork::iPhi
unsigned int iPhi
Definition: EMBPresamplerHVModule.cxx:24
EMBPresamplerHVPayload.h
phi
Scalar phi() const
phi method
Definition: AmgMatrixBasePlugin.h:64
EMBPresamplerHVModule::m_c
Clockwork * m_c
Definition: EMBPresamplerHVModule.h:53
eta
Scalar eta() const
pseudorapidity method
Definition: AmgMatrixBasePlugin.h:79
EMBPresamplerHVModule::getEtaMin
double getEtaMin() const
Definition: EMBPresamplerHVModule.cxx:55
EMBPresamplerHVManager.h
CSV_InDetExporter.new
new
Definition: CSV_InDetExporter.py:145
EMBPresamplerHVModule::Clockwork::Clockwork
Clockwork(const EMBPresamplerHVManager *managerPtr, unsigned int side, unsigned int eta, unsigned int phi)
Definition: EMBPresamplerHVModule.cxx:12
EMBPresamplerHVModule::getManager
const EMBPresamplerHVManager & getManager() const
Definition: EMBPresamplerHVModule.cxx:85
EMBPresamplerHVManager::hvLineNo
int hvLineNo(const EMBPresamplerHVModule &module, int gap, const LArHVIdMapping *hvIdMapping) const
Definition: EMBPresamplerHVManager.cxx:284
EMBPresamplerHVModule::getPhiMin
double getPhiMin() const
Definition: EMBPresamplerHVModule.cxx:75
TRT::Hit::side
@ side
Definition: HitInfo.h:83
EMBPresamplerHVManager
This class provides direct access to information on the HV electrodes within the barrels....
Definition: EMBPresamplerHVManager.h:37
EMBPresamplerHVModule::EMBPresamplerHVModule
EMBPresamplerHVModule(const EMBPresamplerHVManager *manager, unsigned int iSide, unsigned int iEta, unsigned int iPhi)
Definition: EMBPresamplerHVModule.cxx:27
EMBPresamplerHVModule::~EMBPresamplerHVModule
~EMBPresamplerHVModule()
Definition: EMBPresamplerHVModule.cxx:35
EMBPresamplerHVModule::getEtaMax
double getEtaMax() const
Definition: EMBPresamplerHVModule.cxx:65
EMBPresamplerHVModule::getPhiIndex
unsigned int getPhiIndex() const
Definition: EMBPresamplerHVModule.cxx:45
EMBPresamplerHVModule::hvLineNo
int hvLineNo(int iGap, const LArHVIdMapping *hvIdMapping) const
Definition: EMBPresamplerHVModule.cxx:91
EMBPresamplerHVModule::getEtaIndex
unsigned int getEtaIndex() const
Definition: EMBPresamplerHVModule.cxx:40
EMBPresamplerHVManager::getDescriptor
const EMBPresamplerHVDescriptor * getDescriptor() const
Definition: EMBPresamplerHVManager.cxx:147
EMBPresamplerHVModule.h
EMBPresamplerHVModule::getSideIndex
unsigned int getSideIndex() const
Definition: EMBPresamplerHVModule.cxx:50
EMBPresamplerHVModule::Clockwork::manager
const EMBPresamplerHVManager * manager
Definition: EMBPresamplerHVModule.cxx:21
EMBPresamplerHVModule::Clockwork
Definition: EMBPresamplerHVModule.cxx:10
EMBPresamplerHVDescriptor::getEtaPartitioning
const CellPartitioning & getEtaPartitioning() const
Definition: EMBPresamplerHVDescriptor.h:17
Trk::iPhi
@ iPhi
Definition: ParamDefs.h:53
LArHVIdMapping
Definition: LArHVIdMapping.h:21
EMBPresamplerHVModule::Clockwork::iEta
unsigned int iEta
Definition: EMBPresamplerHVModule.cxx:23
EMBPresamplerHVModule::Clockwork::iSide
unsigned int iSide
Definition: EMBPresamplerHVModule.cxx:22
EMBPresamplerHVDescriptor::getPhiBinning
const CellBinning & getPhiBinning() const
Definition: EMBPresamplerHVDescriptor.h:22
python.Logging.manager
manager
Definition: PhysicsAnalysis/D3PDTools/AnaAlgorithm/python/Logging.py:92
EMBPresamplerHVModule::getPhiMax
double getPhiMax() const
Definition: EMBPresamplerHVModule.cxx:80
xAOD::iEta
setScale setgFexType iEta
Definition: gFexJetRoI_v1.cxx:74