ATLAS Offline Software
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
23 
25 {
26  public:
27 
28  TrigMonROBSum();
29  explicit TrigMonROBSum(uint32_t word);
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 
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
str
std::string str(const TrigMonROBSum &)
Definition: TrigMonROBSum.cxx:146
TrigMonROBSum
Definition: TrigMonROBSum.h:25
data
char data[hepevt_bytes_allocation_ATLAS]
Definition: HepEvt.cxx:11
TrigMonROBData.h
TrigMonROBSum::setSize
bool setSize(uint32_t size)
Definition: TrigMonROBSum.cxx:66
xAOD::uint32_t
setEventNumber uint32_t
Definition: EventInfo_v1.cxx:127
TrigMonROBSum::setNROB
bool setNROB(uint32_t nrob)
Definition: TrigMonROBSum.cxx:51
plotmaker.hist
hist
Definition: plotmaker.py:148
TrigMonROBSum::getSubDet
uint32_t getSubDet() const
Definition: TrigMonROBSum.cxx:122
TrigMonROBSum::getNROB
uint32_t getNROB() const
Definition: TrigMonROBSum.cxx:113
TrigMonROBSum::m_word
uint32_t m_word
Definition: TrigMonROBSum.h:49
TrigMonROBData::History
History
Definition: TrigMonROBData.h:30
TrigMonROBSum::getHistory
TrigMonROBData::History getHistory() const
Definition: TrigMonROBSum.cxx:131
TrigMonROBSum::~TrigMonROBSum
~TrigMonROBSum()
Definition: TrigMonROBSum.h:30
python.setupRTTAlg.size
int size
Definition: setupRTTAlg.py:39
TrigMonROBData
Definition: TrigMonROBData.h:27
TrigMonROBSum::addROB
bool addROB(const TrigMonROBData &data, int subdet=-1)
Definition: TrigMonROBSum.cxx:81
TrigMonROBSum::print
void print(std::ostream &os=std::cout) const
Definition: TrigMonROBSum.cxx:140
ReadFromCoolCompare.os
os
Definition: ReadFromCoolCompare.py:231
TrigMonROBSum::setHistory
bool setHistory(uint32_t hist)
Definition: TrigMonROBSum.cxx:36
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:64
TrigMonROBSum::getWord
uint32_t getWord() const
Definition: TrigMonROBSum.h:38
TrigMonROBSum::getSize
uint32_t getSize() const
Definition: TrigMonROBSum.cxx:104
TrigMonROBSum::TrigMonROBSum
TrigMonROBSum()
Definition: TrigMonROBSum.cxx:24
CLASS_DEF.h
macros to associate a CLID to a type