ATLAS Offline Software
SCellEncoder.cxx
Go to the documentation of this file.
5 
6 namespace {
8  decSuperCells("SuperCells");
9 }
10 
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 
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