ATLAS Offline Software
Loading...
Searching...
No Matches
TrigMonROBData Class Reference

#include <TrigMonROBData.h>

Collaboration diagram for TrigMonROBData:

Public Types

enum  History {
  kUNCLASSIFIED = 0 , kRETRIEVED = 1 , kCACHED = 2 , kIGNORED = 4 ,
  kDISABLED = 8
}
enum  Status { kUNKNOWN = 0x0 , kPREFETCH = 0x40 , kOK = 0x80 }

Public Member Functions

 TrigMonROBData ()
 TrigMonROBData (uint32_t rob_id, uint32_t rob_size)
 ~TrigMonROBData ()
void setHistory (History hist)
void setStatusOK ()
void setStatusPREFETCH ()
bool isUnclassified () const
bool isCached () const
bool isRetrieved () const
bool isIgnored () const
bool isDisabled () const
bool isStatusOk () const
bool isStatusPrefetched () const
uint32_t getROBId () const
uint32_t getROBSize () const
uint32_t getEncodedState () const
History getHistory () const
Status getStatus () const
void print (std::ostream &os=std::cout) const

Private Attributes

uint32_t m_rob_id
uint32_t m_word

Friends

class TrigMonROBDataCnv_p1
class TrigMonROBDataCnv_p2

Detailed Description

Definition at line 26 of file TrigMonROBData.h.

Member Enumeration Documentation

◆ History

Enumerator
kUNCLASSIFIED 
kRETRIEVED 
kCACHED 
kIGNORED 
kDISABLED 

Definition at line 30 of file TrigMonROBData.h.

30 {
31 kUNCLASSIFIED = 0, // ROB was requested but never arrived at processor. History unknown.
32 kRETRIEVED = 1, // ROB was retrieved from ROS by DataCollector
33 kCACHED = 2, // ROB was found already in the internal cache of the ROBDataProviderSvc
34 kIGNORED = 4, // ROB was on the "ignore" list and therefore not retrieved
35 kDISABLED = 8 // ROB was disabled in OKS and therefore not retrieved
36 };

◆ Status

Enumerator
kUNKNOWN 
kPREFETCH 
kOK 

Definition at line 37 of file TrigMonROBData.h.

37 {
38 kUNKNOWN = 0x0, // ROB status was unknown (default)
39 kPREFETCH = 0x40, // ROB was prefetched
40 kOK = 0x80 // ROB is StatusOk
41 };

Constructor & Destructor Documentation

◆ TrigMonROBData() [1/2]

TrigMonROBData::TrigMonROBData ( )

Definition at line 23 of file TrigMonROBData.cxx.

24 :m_rob_id(0),
25 m_word(0)
26{
27}

◆ TrigMonROBData() [2/2]

TrigMonROBData::TrigMonROBData ( uint32_t rob_id,
uint32_t rob_size )

Definition at line 30 of file TrigMonROBData.cxx.

31 :m_rob_id(rob_id),
32 m_word(0)
33{
34 if(rob_size >= 16777215) {
35 REPORT_MESSAGE_WITH_CONTEXT(MSG::ERROR, "TrigMonROBData")
36 << "Size out of range";
37 }
38 else {
39 m_word |= (rob_size << ROBbits::shiftSize);
40 }
41}
#define REPORT_MESSAGE_WITH_CONTEXT(LVL, CONTEXT_NAME)
Report a message, with an explicitly specified context name.
const uint32_t shiftSize

◆ ~TrigMonROBData()

TrigMonROBData::~TrigMonROBData ( )
inline

Definition at line 45 of file TrigMonROBData.h.

45{}

Member Function Documentation

◆ getEncodedState()

uint32_t TrigMonROBData::getEncodedState ( ) const

Definition at line 99 of file TrigMonROBData.cxx.

100{
101 //
102 // Return encoded Status and History integer
103 //
104 return (m_word & ROBbits::maskState);
105}
const uint32_t maskState

◆ getHistory()

