ATLAS Offline Software
Loading...
Searching...
No Matches
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
17
18// C/C++
19#include <stdint.h>
20
21// Local
23
25{
26 public:
27
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
52std::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
62CLASS_DEF( TrigMonROBSum , 136379655 , 1 )
63
64#endif
macros to associate a CLID to a type
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
char data[hepevt_bytes_allocation_ATLAS]
Definition HepEvt.cxx:11
uint32_t getNROB() const
uint32_t m_word
void print(std::ostream &os=std::cout) const
uint32_t getWord() const
bool setSize(uint32_t size)
bool setNROB(uint32_t nrob)
TrigMonROBData::History getHistory() const
uint32_t getSize() const
uint32_t getSubDet() const
bool setHistory(uint32_t hist)
bool addROB(const TrigMonROBData &data, int subdet=-1)