ATLAS Offline Software
Loading...
Searching...
No Matches
Trigger
TrigEvent
TrigMonitoringEvent
src
TrigMonVar.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#include "
AthenaKernel/errorcheck.h
"
6
#include "
TrigMonitoringEvent/TrigMonVar.h
"
7
8
//--------------------------------------------------------------------------------------
9
TrigMonVar::TrigMonVar
()
10
:
m_key
(0),
11
m_data
(0.)
12
{
13
}
14
15
//--------------------------------------------------------------------------------------
16
TrigMonVar::TrigMonVar
(
const
unsigned
int
key
,
const
float
data
)
17
:
m_key
(
key
),
18
m_data
(
data
)
19
{
20
if
(
key
>= 65535) {
21
REPORT_MESSAGE_WITH_CONTEXT
(MSG::ERROR,
"TrigMonVar"
)
22
<<
"ctor - error! Overflow of 16 bits key."
;
23
}
24
}
25
26
//--------------------------------------------------------------------------------------
27
void
TrigMonVar::print
(std::ostream &os)
const
28
{
29
os <<
"TrigMonVar::Print"
<< std::endl;
30
}
errorcheck.h
Helpers for checking error return status codes and reporting errors.
REPORT_MESSAGE_WITH_CONTEXT
#define REPORT_MESSAGE_WITH_CONTEXT(LVL, CONTEXT_NAME)
Report a message, with an explicitly specified context name.
Definition
Control/AthenaKernel/AthenaKernel/errorcheck.h:345
TrigMonVar.h
TrigMonVar::TrigMonVar
TrigMonVar()
Definition
TrigMonVar.cxx:9
TrigMonVar::m_data
float m_data
Definition
TrigMonVar.h:78
TrigMonVar::key
uint16_t key() const
Definition
TrigMonVar.h:68
TrigMonVar::data
float data() const
Definition
TrigMonVar.h:70
TrigMonVar::m_key
uint16_t m_key
Definition
TrigMonVar.h:77
TrigMonVar::print
void print(std::ostream &os) const
Definition
TrigMonVar.cxx:27
Generated on
for ATLAS Offline Software by
1.14.0