TrigMonROBData::History TrigMonROBData::getHistory ( ) const

Definition at line 108 of file TrigMonROBData.cxx.

109{
110 //
111 // Mask history bits and get history
112 //
114}
TrigMonROBData::History getROBHistory(unsigned int val)

◆ getROBId()

uint32_t TrigMonROBData::getROBId ( ) const
inline

Definition at line 59 of file TrigMonROBData.h.

59{ return m_rob_id; }

◆ getROBSize()

uint32_t TrigMonROBData::getROBSize ( ) const

Definition at line 90 of file TrigMonROBData.cxx.

91{
92 //
93 // Get data size
94 //
96}
const uint32_t maskSize

◆ getStatus()

TrigMonROBData::Status TrigMonROBData::getStatus ( ) const

Definition at line 117 of file TrigMonROBData.cxx.

118{
119 //
120 // Mask status bits and get status
121 //
123}
TrigMonROBData::Status getROBStatus(unsigned int val)

◆ isCached()

bool TrigMonROBData::isCached ( ) const
inline

Definition at line 52 of file TrigMonROBData.h.

52{ return getHistory() == kCACHED; }
History getHistory() const

◆ isDisabled()

bool TrigMonROBData::isDisabled ( ) const
inline

Definition at line 55 of file TrigMonROBData.h.

55{ return getHistory() == kDISABLED; }

◆ isIgnored()

bool TrigMonROBData::isIgnored ( ) const
inline

Definition at line 54 of file TrigMonROBData.h.

54{ return getHistory() == kIGNORED; }

◆ isRetrieved()

bool TrigMonROBData::isRetrieved ( ) const
inline

Definition at line 53 of file TrigMonROBData.h.

53{ return getHistory() == kRETRIEVED; }

◆ isStatusOk()

bool TrigMonROBData::isStatusOk ( ) const

Definition at line 72 of file TrigMonROBData.cxx.

73{
74 //
75 // Return status bit
76 //
77 return (m_word & kOK);
78}

◆ isStatusPrefetched()

bool TrigMonROBData::isStatusPrefetched ( ) const

Definition at line 81 of file TrigMonROBData.cxx.

82{
83 //
84 // Return status bit
85 //
86 return (m_word & kPREFETCH);
87}

◆ isUnclassified()

bool TrigMonROBData::isUnclassified ( ) const
inline

Definition at line 51 of file TrigMonROBData.h.

51{ return getHistory() == kUNCLASSIFIED; }

◆ print()

void TrigMonROBData::print ( std::ostream & os = std::cout) const

Definition at line 126 of file TrigMonROBData.cxx.

◆ setHistory()

void TrigMonROBData::setHistory ( History hist)

Definition at line 44 of file TrigMonROBData.cxx.

45{
46 //
47 // Set history enum.
48 //
49 m_word = m_word & (~ROBbits::maskHistory);
50 m_word |= hist;
51}

◆ setStatusOK()

void TrigMonROBData::setStatusOK ( )

Definition at line 54 of file TrigMonROBData.cxx.

55{
56 //
57 // Set status bit
58 //
59 m_word |= kOK;
60}

◆ setStatusPREFETCH()

void TrigMonROBData::setStatusPREFETCH ( )

Definition at line 63 of file TrigMonROBData.cxx.

64{
65 //
66 // Set status bit
67 //
69}

◆ TrigMonROBDataCnv_p1

friend class TrigMonROBDataCnv_p1
friend

Definition at line 68 of file TrigMonROBData.h.

◆ TrigMonROBDataCnv_p2

friend class TrigMonROBDataCnv_p2
friend

Definition at line 69 of file TrigMonROBData.h.

Member Data Documentation

◆ m_rob_id

uint32_t TrigMonROBData::m_rob_id
private

Definition at line 71 of file TrigMonROBData.h.

◆ m_word

uint32_t TrigMonROBData::m_word
private

Definition at line 72 of file TrigMonROBData.h.


The documentation for this class was generated from the following files: