#include <TrigMonRoi.h>
Definition at line 25 of file TrigMonRoi.h.
◆ Type
| Enumerator |
|---|
| kNone | |
| kMuon | |
| kEmTau | |
| kJet | |
| kJetEt | |
| kEnergy | |
Definition at line 29 of file TrigMonRoi.h.
◆ TrigMonRoi() [1/2]
| TrigMonRoi::TrigMonRoi |
( |
| ) |
|
Definition at line 27 of file TrigMonRoi.cxx.
29{
30}
std::vector< uint32_t > m_word
◆ TrigMonRoi() [2/2]
| TrigMonRoi::TrigMonRoi |
( |
unsigned int | roi_word | ) |
|
|
explicit |
◆ ~TrigMonRoi()
| TrigMonRoi::~TrigMonRoi |
( |
| ) |
|
|
inline |
◆ addVar()
Definition at line 127 of file TrigMonRoi.cxx.
128{
129
130
131
132 if(
var.getKey() > 9) {
135 } else {
137 << "Cannot add a var with key < 9 (internal use only)";
138 }
139}
#define REPORT_MESSAGE_WITH_CONTEXT(LVL, CONTEXT_NAME)
Report a message, with an explicitly specified context name.
std::vector< float > m_var_val
std::vector< uint16_t > m_var_key
◆ addWord()
| void TrigMonRoi::addWord |
( |
unsigned int | word | ) |
|
|
inline |
◆ getEta()
| float TrigMonRoi::getEta |
( |
| ) |
const |
Definition at line 178 of file TrigMonRoi.cxx.
179{
180
181
182
183
185 for(
unsigned int i = 0;
i <
m_var_key.size(); ++
i) {
187 }
188 }
189
190 return -9999.0;
191}
◆ getNL1th()
| uint8_t TrigMonRoi::getNL1th |
( |
| ) |
const |
◆ getPhi()
| float TrigMonRoi::getPhi |
( |
| ) |
const |
Definition at line 194 of file TrigMonRoi.cxx.
195{
196
197
198
199
201 for(
unsigned int i = 0;
i <
m_var_key.size(); ++
i) {
203 }
204 }
205
206 return -9999.0;
207}
◆ getRoIArea()
| float TrigMonRoi::getRoIArea |
( |
| ) |
const |
Definition at line 210 of file TrigMonRoi.cxx.
211{
212
213
214
215
217 for(
unsigned int i = 0;
i <
m_var_key.size(); ++
i) {
219 }
220 }
221
222 return -9999.0;
223}
◆ getRoiId()
| uint32_t TrigMonRoi::getRoiId |
( |
| ) |
const |
Definition at line 164 of file TrigMonRoi.cxx.
165{
166
167
168
170
171
173
175}
uint8_t getRoiId_Unknown()
◆ getRoiType()
Definition at line 142 of file TrigMonRoi.cxx.
143{
144
145
146
148
150
151 switch (val) {
152 case 1:
return kMuon;
157 default: break;
158 }
159
161}
◆ getRoiWord()
| uint32_t TrigMonRoi::getRoiWord |
( |
| ) |
const |
|
inline |
◆ getVar()
| const std::vector< TrigMonVar > TrigMonRoi::getVar |
( |
| ) |
const |
Definition at line 237 of file TrigMonRoi.cxx.
238{
239
240
241
242 std::vector<TrigMonVar>
var;
243
245
246
247
249
250 for(
unsigned int i = 0;
i <
m_var_key.size(); ++
i) {
252 }
253 }
254
256}
◆ getVarKey() [1/2]
| std::vector< uint16_t > & TrigMonRoi::getVarKey |
( |
| ) |
|
|
inline |
◆ getVarKey() [2/2]
| const std::vector< uint16_t > & TrigMonRoi::getVarKey |
( |
| ) |
const |
|
inline |
◆ getVarVal() [1/3]
| std::vector< float > & TrigMonRoi::getVarVal |
( |
| ) |
|
|
inline |
◆ getVarVal() [2/3]
| const std::vector< float > & TrigMonRoi::getVarVal |
( |
| ) |
const |
|
inline |
◆ getVarVal() [3/3]
| float TrigMonRoi::getVarVal |
( |
const uint32_t | key | ) |
const |
◆ getWord() [1/2]
| std::vector< uint32_t > & TrigMonRoi::getWord |
( |
| ) |
|
|
inline |
◆ getWord() [2/2]
| const std::vector< uint32_t > & TrigMonRoi::getWord |
( |
| ) |
const |
|
inline |
◆ print()
| void TrigMonRoi::print |
( |
std::ostream & | os = std::cout | ) |
|
◆ setEtaPhi()
| void TrigMonRoi::setEtaPhi |
( |
float | eta, |
|
|
float | phi ) |
Definition at line 92 of file TrigMonRoi.cxx.
93{
94
95
96
101
104 }
105}
Scalar eta() const
pseudorapidity method
Scalar phi() const
phi method
◆ setNL1th()
| void TrigMonRoi::setNL1th |
( |
unsigned int | lt | ) |
|
Definition at line 75 of file TrigMonRoi.cxx.
76{
77
78
79
80 if(
m_word.size() < 2)
return;
81
82 if(lt < 256) {
84 }
85 else {
87 << "setL1thresholds error! Value is out of range: " << lt;
88 }
89}
◆ setRoIArea()
| void TrigMonRoi::setRoIArea |
( |
float | eta_width, |
|
|
float | phi_width ) |
Definition at line 108 of file TrigMonRoi.cxx.
109{
110
111
112
114
115
116
117
118
119 float area = eta_width * phi_width;
120
123 }
124}
◆ setRoiId()
| void TrigMonRoi::setRoiId |
( |
unsigned int | id | ) |
|
Definition at line 54 of file TrigMonRoi.cxx.
55{
56
57
58
59 if(
m_word.size() < 2)
return;
60
61 if(id < 256) {
63 }
64 else {
67 }
68 else{
70 }
71 }
72}
◆ setType()
| void TrigMonRoi::setType |
( |
Type | type | ) |
|
◆ m_var_key
| std::vector<uint16_t> TrigMonRoi::m_var_key |
|
private |
◆ m_var_val
| std::vector<float> TrigMonRoi::m_var_val |
|
private |
◆ m_word
| std::vector<uint32_t> TrigMonRoi::m_word |
|
private |
The documentation for this class was generated from the following files: