ATLAS Offline Software
Loading...
Searching...
No Matches
EMECPresamplerHVModule.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3*/
4
7#include "GeoModelKernel/CellBinning.h"
9
11public:
13 , unsigned int side
14 , unsigned int phi)
15 : manager(managerPtr)
16 , iSide(side)
17 , iPhi(phi)
18 {}
20 unsigned int iSide;
21 unsigned int iPhi;
22};
23
25 , unsigned int iSide
26 , unsigned int iPhi)
27 :m_c(new Clockwork(manager,iSide,iPhi))
28{
29}
30
35
37{
38 return m_c->iPhi;
39}
40
42{
43 return m_c->iSide;
44}
45
47{
48 if (m_c->iSide==0) return -1.8;
49 else return 1.5;
50}
51
53{
54 if (m_c->iSide==0) return -1.5;
55 else return 1.8;
56}
57
59{
60 return m_c->manager->getPhiBinning()->binLower(m_c->iPhi);
61}
62
64{
65 return m_c->manager->getPhiBinning()->binUpper(m_c->iPhi);
66}
67
69{
70 return *(m_c->manager);
71}
72
73#if !(defined(SIMULATIONBASE) || defined(GENERATIONBASE))
74int EMECPresamplerHVModule::hvLineNo(int /*iGap*/, const LArHVIdMapping* hvIdMapping) const
75{
76 return getManager().hvLineNo(*this,hvIdMapping);
77}
78#endif
Scalar phi() const
phi method
This class provides direct access to information on the HV electrodes within the EMEC.
int hvLineNo(const EMECPresamplerHVModule &module, const LArHVIdMapping *hvIdMapping, HWIdentifier *hvlineId=nullptr) const
Clockwork(const EMECPresamplerHVManager *managerPtr, unsigned int side, unsigned int phi)
const EMECPresamplerHVManager * manager
EMECPresamplerHVModule(const EMECPresamplerHVManager *manager, unsigned int iSide, unsigned int iPhi)
unsigned int getPhiIndex() const
const EMECPresamplerHVManager & getManager() const
unsigned int getSideIndex() const
int hvLineNo(int iGap, const LArHVIdMapping *hvIdMapping) const