ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Trigger
TrigT1
TrigT1CaloEvent
TrigT1CaloEvent
Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXCPTob.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
#ifndef CMXCPTob_H
7
#define CMXCPTob_H
8
9
#include "
AthenaKernel/CLASS_DEF.h
"
10
11
12
#ifndef TRIGGERSPACE
13
#include "
TrigT1Interfaces/Coordinate.h
"
14
#else
15
#include "
Coordinate.h
"
16
#endif
17
namespace
LVL1
{
18
22
23
class
CMXCPTob
{
24
public
:
25
27
CMXCPTob
() =
default
;
28
CMXCPTob
(
int
crate
,
int
cmx
,
int
cpm
,
int
chip
,
int
loc);
29
CMXCPTob
(
int
crate
,
int
cmx
,
int
cpm
,
int
chip
,
int
loc,
30
const
std::vector<int>&
energy
,
31
const
std::vector<int>&
isolation
,
32
const
std::vector<int>&
error
,
33
const
std::vector<unsigned int>&
presenceMap
,
34
int
peak
);
35
36
38
void
setPeak
(
int
peak
);
40
void
addTob
(
const
std::vector<int>&
energy
,
41
const
std::vector<int>&
isolation
,
42
const
std::vector<int>&
error
,
43
const
std::vector<unsigned int>&
presenceMap
);
44
46
int
crate
()
const
;
47
int
cmx
()
const
;
48
int
cpm
()
const
;
49
int
chip
()
const
;
50
int
location
()
const
;
52
int
energy
()
const
;
53
int
isolation
()
const
;
54
int
error
()
const
;
55
unsigned
int
presenceMap
()
const
;
// filled for neutral format data only
57
const
std::vector<int>&
energyVec
()
const
;
58
const
std::vector<int>&
isolationVec
()
const
;
59
const
std::vector<int>&
errorVec
()
const
;
60
const
std::vector<unsigned int>&
presenceMapVec
()
const
;
61
int
peak
()
const
;
62
64
private
:
65
int
m_crate
{};
66
int
m_cmx
{};
67
int
m_cpm
{};
68
int
m_chip
{};
69
int
m_location
{};
70
int
m_peak
{};
71
std::vector<int>
m_energy
{0};
72
std::vector<int>
m_isolation
{0};
73
std::vector<int>
m_error
{0};
74
std::vector<unsigned int>
m_presenceMap
{0};
75
76
};
77
79
inline
int
CMXCPTob::crate
()
const
{
80
return
m_crate
;
81
}
82
// <<== CHECK
84
inline
int
CMXCPTob::cmx
()
const
{
85
return
m_cmx
;
86
}
87
89
inline
int
CMXCPTob::cpm
()
const
{
90
return
m_cpm
;
91
}
92
94
inline
int
CMXCPTob::chip
()
const
{
95
return
m_chip
;
96
}
97
99
inline
int
CMXCPTob::location
()
const
{
100
return
m_location
;
101
}
102
104
inline
int
CMXCPTob::energy
()
const
{
105
return
m_energy
[
m_peak
];
106
}
107
109
inline
int
CMXCPTob::isolation
()
const
{
110
return
m_isolation
[
m_peak
];
111
}
112
114
inline
int
CMXCPTob::error
()
const
{
115
return
m_error
[
m_peak
];
116
}
117
119
inline
unsigned
int
CMXCPTob::presenceMap
()
const
{
120
return
m_presenceMap
[
m_peak
];
121
}
122
124
inline
const
std::vector<int>&
CMXCPTob::energyVec
()
const
{
125
return
m_energy
;
126
}
127
129
inline
const
std::vector<int>&
CMXCPTob::isolationVec
()
const
{
130
return
m_isolation
;
131
}
132
134
inline
const
std::vector<int>&
CMXCPTob::errorVec
()
const
{
135
return
m_error
;
136
}
137
139
inline
const
std::vector<unsigned int>&
CMXCPTob::presenceMapVec
()
const
{
140
return
m_presenceMap
;
141
}
142
144
inline
void
CMXCPTob::addTob
(
const
std::vector<int>&
energy
,
145
const
std::vector<int>&
isolation
,
146
const
std::vector<int>&
error
,
147
const
std::vector<unsigned int>&
presenceMap
) {
148
m_energy
=
energy
;
149
m_isolation
=
isolation
;
150
m_error
=
error
;
151
m_presenceMap
=
presenceMap
;
152
}
153
155
inline
void
CMXCPTob::setPeak
(
int
peak
) {
156
m_peak
=
peak
;
157
}
158
160
inline
int
CMXCPTob::peak
()
const
{
161
return
m_peak
;
162
}
163
164
}
// end of namespace
165
166
#ifndef CMXCPTob_ClassDEF_H
167
#include "
TrigT1CaloEvent/CMXCPTob_ClassDEF.h
"
168
#endif
169
170
#endif
CMXCPTob_ClassDEF.h
CLASS_DEF.h
macros to associate a CLID to a type
Coordinate.h
Coordinate.h
Coordinate policies.
LVL1::CMXCPTob::m_location
int m_location
Definition
Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXCPTob.h:69
LVL1::CMXCPTob::setPeak
void setPeak(int peak)
For multi-slice readout, need to indicate position of triggered BC.
Definition
Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXCPTob.h:155
LVL1::CMXCPTob::m_cmx
int m_cmx
Definition
Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXCPTob.h:66
LVL1::CMXCPTob::isolation
int isolation() const
returns isolation for peak sample
Definition
Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXCPTob.h:109
LVL1::CMXCPTob::peak
int peak() const
returns peak slice number
Definition
Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXCPTob.h:160
LVL1::CMXCPTob::isolationVec
const std::vector< int > & isolationVec() const
returns isolation
Definition
Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXCPTob.h:129
LVL1::CMXCPTob::errorVec
const std::vector< int > & errorVec() const
returns error
Definition
Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXCPTob.h:134
LVL1::CMXCPTob::crate
int crate() const
Data accessors.
Definition
Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXCPTob.h:79
LVL1::CMXCPTob::m_crate
int m_crate
Internal data.
Definition
Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXCPTob.h:65
LVL1::CMXCPTob::energyVec
const std::vector< int > & energyVec() const
For multi-slice readout.
Definition
Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXCPTob.h:124
LVL1::CMXCPTob::m_isolation
std::vector< int > m_isolation
Definition
Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXCPTob.h:72
LVL1::CMXCPTob::chip
int chip() const
returns chip number (3 or 4 bits?)
Definition
Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXCPTob.h:94
LVL1::CMXCPTob::presenceMap
unsigned int presenceMap() const
returns presence map for peak sample
Definition
Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXCPTob.h:119
LVL1::CMXCPTob::m_presenceMap
std::vector< unsigned int > m_presenceMap
Definition
Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXCPTob.h:74
LVL1::CMXCPTob::addTob
void addTob(const std::vector< int > &energy, const std::vector< int > &isolation, const std::vector< int > &error, const std::vector< unsigned int > &presenceMap)
Add data to existing object.
Definition
Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXCPTob.h:144
LVL1::CMXCPTob::cmx
int cmx() const
returns CMX number (0/1)==(Left/Right)==(Tau/Em)
Definition
Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXCPTob.h:84
LVL1::CMXCPTob::m_peak
int m_peak
Definition
Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXCPTob.h:70
LVL1::CMXCPTob::m_cpm
int m_cpm
Definition
Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXCPTob.h:67
LVL1::CMXCPTob::cpm
int cpm() const
returns CPM number
Definition
Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXCPTob.h:89
LVL1::CMXCPTob::presenceMapVec
const std::vector< unsigned int > & presenceMapVec() const
returns presence maps
Definition
Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXCPTob.h:139
LVL1::CMXCPTob::location
int location() const
returns location (3 or 2 bits?)
Definition
Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXCPTob.h:99
LVL1::CMXCPTob::m_energy
std::vector< int > m_energy
Definition
Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXCPTob.h:71
LVL1::CMXCPTob::m_error
std::vector< int > m_error
Definition
Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXCPTob.h:73
LVL1::CMXCPTob::CMXCPTob
CMXCPTob()=default
Constructors.
LVL1::CMXCPTob::m_chip
int m_chip
Definition
Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXCPTob.h:68
LVL1::CMXCPTob::energy
int energy() const
For triggered time slice.
Definition
Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXCPTob.h:104
LVL1::CMXCPTob::error
int error() const
returns error for peak sample
Definition
Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXCPTob.h:114
LVL1
eFexTowerBuilder creates xAOD::eFexTowerContainer from supercells (LATOME) and triggerTowers (TREX) i...
Definition
IZdcDataAccess.h:13
error
Definition
IImpactPoint3dEstimator.h:72
Generated on
for ATLAS Offline Software by
1.17.0