ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
LArCalorimeter
LArGeoModel
LArHV
src
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
5
#include "
LArHV/EMECPresamplerHVModule.h
"
6
#include "
LArHV/EMECPresamplerHVManager.h
"
7
#include "GeoModelKernel/CellBinning.h"
8
#include "
EMECPresamplerHVPayload.h
"
9
10
class
EMECPresamplerHVModule::Clockwork
{
11
public
:
12
Clockwork
(
const
EMECPresamplerHVManager
* managerPtr
13
,
unsigned
int
side
14
,
unsigned
int
phi
)
15
:
manager
(managerPtr)
16
,
iSide
(side)
17
,
iPhi
(
phi
)
18
{}
19
const
EMECPresamplerHVManager
*
manager
;
20
unsigned
int
iSide
;
21
unsigned
int
iPhi
;
22
};
23
24
EMECPresamplerHVModule::EMECPresamplerHVModule
(
const
EMECPresamplerHVManager
* manager
25
,
unsigned
int
iSide
26
,
unsigned
int
iPhi)
27
:
m_c
(new
Clockwork
(manager,iSide,iPhi))
28
{
29
}
30
31
EMECPresamplerHVModule::~EMECPresamplerHVModule
()
32
{
33
delete
m_c
;
34
}
35
36
unsigned
int
EMECPresamplerHVModule::getPhiIndex
()
const
37
{
38
return
m_c
->iPhi;
39
}
40
41
unsigned
int
EMECPresamplerHVModule::getSideIndex
()
const
42
{
43
return
m_c
->iSide;
44
}
45
46
double
EMECPresamplerHVModule::getEtaMin
()
const
47
{
48
if
(
m_c
->iSide==0)
return
-1.8;
49
else
return
1.5;
50
}
51
52
double
EMECPresamplerHVModule::getEtaMax
()
const
53
{
54
if
(
m_c
->iSide==0)
return
-1.5;
55
else
return
1.8;
56
}
57
58
double
EMECPresamplerHVModule::getPhiMin
()
const
59
{
60
return
m_c
->manager->getPhiBinning()->binLower(
m_c
->iPhi);
61
}
62
63
double
EMECPresamplerHVModule::getPhiMax
()
const
64
{
65
return
m_c
->manager->getPhiBinning()->binUpper(
m_c
->iPhi);
66
}
67
68
const
EMECPresamplerHVManager
&
EMECPresamplerHVModule::getManager
()
const
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
phi
Scalar phi() const
phi method
Definition
AmgMatrixBasePlugin.h:67
EMECPresamplerHVManager.h
EMECPresamplerHVModule.h
EMECPresamplerHVPayload.h
EMECPresamplerHVManager
This class provides direct access to information on the HV electrodes within the EMEC.
Definition
EMECPresamplerHVManager.h:36
EMECPresamplerHVManager::hvLineNo
int hvLineNo(const EMECPresamplerHVModule &module, const LArHVIdMapping *hvIdMapping, HWIdentifier *hvlineId=nullptr) const
Definition
EMECPresamplerHVManager.cxx:250
EMECPresamplerHVModule::Clockwork
Definition
EMECPresamplerHVModule.cxx:10
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
EMECPresamplerHVModule::Clockwork::iPhi
unsigned int iPhi
Definition
EMECPresamplerHVModule.cxx:21
EMECPresamplerHVModule::Clockwork::manager
const EMECPresamplerHVManager * manager
Definition
EMECPresamplerHVModule.cxx:19
EMECPresamplerHVModule::EMECPresamplerHVModule
EMECPresamplerHVModule(const EMECPresamplerHVManager *manager, unsigned int iSide, unsigned int iPhi)
Definition
EMECPresamplerHVModule.cxx:24
EMECPresamplerHVModule::getPhiMax
double getPhiMax() const
Definition
EMECPresamplerHVModule.cxx:63
EMECPresamplerHVModule::getPhiIndex
unsigned int getPhiIndex() const
Definition
EMECPresamplerHVModule.cxx:36
EMECPresamplerHVModule::~EMECPresamplerHVModule
~EMECPresamplerHVModule()
Definition
EMECPresamplerHVModule.cxx:31
EMECPresamplerHVModule::getManager
const EMECPresamplerHVManager & getManager() const
Definition
EMECPresamplerHVModule.cxx:68
EMECPresamplerHVModule::getPhiMin
double getPhiMin() const
Definition
EMECPresamplerHVModule.cxx:58
EMECPresamplerHVModule::getEtaMax
double getEtaMax() const
Definition
EMECPresamplerHVModule.cxx:52
EMECPresamplerHVModule::getSideIndex
unsigned int getSideIndex() const
Definition
EMECPresamplerHVModule.cxx:41
EMECPresamplerHVModule::getEtaMin
double getEtaMin() const
Definition
EMECPresamplerHVModule.cxx:46
EMECPresamplerHVModule::hvLineNo
int hvLineNo(int iGap, const LArHVIdMapping *hvIdMapping) const
Definition
EMECPresamplerHVModule.cxx:74
EMECPresamplerHVModule::m_c
Clockwork * m_c
Definition
EMECPresamplerHVModule.h:52
LArHVIdMapping
Definition
LArHVIdMapping.h:21
Generated on
for ATLAS Offline Software by
1.17.0