ATLAS Offline Software
Loading...
Searching...
No Matches
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
11public:
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
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))
91int EMBPresamplerHVModule::hvLineNo(int iGap, const LArHVIdMapping* hvIdMapping) const {
92 return m_c->manager->hvLineNo(*this,iGap,hvIdMapping);
93}
94#endif
Scalar eta() const
pseudorapidity method
Scalar phi() const
phi method
This class provides direct access to information on the HV electrodes within the barrels.
const EMBPresamplerHVManager * manager
Clockwork(const EMBPresamplerHVManager *managerPtr, unsigned int side, unsigned int eta, unsigned int phi)
unsigned int getSideIndex() const
EMBPresamplerHVModule(const EMBPresamplerHVManager *manager, unsigned int iSide, unsigned int iEta, unsigned int iPhi)
unsigned int getPhiIndex() const
unsigned int getEtaIndex() const
const EMBPresamplerHVManager & getManager() const
int hvLineNo(int iGap, const LArHVIdMapping *hvIdMapping) const