ATLAS Offline Software
Public Types | Public Member Functions | Private Attributes | Friends | List of all members
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 }

◆ ~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 }

◆ getHistory()

TrigMonROBData::History TrigMonROBData::getHistory ( ) const

Definition at line 108 of file TrigMonROBData.cxx.

109 {
110  //
111  // Mask history bits and get history
112  //
113  return Trig::getROBHistory(m_word);
114 }

◆ 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 }

◆ getStatus()

TrigMonROBData::Status TrigMonROBData::getStatus ( ) const

Definition at line 117 of file TrigMonROBData.cxx.

118 {
119  //
120  // Mask status bits and get status
121  //
122  return Trig::getROBStatus(m_word);
123 }

◆ isCached()

bool TrigMonROBData::isCached ( ) const
inline

Definition at line 52 of file TrigMonROBData.h.

52 { return getHistory() == kCACHED; }

◆ 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.

127 {
128  os << str(*this) << "\n";
129 }

◆ setHistory()

void TrigMonROBData::setHistory ( History  hist)

Definition at line 44 of file TrigMonROBData.cxx.

45 {
46  //
47  // Set history enum.
48  //
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  //
68  m_word |= kPREFETCH;
69 }

Friends And Related Function Documentation

◆ 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:
Trig::getROBStatus
TrigMonROBData::Status getROBStatus(unsigned int val)
Definition: TrigMonROBData.cxx:155
plotmaker.hist
hist
Definition: plotmaker.py:148
ROBbits::maskState
const uint32_t maskState
Definition: TrigMonROBData.cxx:16
str
std::string str(const TrigMonROBData &o)
Definition: TrigMonROBData.cxx:132
TrigMonROBData::kCACHED
@ kCACHED
Definition: TrigMonROBData.h:33
ROBbits::maskSize
const uint32_t maskSize
Definition: TrigMonROBData.cxx:17
TrigMonROBData::kDISABLED
@ kDISABLED
Definition: TrigMonROBData.h:35
TrigMonROBData::m_rob_id
uint32_t m_rob_id
Definition: TrigMonROBData.h:71
TrigMonROBData::kUNCLASSIFIED
@ kUNCLASSIFIED
Definition: TrigMonROBData.h:31
ROBbits
Definition: TrigMonROBData.cxx:13
ReadFromCoolCompare.os
os
Definition: ReadFromCoolCompare.py:231
TrigMonROBData::getHistory
History getHistory() const
Definition: TrigMonROBData.cxx:108
TrigMonROBData::kRETRIEVED
@ kRETRIEVED
Definition: TrigMonROBData.h:32
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
TrigMonROBData::kPREFETCH
@ kPREFETCH
Definition: TrigMonROBData.h:39
Trig::getROBHistory
TrigMonROBData::History getROBHistory(unsigned int val)
Definition: TrigMonROBData.cxx:142
TrigMonROBData::kOK
@ kOK
Definition: TrigMonROBData.h:40
TrigMonROBData::m_word
uint32_t m_word
Definition: TrigMonROBData.h:72
ROBbits::shiftSize
const uint32_t shiftSize
Definition: TrigMonROBData.cxx:18
TrigMonROBData::kIGNORED
@ kIGNORED
Definition: TrigMonROBData.h:34
TrigMonROBData::kUNKNOWN
@ kUNKNOWN
Definition: TrigMonROBData.h:38
ROBbits::maskHistory
const uint32_t maskHistory
Definition: TrigMonROBData.cxx:14