ATLAS Offline Software
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 
11 public:
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 
32 {
33  delete m_c;
34 }
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))
74 int EMECPresamplerHVModule::hvLineNo(int /*iGap*/, const LArHVIdMapping* hvIdMapping) const
75 {
76  return getManager().hvLineNo(*this,hvIdMapping);
77 }
78 #endif
EMECPresamplerHVManager
This class provides direct access to information on the HV electrodes within the EMEC....
Definition: EMECPresamplerHVManager.h:36
EMECPresamplerHVModule::getPhiIndex
unsigned int getPhiIndex() const
Definition: EMECPresamplerHVModule.cxx:36
EMECPresamplerHVModule::getEtaMin
double getEtaMin() const
Definition: EMECPresamplerHVModule.cxx:46
EMECPresamplerHVModule::EMECPresamplerHVModule
EMECPresamplerHVModule(const EMECPresamplerHVManager *manager, unsigned int iSide, unsigned int iPhi)
Definition: EMECPresamplerHVModule.cxx:24
phi
Scalar phi() const
phi method
Definition: AmgMatrixBasePlugin.h:67
CSV_InDetExporter.new
new
Definition: CSV_InDetExporter.py:145
EMECPresamplerHVModule::m_c
Clockwork * m_c
Definition: EMECPresamplerHVModule.h:51
EMECPresamplerHVModule::getSideIndex
unsigned int getSideIndex() const
Definition: EMECPresamplerHVModule.cxx:41
EMECPresamplerHVManager.h
EMECPresamplerHVModule.h
EMECPresamplerHVModule::Clockwork::iPhi
unsigned int iPhi
Definition: EMECPresamplerHVModule.cxx:21
EMECPresamplerHVModule::Clockwork
Definition: EMECPresamplerHVModule.cxx:10
TRT::Hit::side
@ side
Definition: HitInfo.h:83
EMECPresamplerHVModule::Clockwork::Clockwork
Clockwork(const EMECPresamplerHVManager *managerPtr, unsigned int side, unsigned int phi)
Definition: EMECPresamplerHVModule.cxx:12
EMECPresamplerHVModule::Clockwork::iSide
unsigned int iSide
Definition: EMECPresamplerHVModule.cxx:20
EMECPresamplerHVPayload.h
EMECPresamplerHVModule::~EMECPresamplerHVModule
~EMECPresamplerHVModule()
Definition: EMECPresamplerHVModule.cxx:31
EMECPresamplerHVManager::getPhiBinning
const CellBinning * getPhiBinning() const
Definition: EMECPresamplerHVManager.cxx:137
EMECPresamplerHVModule::getEtaMax
double getEtaMax() const
Definition: EMECPresamplerHVModule.cxx:52
EMECPresamplerHVModule::getPhiMin
double getPhiMin() const
Definition: EMECPresamplerHVModule.cxx:58
EMECPresamplerHVModule::hvLineNo
int hvLineNo(int iGap, const LArHVIdMapping *hvIdMapping) const
Definition: EMECPresamplerHVModule.cxx:74
EMECPresamplerHVModule::Clockwork::manager
const EMECPresamplerHVManager * manager
Definition: EMECPresamplerHVModule.cxx:19
Trk::iPhi
@ iPhi
Definition: ParamDefs.h:47
EMECPresamplerHVModule::getPhiMax
double getPhiMax() const
Definition: EMECPresamplerHVModule.cxx:63
LArHVIdMapping
Definition: LArHVIdMapping.h:21
EMECPresamplerHVManager::hvLineNo
int hvLineNo(const EMECPresamplerHVModule &module, const LArHVIdMapping *hvIdMapping, HWIdentifier *hvlineId=nullptr) const
Definition: EMECPresamplerHVManager.cxx:249
EMECPresamplerHVModule::getManager
const EMECPresamplerHVManager & getManager() const
Definition: EMECPresamplerHVModule.cxx:68
python.Logging.manager
manager
Definition: PhysicsAnalysis/D3PDTools/AnaAlgorithm/python/Logging.py:92