ATLAS Offline Software
Trigger
TrigT1
TrigT1CaloEvent
src
JEMEtSums.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2018 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
15
#include "
TrigT1CaloEvent/JEMEtSums.h
"
16
#else
17
#include "
JEMEtSums.h
"
18
#endif
19
20
namespace
LVL1
{
21
22
JEMEtSums::JEMEtSums
():
23
m_crate(0),
24
m_module(0),
25
m_peak(0),
26
m_Et(1),
27
m_Ex(1),
28
m_Ey(1)
29
{
30
}
31
32
JEMEtSums::~JEMEtSums
(){
33
}
34
36
LVL1::JEMEtSums::JEMEtSums::JEMEtSums
(
int
crate,
int
module
):
37
m_crate(crate),
38
m_module(
module
),
39
m_peak(0),
40
m_Et(1),
41
m_Ex(1),
42
m_Ey(1)
43
{
44
}
45
47
LVL1::JEMEtSums::JEMEtSums::JEMEtSums
(
int
crate,
int
module
,
48
const
std::vector<unsigned int>& Et,
49
const
std::vector<unsigned int>& Ex,
50
const
std::vector<unsigned int>& Ey,
51
int
peak):
52
m_crate(crate),
53
m_module(
module
),
54
m_peak(peak),
55
m_Et(Et),
56
m_Ex(Ex),
57
m_Ey(Ey)
58
{
59
}
60
61
63
int
LVL1::JEMEtSums::crate
()
const
{
64
return
m_crate;
65
}
66
68
int
LVL1::JEMEtSums::module
()
const
{
69
return
m_module;
70
}
71
73
unsigned
int
LVL1::JEMEtSums::Et
()
const
{
74
return
m_Et[m_peak];
75
}
76
78
unsigned
int
LVL1::JEMEtSums::Ex
()
const
{
79
return
m_Ex[m_peak];
80
}
81
83
unsigned
int
LVL1::JEMEtSums::Ey
()
const
{
84
return
m_Ey[m_peak];
85
}
86
88
const
std::vector<unsigned int>&
LVL1::JEMEtSums::EtVec
()
const
{
89
return
m_Et;
90
}
91
93
const
std::vector<unsigned int>&
LVL1::JEMEtSums::ExVec
()
const
{
94
return
m_Ex;
95
}
96
98
const
std::vector<unsigned int>&
LVL1::JEMEtSums::EyVec
()
const
{
99
return
m_Ey;
100
}
101
103
bool
LVL1::JEMEtSums::forward
()
const
{
104
return
( ((m_module%8) == 0) || ((m_module%8) == 7) );
105
}
106
108
void
LVL1::JEMEtSums::addEt
(
const
std::vector<unsigned int>& Et) {
109
m_Et = Et;
110
}
111
113
void
LVL1::JEMEtSums::addEx
(
const
std::vector<unsigned int>& Ex) {
114
m_Ex = Ex;
115
}
116
118
void
LVL1::JEMEtSums::addEy
(
const
std::vector<unsigned int>& Ey) {
119
m_Ey = Ey;
120
}
121
123
void
LVL1::JEMEtSums::setPeak
(
int
peak) {
124
m_peak = peak;
125
}
126
128
int
LVL1::JEMEtSums::peak
()
const
{
129
return
m_peak;
130
}
131
132
}
// 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::JEMEtSums
JEMEtSums()
Definition:
JEMEtSums.cxx:27
LVL1::JEMEtSums::~JEMEtSums
virtual ~JEMEtSums()
Definition:
JEMEtSums.cxx:37
LVL1::JEMEtSums::EyVec
const std::vector< unsigned int > & EyVec() const
returns module Ey sum
Definition:
JEMEtSums.cxx:103
LVL1::JEMEtSums::module
int module() const
returns module number
Definition:
JEMEtSums.cxx:73
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:123
python.PyAthena.module
module
Definition:
PyAthena.py:131
LVL1::JEMEtSums::forward
bool forward() const
Central or FCAL JEM?
Definition:
JEMEtSums.cxx:108
LVL1::JEMEtSums::crate
int crate() const
returns crate number
Definition:
JEMEtSums.cxx:68
LVL1::JEMEtSums::peak
int peak() const
returns peak slice number
Definition:
JEMEtSums.cxx:133
LVL1::JEMEtSums::ExVec
const std::vector< unsigned int > & ExVec() const
returns module Ex sum
Definition:
JEMEtSums.cxx:98
LVL1::JEMEtSums::Et
unsigned int Et() const
returns module ET sum for peak sample
Definition:
JEMEtSums.cxx:78
LVL1::JEMEtSums::Ey
unsigned int Ey() const
returns module Ey sum for peak sample
Definition:
JEMEtSums.cxx:88
LVL1::JEMEtSums::addEt
void addEt(const std::vector< unsigned int > &Et)
Update ET sum.
Definition:
JEMEtSums.cxx:113
LVL1::JEMEtSums::setPeak
void setPeak(int peak)
Specify peak slice (Same for all vectors)
Definition:
JEMEtSums.cxx:128
LVL1::JEMEtSums::EtVec
const std::vector< unsigned int > & EtVec() const
returns module ET sum
Definition:
JEMEtSums.cxx:93
LVL1::JEMEtSums::addEx
void addEx(const std::vector< unsigned int > &Ex)
Update Ex sum.
Definition:
JEMEtSums.cxx:118
LVL1::JEMEtSums::Ex
unsigned int Ex() const
returns module Ex sum for peak sample
Definition:
JEMEtSums.cxx:83
Generated on Fri Jan 10 2025 21:12:00 for ATLAS Offline Software by
1.8.18