ATLAS Offline Software
Public Member Functions | Public Attributes | Friends | List of all members
robmonitor::ROBDataStruct Class Reference

A structure with data about ROB properties. More...

#include <ROBDataMonitor.h>

Collaboration diagram for robmonitor::ROBDataStruct:

Public Member Functions

 ROBDataStruct ()
 default constructor More...
 
 ROBDataStruct (const uint32_t)
 constructor More...
 
bool isUnclassified () const
 ROB is unclassified. More...
 
bool isHLTCached () const
 ROB was found in ROBDataProviderSvc cache. More...
 
bool isDCMCached () const
 ROB was found in DCM cache. More...
 
bool isRetrieved () const
 ROB was retrieved over network. More...
 
bool isIgnored () const
 ROB was ignored. More...
 
bool isUndefined () const
 ROB was not enabled. More...
 
bool isStatusOk () const
 ROB has no status words set. More...
 

Public Attributes

uint32_t rob_id
 
uint32_t rob_size
 
robmonitor::ROBHistory rob_history
 
uint32_t rob_status_word
 

Friends

std::ostream & operator<< (std::ostream &os, const robmonitor::ROBDataStruct &rhs)
 

Detailed Description

A structure with data about ROB properties.

Definition at line 39 of file ROBDataMonitor.h.

Constructor & Destructor Documentation

◆ ROBDataStruct() [1/2]

ROBDataStruct::ROBDataStruct ( )

default constructor

Definition at line 14 of file ROBDataMonitor.cxx.

15  : rob_id(0),
16  rob_size(0),
19 {}

◆ ROBDataStruct() [2/2]

ROBDataStruct::ROBDataStruct ( const uint32_t  srcId)

constructor

Parameters
ROBSource ID

Definition at line 21 of file ROBDataMonitor.cxx.

22  : rob_id(srcId),
23  rob_size(0),
26 {}

Member Function Documentation

◆ isDCMCached()

bool ROBDataStruct::isDCMCached ( ) const

ROB was found in DCM cache.

Definition at line 36 of file ROBDataMonitor.cxx.

36  {
37  return ((rob_history == robmonitor::DCM_CACHED) ? true : false);
38 }

◆ isHLTCached()

bool ROBDataStruct::isHLTCached ( ) const

ROB was found in ROBDataProviderSvc cache.

Definition at line 32 of file ROBDataMonitor.cxx.

32  {
33  return ((rob_history == robmonitor::HLT_CACHED) ? true : false);
34 }

◆ isIgnored()

bool ROBDataStruct::isIgnored ( ) const

ROB was ignored.

Definition at line 44 of file ROBDataMonitor.cxx.

44  {
45  return ((rob_history == robmonitor::IGNORED) ? true : false);
46 }

◆ isRetrieved()

bool ROBDataStruct::isRetrieved ( ) const

ROB was retrieved over network.

Definition at line 40 of file ROBDataMonitor.cxx.

40  {
41  return ((rob_history == robmonitor::RETRIEVED) ? true : false);
42 }

◆ isStatusOk()

bool ROBDataStruct::isStatusOk ( ) const

ROB has no status words set.

Definition at line 52 of file ROBDataMonitor.cxx.

52  {
53  return (rob_status_word == 0) ? true : false;
54 }

◆ isUnclassified()

bool ROBDataStruct::isUnclassified ( ) const

ROB is unclassified.

Definition at line 28 of file ROBDataMonitor.cxx.

28  {
29  return ((rob_history == robmonitor::UNCLASSIFIED) ? true : false);
30 }

◆ isUndefined()

bool ROBDataStruct::isUndefined ( ) const

ROB was not enabled.

Definition at line 48 of file ROBDataMonitor.cxx.

48  {
49  return ((rob_history == robmonitor::UNDEFINED) ? true : false);
50 }

Friends And Related Function Documentation

◆ operator<<

std::ostream& operator<< ( std::ostream &  os,
const robmonitor::ROBDataStruct rhs 
)
friend

Definition at line 147 of file ROBDataMonitor.h.

147  {
148  os << "[SourceID,Size(words),History,(Status words)]=["
149  << std::hex << std::setfill( '0' ) << "0x" << std::setw(6) << rhs.rob_id
150  << std::dec << std::setfill(' ')
151  << "," << std::setw(8) << rhs.rob_size;
152  os << "," << std::setw(12);
154  os << "UNCLASSIFIED";
155  } else if (rhs.rob_history == robmonitor::RETRIEVED) {
156  os << "RETRIEVED";
157  } else if (rhs.rob_history == robmonitor::HLT_CACHED) {
158  os << "HLT_CACHED";
159  } else if (rhs.rob_history == robmonitor::DCM_CACHED) {
160  os << "DCM_CACHED";
161  }else if (rhs.rob_history == robmonitor::IGNORED) {
162  os << "IGNORED";
163  } else if (rhs.rob_history == robmonitor::UNDEFINED) {
164  os << "UNDEFINED";
165  } else {
166  os << "invalid code";
167  }
168  os << ",(";
169  os << std::hex << std::setfill( '0' ) << "0x" << std::setw(8) << rhs.rob_status_word;
170  os << ")]";
171  return os;
172  }

Member Data Documentation

◆ rob_history

robmonitor::ROBHistory robmonitor::ROBDataStruct::rob_history

Definition at line 53 of file ROBDataMonitor.h.

◆ rob_id

uint32_t robmonitor::ROBDataStruct::rob_id

Definition at line 51 of file ROBDataMonitor.h.

◆ rob_size

uint32_t robmonitor::ROBDataStruct::rob_size

Definition at line 52 of file ROBDataMonitor.h.

◆ rob_status_word

uint32_t robmonitor::ROBDataStruct::rob_status_word

Definition at line 54 of file ROBDataMonitor.h.


The documentation for this class was generated from the following files:
robmonitor::UNDEFINED
@ UNDEFINED
Definition: ROBDataMonitor.h:32
robmonitor::DCM_CACHED
@ DCM_CACHED
Definition: ROBDataMonitor.h:30
robmonitor::ROBDataStruct::rob_size
uint32_t rob_size
Definition: ROBDataMonitor.h:52
robmonitor::IGNORED
@ IGNORED
Definition: ROBDataMonitor.h:31
robmonitor::ROBDataStruct::rob_id
uint32_t rob_id
Definition: ROBDataMonitor.h:51
robmonitor::ROBDataStruct::rob_status_word
uint32_t rob_status_word
Definition: ROBDataMonitor.h:54
robmonitor::ROBDataStruct::rob_history
robmonitor::ROBHistory rob_history
Definition: ROBDataMonitor.h:53
ReadFromCoolCompare.os
os
Definition: ReadFromCoolCompare.py:231
robmonitor::RETRIEVED
@ RETRIEVED
Definition: ROBDataMonitor.h:28
robmonitor::HLT_CACHED
@ HLT_CACHED
Definition: ROBDataMonitor.h:29
robmonitor::UNCLASSIFIED
@ UNCLASSIFIED
Definition: ROBDataMonitor.h:27