ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Trigger
TrigT1
TrigT1CaloEvent
TrigT1CaloEvent
Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXEtSums.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
//* *
6
//* *
7
//***************************************************************************/
8
9
#ifndef CMXEtSums_H
10
#define CMXEtSums_H
11
12
#include "
AthenaKernel/CLASS_DEF.h
"
13
14
15
#ifndef TRIGGERSPACE
16
#include "
TrigT1Interfaces/Coordinate.h
"
17
#else
18
#include "
Coordinate.h
"
19
#endif
20
namespace
LVL1
{
21
25
26
class
CMXEtSums
{
27
public
:
28
29
enum
Sources
{
REMOTE_STANDARD
= 16,
REMOTE_RESTRICTED
,
30
LOCAL_STANDARD
,
LOCAL_RESTRICTED
,
31
TOTAL_STANDARD
,
TOTAL_RESTRICTED
,
32
SUM_ET_STANDARD
,
SUM_ET_RESTRICTED
,
33
MISSING_ET_STANDARD
,
MISSING_ET_RESTRICTED
,
34
MISSING_ET_SIG_STANDARD
,
MAX_SOURCE
};
35
37
CMXEtSums
() =
default
;
38
CMXEtSums
(
int
crate
,
int
source
);
39
CMXEtSums
(
int
crate
,
int
source
,
40
const
std::vector<unsigned int>&
Et
,
41
const
std::vector<unsigned int>&
Ex
,
42
const
std::vector<unsigned int>&
Ey
,
43
const
std::vector<int>&
EtError
,
44
const
std::vector<int>&
ExError
,
45
const
std::vector<int>&
EyError
,
46
int
peak
);
47
48
50
void
setPeak
(
int
peak
);
52
void
addEt
(
const
std::vector<unsigned int>&
Et
,
53
const
std::vector<int>&
EtError
);
54
void
addEx
(
const
std::vector<unsigned int>&
Ex
,
55
const
std::vector<int>&
ExError
);
56
void
addEy
(
const
std::vector<unsigned int>&
Ey
,
57
const
std::vector<int>&
EyError
);
58
60
int
crate
()
const
;
61
int
source
()
const
;
63
unsigned
int
Et
()
const
;
64
unsigned
int
Ex
()
const
;
65
unsigned
int
Ey
()
const
;
66
int
EtError
()
const
;
67
int
ExError
()
const
;
68
int
EyError
()
const
;
70
const
std::vector<unsigned int>&
EtVec
()
const
;
71
const
std::vector<unsigned int>&
ExVec
()
const
;
72
const
std::vector<unsigned int>&
EyVec
()
const
;
73
const
std::vector<int>&
EtErrorVec
()
const
;
74
const
std::vector<int>&
ExErrorVec
()
const
;
75
const
std::vector<int>&
EyErrorVec
()
const
;
76
int
peak
()
const
;
77
79
private
:
80
int
m_crate
{};
81
int
m_source
{};
82
int
m_peak
{};
83
std::vector <unsigned int>
m_Et
{0};
84
std::vector <unsigned int>
m_Ex
{0};
85
std::vector <unsigned int>
m_Ey
{0};
86
std::vector <int>
m_EtError
{0};
87
std::vector <int>
m_ExError
{0};
88
std::vector <int>
m_EyError
{0};
89
90
};
91
93
inline
int
CMXEtSums::crate
()
const
{
94
return
m_crate
;
95
}
96
98
inline
int
CMXEtSums::source
()
const
{
99
return
m_source
;
100
}
101
103
inline
unsigned
int
CMXEtSums::Et
()
const
{
104
return
m_Et
[
m_peak
];
105
}
106
108
inline
unsigned
int
CMXEtSums::Ex
()
const
{
109
return
m_Ex
[
m_peak
];
110
}
111
113
inline
unsigned
int
CMXEtSums::Ey
()
const
{
114
return
m_Ey
[
m_peak
];
115
}
116
118
inline
int
CMXEtSums::EtError
()
const
{
119
return
m_EtError
[
m_peak
];
120
}
121
123
inline
int
CMXEtSums::ExError
()
const
{
124
return
m_ExError
[
m_peak
];
125
}
126
128
inline
int
CMXEtSums::EyError
()
const
{
129
return
m_EyError
[
m_peak
];
130
}
131
133
inline
const
std::vector<unsigned int>&
CMXEtSums::EtVec
()
const
{
134
return
m_Et
;
135
}
136
138
inline
const
std::vector<unsigned int>&
CMXEtSums::ExVec
()
const
{
139
return
m_Ex
;
140
}
141
143
inline
const
std::vector<unsigned int>&
CMXEtSums::EyVec
()
const
{
144
return
m_Ey
;
145
}
146
148
inline
const
std::vector<int>&
CMXEtSums::EtErrorVec
()
const
{
149
return
m_EtError
;
150
}
151
153
inline
const
std::vector<int>&
CMXEtSums::ExErrorVec
()
const
{
154
return
m_ExError
;
155
}
156
158
inline
const
std::vector<int>&
CMXEtSums::EyErrorVec
()
const
{
159
return
m_EyError
;
160
}
161
163
inline
void
CMXEtSums::addEt
(
const
std::vector<unsigned int>&
Et
,
164
const
std::vector<int>&
EtError
) {
165
m_Et
=
Et
;
166
m_EtError
=
EtError
;
167
}
168
170
inline
void
CMXEtSums::addEx
(
const
std::vector<unsigned int>&
Ex
,
171
const
std::vector<int>&
ExError
) {
172
m_Ex
=
Ex
;
173
m_ExError
=
ExError
;
174
}
175
177
inline
void
CMXEtSums::addEy
(
const
std::vector<unsigned int>&
Ey
,
178
const
std::vector<int>&
EyError
) {
179
m_Ey
=
Ey
;
180
m_EyError
=
EyError
;
181
}
182
184
inline
void
CMXEtSums::setPeak
(
int
peak
) {
185
m_peak
=
peak
;
186
}
187
189
inline
int
CMXEtSums::peak
()
const
{
190
return
m_peak
;
191
}
192
193
}
// end of namespace
194
195
#ifndef CMXEtSums_ClassDEF_H
196
#include "
TrigT1CaloEvent/CMXEtSums_ClassDEF.h
"
197
#endif
198
199
#endif
200
201
CMXEtSums_ClassDEF.h
CLASS_DEF.h
macros to associate a CLID to a type
Coordinate.h
Coordinate.h
Coordinate policies.
LVL1::CMXEtSums::ExVec
const std::vector< unsigned int > & ExVec() const
returns module Ex sum
Definition
Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXEtSums.h:138
LVL1::CMXEtSums::addEt
void addEt(const std::vector< unsigned int > &Et, const std::vector< int > &EtError)
Add data to existing objects.
Definition
Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXEtSums.h:163
LVL1::CMXEtSums::addEx
void addEx(const std::vector< unsigned int > &Ex, const std::vector< int > &ExError)
Update Ex sum.
Definition
Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXEtSums.h:170
LVL1::CMXEtSums::m_ExError
std::vector< int > m_ExError
Definition
Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXEtSums.h:87
LVL1::CMXEtSums::peak
int peak() const
returns peak slice number
Definition
Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXEtSums.h:189
LVL1::CMXEtSums::addEy
void addEy(const std::vector< unsigned int > &Ey, const std::vector< int > &EyError)
Update Ey sum.
Definition
Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXEtSums.h:177
LVL1::CMXEtSums::m_peak
int m_peak
Definition
Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXEtSums.h:82
LVL1::CMXEtSums::Ey
unsigned int Ey() const
returns module Ey sum for peak sample
Definition
Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXEtSums.h:113
LVL1::CMXEtSums::m_Ex
std::vector< unsigned int > m_Ex
Definition
Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXEtSums.h:84
LVL1::CMXEtSums::Ex
unsigned int Ex() const
returns module Ex sum for peak sample
Definition
Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXEtSums.h:108
LVL1::CMXEtSums::m_crate
int m_crate
Internal data.
Definition
Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXEtSums.h:80
LVL1::CMXEtSums::m_EtError
std::vector< int > m_EtError
Definition
Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXEtSums.h:86
LVL1::CMXEtSums::m_Ey
std::vector< unsigned int > m_Ey
Definition
Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXEtSums.h:85
LVL1::CMXEtSums::source
int source() const
returns data source
Definition
Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXEtSums.h:98
LVL1::CMXEtSums::Et
unsigned int Et() const
For triggered time slice.
Definition
Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXEtSums.h:103
LVL1::CMXEtSums::setPeak
void setPeak(int peak)
In multi-slice readout must specify which slice is triggered BC.
Definition
Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXEtSums.h:184
LVL1::CMXEtSums::EyVec
const std::vector< unsigned int > & EyVec() const
returns module Ey sum
Definition
Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXEtSums.h:143
LVL1::CMXEtSums::ExError
int ExError() const
returns module Ex sum error for peak sample
Definition
Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXEtSums.h:123
LVL1::CMXEtSums::EyErrorVec
const std::vector< int > & EyErrorVec() const
returns module Ey errors
Definition
Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXEtSums.h:158
LVL1::CMXEtSums::crate
int crate() const
Data accessors.
Definition
Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXEtSums.h:93
LVL1::CMXEtSums::ExErrorVec
const std::vector< int > & ExErrorVec() const
returns module Ex errors
Definition
Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXEtSums.h:153
LVL1::CMXEtSums::m_source
int m_source
Definition
Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXEtSums.h:81
LVL1::CMXEtSums::m_EyError
std::vector< int > m_EyError
Definition
Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXEtSums.h:88
LVL1::CMXEtSums::EtErrorVec
const std::vector< int > & EtErrorVec() const
returns module ET errors
Definition
Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXEtSums.h:148
LVL1::CMXEtSums::m_Et
std::vector< unsigned int > m_Et
Definition
Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXEtSums.h:83
LVL1::CMXEtSums::EyError
int EyError() const
returns module Ey sum error for peak sample
Definition
Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXEtSums.h:128
LVL1::CMXEtSums::EtError
int EtError() const
returns module ET sum error for peak sample
Definition
Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXEtSums.h:118
LVL1::CMXEtSums::EtVec
const std::vector< unsigned int > & EtVec() const
Access multi-slice data.
Definition
Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXEtSums.h:133
LVL1::CMXEtSums::Sources
Sources
Definition
Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXEtSums.h:29
LVL1::CMXEtSums::MAX_SOURCE
@ MAX_SOURCE
Definition
Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXEtSums.h:34
LVL1::CMXEtSums::SUM_ET_RESTRICTED
@ SUM_ET_RESTRICTED
Definition
Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXEtSums.h:32
LVL1::CMXEtSums::SUM_ET_STANDARD
@ SUM_ET_STANDARD
Definition
Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXEtSums.h:32
LVL1::CMXEtSums::LOCAL_STANDARD
@ LOCAL_STANDARD
Definition
Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXEtSums.h:30
LVL1::CMXEtSums::TOTAL_RESTRICTED
@ TOTAL_RESTRICTED
Definition
Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXEtSums.h:31
LVL1::CMXEtSums::REMOTE_STANDARD
@ REMOTE_STANDARD
Definition
Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXEtSums.h:29
LVL1::CMXEtSums::LOCAL_RESTRICTED
@ LOCAL_RESTRICTED
Definition
Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXEtSums.h:30
LVL1::CMXEtSums::REMOTE_RESTRICTED
@ REMOTE_RESTRICTED
Definition
Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXEtSums.h:29
LVL1::CMXEtSums::MISSING_ET_RESTRICTED
@ MISSING_ET_RESTRICTED
Definition
Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXEtSums.h:33
LVL1::CMXEtSums::TOTAL_STANDARD
@ TOTAL_STANDARD
Definition
Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXEtSums.h:31
LVL1::CMXEtSums::MISSING_ET_SIG_STANDARD
@ MISSING_ET_SIG_STANDARD
Definition
Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXEtSums.h:34
LVL1::CMXEtSums::MISSING_ET_STANDARD
@ MISSING_ET_STANDARD
Definition
Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXEtSums.h:33
LVL1::CMXEtSums::CMXEtSums
CMXEtSums()=default
Constructors.
LVL1
eFexTowerBuilder creates xAOD::eFexTowerContainer from supercells (LATOME) and triggerTowers (TREX) i...
Definition
IZdcDataAccess.h:13
Generated on
for ATLAS Offline Software by
1.17.0