ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Trigger
TrigEvent
TrigMonitoringEvent
TrigMonitoringEvent
TrigMonROBSum.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef TRIGMON_ROBSUM_H
6
#define TRIGMON_ROBSUM_H
7
8
/*
9
@author Rustem Ospanov
10
@date July 2009
11
12
@brief Sum of ROB data items: number of robs, size and history state.
13
*/
14
15
// Framework
16
#include "
AthenaKernel/CLASS_DEF.h
"
17
18
// C/C++
19
#include <stdint.h>
20
21
// Local
22
#include "
TrigMonitoringEvent/TrigMonROBData.h
"
23
24
class
TrigMonROBSum
25
{
26
public
:
27
28
TrigMonROBSum
();
29
explicit
TrigMonROBSum
(uint32_t word);
30
~TrigMonROBSum
() {}
31
32
bool
setHistory
(uint32_t hist);
33
bool
setNROB
(uint32_t nrob);
34
bool
setSize
(uint32_t
size
);
35
36
bool
addROB
(
const
TrigMonROBData
&data,
int
subdet = -1);
37
38
uint32_t
getWord
()
const
{
return
m_word
; }
39
uint32_t
getSize
()
const
;
40
uint32_t
getNROB
()
const
;
41
uint32_t
getSubDet
()
const
;
42
43
TrigMonROBData::History
getHistory
()
const
;
44
45
void
print
(std::ostream &os = std::cout)
const
;
46
47
private
:
48
49
uint32_t
m_word
;
// Number of ROBs, size and history
50
};
51
52
std::string
str
(
const
TrigMonROBSum
&);
53
54
//
55
// m_word stores history and state enums
56
//
57
// 4 low bits: history
58
// 8 mid bits: number of robs or subdetector id
59
// 20 top bits: size of robs
60
//
61
62
CLASS_DEF
(
TrigMonROBSum
, 136379655 , 1 )
63
64
#endif
CLASS_DEF.h
macros to associate a CLID to a type
CLASS_DEF
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
Definition
Control/AthenaKernel/AthenaKernel/CLASS_DEF.h:67
size
size_t size() const
Number of registered mappings.
TrigMonROBData.h
TrigMonROBData
Definition
TrigMonROBData.h:27
TrigMonROBData::History
History
Definition
TrigMonROBData.h:30
TrigMonROBSum
Definition
TrigMonROBSum.h:25
TrigMonROBSum::getNROB
uint32_t getNROB() const
Definition
TrigMonROBSum.cxx:113
TrigMonROBSum::m_word
uint32_t m_word
Definition
TrigMonROBSum.h:49
TrigMonROBSum::print
void print(std::ostream &os=std::cout) const
Definition
TrigMonROBSum.cxx:140
TrigMonROBSum::TrigMonROBSum
TrigMonROBSum()
Definition
TrigMonROBSum.cxx:24
TrigMonROBSum::getWord
uint32_t getWord() const
Definition
TrigMonROBSum.h:38
TrigMonROBSum::setSize
bool setSize(uint32_t size)
Definition
TrigMonROBSum.cxx:66
TrigMonROBSum::setNROB
bool setNROB(uint32_t nrob)
Definition
TrigMonROBSum.cxx:51
TrigMonROBSum::getHistory
TrigMonROBData::History getHistory() const
Definition
TrigMonROBSum.cxx:131
TrigMonROBSum::getSize
uint32_t getSize() const
Definition
TrigMonROBSum.cxx:104
TrigMonROBSum::~TrigMonROBSum
~TrigMonROBSum()
Definition
TrigMonROBSum.h:30
TrigMonROBSum::getSubDet
uint32_t getSubDet() const
Definition
TrigMonROBSum.cxx:122
TrigMonROBSum::setHistory
bool setHistory(uint32_t hist)
Definition
TrigMonROBSum.cxx:36
TrigMonROBSum::addROB
bool addROB(const TrigMonROBData &data, int subdet=-1)
Definition
TrigMonROBSum.cxx:81
str
Definition
BTagTrackIpAccessor.cxx:11
Generated on
for ATLAS Offline Software by
1.17.0