ATLAS Offline Software
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
JEMEtSums.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3 */
4 /***************************************************************************
5  JEMEtSums.cpp - description
6  -------------------
7  begin : 25 05 2006
8  email : Alan.Watson@cern.ch
9  ***************************************************************************/
10 
11 
12 
13 
14 #ifndef TRIGGERSPACE
16 #else
17 #include "JEMEtSums.h"
18 #endif
19 
20 namespace LVL1 {
21 
22 
25  m_crate(crate),
26  m_module(module)
27 {
28 }
29 
32  const std::vector<unsigned int>& Et,
33  const std::vector<unsigned int>& Ex,
34  const std::vector<unsigned int>& Ey,
35  int peak):
36  m_crate(crate),
37  m_module(module),
38  m_peak(peak),
39  m_Et(Et),
40  m_Ex(Ex),
41  m_Ey(Ey)
42 {
43 }
44 
45 
47 int LVL1::JEMEtSums::crate() const{
48  return m_crate;
49 }
50 
53  return m_module;
54 }
55 
57 unsigned int LVL1::JEMEtSums::Et() const{
58  return m_Et[m_peak];
59 }
60 
62 unsigned int LVL1::JEMEtSums::Ex() const{
63  return m_Ex[m_peak];
64 }
65 
67 unsigned int LVL1::JEMEtSums::Ey() const{
68  return m_Ey[m_peak];
69 }
70 
72 const std::vector<unsigned int>& LVL1::JEMEtSums::EtVec() const{
73  return m_Et;
74 }
75 
77 const std::vector<unsigned int>& LVL1::JEMEtSums::ExVec() const{
78  return m_Ex;
79 }
80 
82 const std::vector<unsigned int>& LVL1::JEMEtSums::EyVec() const{
83  return m_Ey;
84 }
85 
88  return ( ((m_module%8) == 0) || ((m_module%8) == 7) );
89 }
90 
92 void LVL1::JEMEtSums::addEt(const std::vector<unsigned int>& Et) {
93  m_Et = Et;
94 }
95 
97 void LVL1::JEMEtSums::addEx(const std::vector<unsigned int>& Ex) {
98  m_Ex = Ex;
99 }
100 
102 void LVL1::JEMEtSums::addEy(const std::vector<unsigned int>& Ey) {
103  m_Ey = Ey;
104 }
105 
107 void LVL1::JEMEtSums::setPeak(int peak) {
108  m_peak = peak;
109 }
110 
113  return m_peak;
114 }
115 
116 } // end of namespace bracket
JEMEtSums.h
xAOD::JEMEtSums
JEMEtSums_v2 JEMEtSums
Define the latest version of the JEMEtSums class.
Definition: Event/xAOD/xAODTrigL1Calo/xAODTrigL1Calo/JEMEtSums.h:16
LVL1::JEMEtSums::EyVec
const std::vector< unsigned int > & EyVec() const
returns module Ey sum
Definition: JEMEtSums.cxx:87
LVL1::JEMEtSums::module
int module() const
returns module number
Definition: JEMEtSums.cxx:57
LVL1
eFexTowerBuilder creates xAOD::eFexTowerContainer from supercells (LATOME) and triggerTowers (TREX) i...
Definition: ICMMCPHitsCnvTool.h:18
LVL1::JEMEtSums::addEy
void addEy(const std::vector< unsigned int > &Ey)
Update Ey sum.
Definition: JEMEtSums.cxx:107
python.PyAthena.module
module
Definition: PyAthena.py:131
LVL1::JEMEtSums::forward
bool forward() const
Central or FCAL JEM?
Definition: JEMEtSums.cxx:92
LVL1::JEMEtSums::crate
int crate() const
returns crate number
Definition: JEMEtSums.cxx:52
LVL1::JEMEtSums::peak
int peak() const
returns peak slice number
Definition: JEMEtSums.cxx:117
LVL1::JEMEtSums::ExVec
const std::vector< unsigned int > & ExVec() const
returns module Ex sum
Definition: JEMEtSums.cxx:82
LVL1::JEMEtSums::Et
unsigned int Et() const
returns module ET sum for peak sample
Definition: JEMEtSums.cxx:62
LVL1::JEMEtSums::Ey
unsigned int Ey() const
returns module Ey sum for peak sample
Definition: JEMEtSums.cxx:72
LVL1::JEMEtSums::addEt
void addEt(const std::vector< unsigned int > &Et)
Update ET sum.
Definition: JEMEtSums.cxx:97
LVL1::JEMEtSums::setPeak
void setPeak(int peak)
Specify peak slice (Same for all vectors)
Definition: JEMEtSums.cxx:112
LVL1::JEMEtSums::EtVec
const std::vector< unsigned int > & EtVec() const
returns module ET sum
Definition: JEMEtSums.cxx:77
LVL1::JEMEtSums::addEx
void addEx(const std::vector< unsigned int > &Ex)
Update Ex sum.
Definition: JEMEtSums.cxx:102
LVL1::JEMEtSums::Ex
unsigned int Ex() const
returns module Ex sum for peak sample
Definition: JEMEtSums.cxx:67