ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
LArCalorimeter
LArGeoModel
LArReadoutGeometry
src
HECCell.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#include "
LArReadoutGeometry/HECCell.h
"
6
#include "
LArHV/HECHVManager.h
"
7
#include "
LArHV/HECHVModule.h
"
8
#include "
LArHV/HECHVDescriptor.h
"
9
10
HECCell::~HECCell
()
11
=
default
;
12
13
14
unsigned
int
HECCell::getNumSubgaps
()
const
{
15
return
getSubgaps
().size();
16
}
17
18
const
HECHVSubgap
&
HECCell::getSubgap
(
unsigned
int
i)
const
{
19
return
*
getSubgaps
()[i];
20
}
21
22
23
const
std::vector<const HECHVSubgap*>&
24
HECCell::getSubgaps
()
const
25
{
26
if
(!
m_subgaps
.isValid()) {
27
std::vector<const HECHVSubgap*> subgaps;
28
initHV
(subgaps);
29
m_subgaps
.set (std::move (subgaps));
30
}
31
return
*
m_subgaps
.ptr();
32
}
33
34
35
void
HECCell::initHV
(std::vector<const HECHVSubgap*>& subgaps)
const
36
{
37
const
HECHVManager
& hvManager=
getDescriptor
()->
getManager
()->
getHVManager
();
38
39
40
unsigned
int
iSide=
getEndcapIndex
();
41
42
double
phiUpper =
getPhiMaxNominal
();
43
double
phiLower =
getPhiMinNominal
();
44
double
phi
=fabs(phiUpper+phiLower)/2.0;
45
const
CellBinning & phiBinning=hvManager.
getDescriptor
().
getPhiBinning
();
46
unsigned
int
iPhi = int((
phi
- phiBinning.getStart())/phiBinning.getDelta()) + phiBinning.getFirstDivisionNumber();
47
48
unsigned
int
iSampling=
getSamplingIndex
();
49
50
const
HECHVModule
& hvMod = hvManager.
getHVModule
(iSide,iPhi,iSampling);
51
for
(
unsigned
int
iSubgap=0;iSubgap<4;iSubgap++) {
52
subgaps.push_back(&hvMod.
getSubgap
(iSubgap));
53
}
54
}
55
56
phi
Scalar phi() const
phi method
Definition
AmgMatrixBasePlugin.h:67
HECCell.h
HECHVDescriptor.h
HECHVManager.h
HECHVModule.h
HECCell::getPhiMaxNominal
double getPhiMaxNominal() const
returns a nominal phi max in global coords; assume canonical placement
Definition
HECCell.h:392
HECCell::getPhiMinNominal
double getPhiMinNominal() const
returns a nominal phi min in global coords; assume canonical placement
Definition
HECCell.h:387
HECCell::getSamplingIndex
unsigned int getSamplingIndex() const
The sampling index of this cell.
Definition
HECCell.h:248
HECCell::getSubgaps
const std::vector< const HECHVSubgap * > & getSubgaps() const
Definition
HECCell.cxx:24
HECCell::getEndcapIndex
unsigned int getEndcapIndex() const
The EndcapIndex of this Cell (0=negative, 1=positive).
Definition
HECCell.h:233
HECCell::~HECCell
virtual ~HECCell()
HECCell::getDescriptor
const HECDetDescr * getDescriptor() const
Returns a pointer to the descriptor.
Definition
HECCell.h:372
HECCell::m_subgaps
CxxUtils::CachedValue< std::vector< const HECHVSubgap * > > m_subgaps
Cache of subgaps.
Definition
HECCell.h:197
HECCell::getSubgap
const HECHVSubgap & getSubgap(unsigned int i) const
@Get subgap
Definition
HECCell.cxx:18
HECCell::initHV
void initHV(std::vector< const HECHVSubgap * > &subgaps) const
Definition
HECCell.cxx:35
HECCell::getNumSubgaps
unsigned int getNumSubgaps() const
@Get num subgaps
Definition
HECCell.cxx:14
HECDetDescr::getManager
const HECDetectorManager * getManager() const
The manager.
Definition
HECDetDescr.h:194
HECDetectorManager::getHVManager
const HECHVManager & getHVManager() const
Get the HV Manager.
Definition
HECDetectorManager.cxx:181
HECHVDescriptor::getPhiBinning
const CellBinning & getPhiBinning() const
Definition
HECHVDescriptor.h:16
HECHVManager
This class provides direct access to information on the HV electrodes within the barrels.
Definition
HECHVManager.h:36
HECHVManager::getHVModule
const HECHVModule & getHVModule(unsigned int iSide, unsigned int iPhi, unsigned int iSampling) const
Definition
HECHVManager.cxx:194
HECHVManager::getDescriptor
const HECHVDescriptor & getDescriptor() const
Definition
HECHVManager.cxx:159
HECHVModule
Describes one HV Module within the HEC.
Definition
HECHVModule.h:23
HECHVModule::getSubgap
const HECHVSubgap & getSubgap(unsigned int iElectrode) const
Definition
HECHVModule.cxx:69
HECHVSubgap
Definition
HECHVSubgap.h:15
Generated on
for ATLAS Offline Software by
1.17.0