ATLAS Offline Software
Trigger
TrigT1
L1CaloFEX
L1CaloFEXSim
src
SCellEncoder.cxx
Go to the documentation of this file.
1
#include "
L1CaloFEXSim/SCellEncoder.h
"
2
#include "
L1CaloFEXSim/SCellIndexing.h
"
3
#include "
StoreGate/WriteDecorHandle.h
"
4
#include "
xAODTrigger/eFexTauRoIContainer.h
"
5
6
namespace
{
7
static
const
SG::AuxElement::Decorator<LVL1::supercells_t>
8
decSuperCells(
"SuperCells"
);
9
}
10
11
LVL1::SCellEncoder::SCellEncoder
() {
m_scell_values
.reserve(99); }
12
13
void
LVL1::SCellEncoder::setSuperCells
(
const
unsigned
int
layer0[][3],
14
const
unsigned
int
layer1[][3],
15
const
unsigned
int
layer2[][3],
16
const
unsigned
int
layer3[][3],
17
const
unsigned
int
layer4[][3]) {
18
19
for
(
size_t
i
= 0;
i
< LVL1::locMap.size();
i
++) {
20
int
eta
= LVL1::locMap[
i
][0];
21
int
phi
= LVL1::locMap[
i
][1];
22
int
layer
= LVL1::locMap[
i
][2];
23
switch
(
layer
) {
24
case
0:
25
m_scell_values.push_back(layer0[
eta
][
phi
]);
26
break
;
27
case
1:
28
m_scell_values.push_back(layer1[
eta
][
phi
]);
29
break
;
30
case
2:
31
m_scell_values.push_back(layer2[
eta
][
phi
]);
32
break
;
33
case
3:
34
m_scell_values.push_back(layer3[
eta
][
phi
]);
35
break
;
36
case
4:
37
m_scell_values.push_back(layer4[
eta
][
phi
]);
38
break
;
39
}
40
}
41
}
42
43
void
LVL1::SCellEncoder::decorateEFexTauRoI
(
xAOD::eFexTauRoI
*myTauEDM) {
44
decSuperCells(*myTauEDM) = m_scell_values;
45
}
phi
Scalar phi() const
phi method
Definition:
AmgMatrixBasePlugin.h:64
eta
Scalar eta() const
pseudorapidity method
Definition:
AmgMatrixBasePlugin.h:79
eFexTauRoIContainer.h
LVL1::SCellEncoder::setSuperCells
void setSuperCells(const unsigned int layer0[][3], const unsigned int layer1[][3], const unsigned int layer2[][3], const unsigned int layer3[][3], const unsigned int layer4[][3])
Definition:
SCellEncoder.cxx:13
LVL1::SCellEncoder::decorateEFexTauRoI
void decorateEFexTauRoI(xAOD::eFexTauRoI *myTauEDM)
Definition:
SCellEncoder.cxx:43
SG::Decorator
Helper class to provide type-safe access to aux data.
Definition:
Decorator.h:58
lumiFormat.i
int i
Definition:
lumiFormat.py:92
xAOD::eFexTauRoI_v1
Class describing a LVL1 eFEX tau region of interest.
Definition:
eFexTauRoI_v1.h:29
TRT::Hit::layer
@ layer
Definition:
HitInfo.h:79
LVL1::SCellEncoder::SCellEncoder
SCellEncoder()
Definition:
SCellEncoder.cxx:11
WriteDecorHandle.h
Handle class for adding a decoration to an object.
LVL1::SCellEncoder::m_scell_values
supercells_t m_scell_values
Definition:
SCellEncoder.h:22
SCellEncoder.h
SCellIndexing.h
Generated on Tue Jul 2 2024 21:25:59 for ATLAS Offline Software by
1.8.18