ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
LArCalorimeter
LArGeoModel
LArHV
src
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
5
#include "
LArHV/EMBPresamplerHVModule.h
"
6
#include "
LArHV/EMBPresamplerHVManager.h
"
7
#include "
LArHV/EMBPresamplerHVDescriptor.h
"
8
#include "
EMBPresamplerHVPayload.h
"
9
10
class
EMBPresamplerHVModule::Clockwork
{
11
public
:
12
Clockwork
(
const
EMBPresamplerHVManager
* managerPtr
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
{}
21
const
EMBPresamplerHVManager
*
manager
;
22
unsigned
int
iSide
;
23
unsigned
int
iEta
;
24
unsigned
int
iPhi
;
25
};
26
27
EMBPresamplerHVModule::EMBPresamplerHVModule
(
const
EMBPresamplerHVManager
*manager
28
,
unsigned
int
iSide
29
,
unsigned
int
iEta
30
,
unsigned
int
iPhi)
31
:
m_c
(new
Clockwork
(manager,iSide,iEta,iPhi))
32
{
33
}
34
35
EMBPresamplerHVModule::~EMBPresamplerHVModule
()
36
{
37
delete
m_c
;
38
}
39
40
unsigned
int
EMBPresamplerHVModule::getEtaIndex
()
const
41
{
42
return
m_c
->iEta;
43
}
44
45
unsigned
int
EMBPresamplerHVModule::getPhiIndex
()
const
46
{
47
return
m_c
->iPhi;
48
}
49
50
unsigned
int
EMBPresamplerHVModule::getSideIndex
()
const
51
{
52
return
m_c
->iSide;
53
}
54
55
double
EMBPresamplerHVModule::getEtaMin
()
const
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
65
double
EMBPresamplerHVModule::getEtaMax
()
const
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
75
double
EMBPresamplerHVModule::getPhiMin
()
const
76
{
77
return
m_c
->manager->getDescriptor()->getPhiBinning().binLower(
m_c
->iPhi);
78
}
79
80
double
EMBPresamplerHVModule::getPhiMax
()
const
81
{
82
return
m_c
->manager->getDescriptor()->getPhiBinning().binUpper(
m_c
->iPhi);
83
}
84
85
const
EMBPresamplerHVManager
&
EMBPresamplerHVModule::getManager
()
const
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
eta
Scalar eta() const
pseudorapidity method
Definition
AmgMatrixBasePlugin.h:83
phi
Scalar phi() const
phi method
Definition
AmgMatrixBasePlugin.h:67
EMBPresamplerHVDescriptor.h
EMBPresamplerHVManager.h
EMBPresamplerHVModule.h
EMBPresamplerHVPayload.h
EMBPresamplerHVManager
This class provides direct access to information on the HV electrodes within the barrels.
Definition
EMBPresamplerHVManager.h:37
EMBPresamplerHVModule::Clockwork
Definition
EMBPresamplerHVModule.cxx:10
EMBPresamplerHVModule::Clockwork::manager
const EMBPresamplerHVManager * manager
Definition
EMBPresamplerHVModule.cxx:21
EMBPresamplerHVModule::Clockwork::iPhi
unsigned int iPhi
Definition
EMBPresamplerHVModule.cxx:24
EMBPresamplerHVModule::Clockwork::iSide
unsigned int iSide
Definition
EMBPresamplerHVModule.cxx:22
EMBPresamplerHVModule::Clockwork::iEta
unsigned int iEta
Definition
EMBPresamplerHVModule.cxx:23
EMBPresamplerHVModule::Clockwork::Clockwork
Clockwork(const EMBPresamplerHVManager *managerPtr, unsigned int side, unsigned int eta, unsigned int phi)
Definition
EMBPresamplerHVModule.cxx:12
EMBPresamplerHVModule::getEtaMax
double getEtaMax() const
Definition
EMBPresamplerHVModule.cxx:65
EMBPresamplerHVModule::m_c
Clockwork * m_c
Definition
EMBPresamplerHVModule.h:54
EMBPresamplerHVModule::getPhiMax
double getPhiMax() const
Definition
EMBPresamplerHVModule.cxx:80
EMBPresamplerHVModule::~EMBPresamplerHVModule
~EMBPresamplerHVModule()
Definition
EMBPresamplerHVModule.cxx:35
EMBPresamplerHVModule::getSideIndex
unsigned int getSideIndex() const
Definition
EMBPresamplerHVModule.cxx:50
EMBPresamplerHVModule::EMBPresamplerHVModule
EMBPresamplerHVModule(const EMBPresamplerHVManager *manager, unsigned int iSide, unsigned int iEta, unsigned int iPhi)
Definition
EMBPresamplerHVModule.cxx:27
EMBPresamplerHVModule::getEtaMin
double getEtaMin() const
Definition
EMBPresamplerHVModule.cxx:55
EMBPresamplerHVModule::getPhiIndex
unsigned int getPhiIndex() const
Definition
EMBPresamplerHVModule.cxx:45
EMBPresamplerHVModule::getEtaIndex
unsigned int getEtaIndex() const
Definition
EMBPresamplerHVModule.cxx:40
EMBPresamplerHVModule::getManager
const EMBPresamplerHVManager & getManager() const
Definition
EMBPresamplerHVModule.cxx:85
EMBPresamplerHVModule::hvLineNo
int hvLineNo(int iGap, const LArHVIdMapping *hvIdMapping) const
Definition
EMBPresamplerHVModule.cxx:91
EMBPresamplerHVModule::getPhiMin
double getPhiMin() const
Definition
EMBPresamplerHVModule.cxx:75
LArHVIdMapping
Definition
LArHVIdMapping.h:21
Generated on
for ATLAS Offline Software by
1.17.0