ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
LVL1::SCellEncoder Class Reference

#include <SCellEncoder.h>

Collaboration diagram for LVL1::SCellEncoder:

Public Member Functions

 SCellEncoder ()
 
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])
 
void decorateEFexTauRoI (xAOD::eFexTauRoI *myTauEDM)
 

Private Attributes

supercells_t m_scell_values
 

Detailed Description

Definition at line 10 of file SCellEncoder.h.

Constructor & Destructor Documentation

◆ SCellEncoder()

LVL1::SCellEncoder::SCellEncoder ( )

Definition at line 11 of file SCellEncoder.cxx.

11 { m_scell_values.reserve(99); }

Member Function Documentation

◆ decorateEFexTauRoI()

void LVL1::SCellEncoder::decorateEFexTauRoI ( xAOD::eFexTauRoI myTauEDM)

Definition at line 43 of file SCellEncoder.cxx.

43  {
44  decSuperCells(*myTauEDM) = m_scell_values;
45 }

◆ setSuperCells()

void LVL1::SCellEncoder::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 at line 13 of file SCellEncoder.cxx.

17  {
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 }

Member Data Documentation

◆ m_scell_values

supercells_t LVL1::SCellEncoder::m_scell_values
private

Definition at line 22 of file SCellEncoder.h.


The documentation for this class was generated from the following files:
phi
Scalar phi() const
phi method
Definition: AmgMatrixBasePlugin.h:64
eta
Scalar eta() const
pseudorapidity method
Definition: AmgMatrixBasePlugin.h:79
lumiFormat.i
int i
Definition: lumiFormat.py:92
TRT::Hit::layer
@ layer
Definition: HitInfo.h:79
LVL1::SCellEncoder::m_scell_values
supercells_t m_scell_values
Definition: SCellEncoder.h:22