|
ATLAS Offline Software
|
Go to the documentation of this file.
8 #ifndef ROBDATAMONITOR_H
9 #define ROBDATAMONITOR_H
11 #include "eformat/SourceIdentifier.h"
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";
166 os <<
"invalid code";
169 os << std::hex << std::setfill(
'0' ) <<
"0x" << std::setw(8) << rhs.rob_status_word;
177 std::string prefix2(
"-> ");
178 os <<
"ROB Request for L1 ID = " << std::dec << rhs.
lvl1ID <<
" (decimal), L1 ID = 0x"
179 << std::hex << rhs.
lvl1ID <<
" (hex)" << std::dec;
184 localtime_r(&s_time, &buf);
185 os <<
"\n" <<
prefix <<
"Start time of ROB request = "
186 << std::put_time(&buf,
"%c")
190 localtime_r(&e_time, &buf);
191 os <<
"\n" <<
prefix <<
"Stop time of ROB request = "
192 << std::put_time(&buf,
"%c")
195 os <<
"\n" <<
prefix <<
"Requested ROBs:";
204 for (std::map<const uint32_t,robmonitor::ROBDataStruct>::const_iterator
it=rhs.
requested_ROBs.begin();
206 os <<
"\n" <<
prefix << prefix2 << (*it).second;
unsigned retrievedROBs() const
number of retrieved ROBs in structure
ROBDataMonitorStruct()
default constructor
struct timeval start_time_of_ROB_request
The structure which is used to monitor the ROB data request in L2 It is created for every addROBData ...
unsigned ignoredROBs() const
number of ignored ROBs in structure
A structure with data about ROB properties.
ROBHistory
A structure with data about ROB properties.
ROBDataMonitorStruct(const ROBDataMonitorStruct &)=default
unsigned HLTcachedROBs() const
number of ROBDataProviderSvc cached ROBs in structure
bool isIgnored() const
ROB was ignored.
ROBDataMonitorStruct(ROBDataMonitorStruct &&) noexcept=default
bool const RAWDATA *ch2 const
bool isStatusOk() const
ROB has no status words set.
DataVector< robmonitor::ROBDataMonitorStruct > ROBDataMonitorCollection
unsigned DCMcachedROBs() const
number of DCM cached ROBs in structure
float elapsedTime() const
elapsed time for ROB request in [ms]
bool isDCMCached() const
ROB was found in DCM cache.
bool isUndefined() const
ROB was not enabled.
unsigned undefinedROBs() const
number of undefined ROBs in structure
ROBDataStruct()
default constructor
robmonitor::ROBHistory rob_history
bool isHLTCached() const
ROB was found in ROBDataProviderSvc cache.
unsigned statusOkROBs() const
number of ROBs with no status words set in structure
friend std::ostream & operator<<(std::ostream &os, const robmonitor::ROBDataStruct &rhs)
bool isUnclassified() const
ROB is unclassified.
std::string requestor_name
An STL vector of pointers that by default owns its pointed-to elements.
std::map< const uint32_t, robmonitor::ROBDataStruct > requested_ROBs
friend std::ostream & operator<<(std::ostream &os, const robmonitor::ROBDataMonitorStruct &rhs)
unsigned unclassifiedROBs() const
number of unclassified ROBs in structure
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
struct timeval end_time_of_ROB_request
macros to associate a CLID to a type
bool isRetrieved() const
ROB was retrieved over network.
unsigned allROBs() const
number of ROBs in structure