![]() |
Project
|
#include <RawReaderCRU.h>
Classes | |
struct | CRUInfo |
summary information of on CRU More... | |
struct | EventInfo |
helper to store event information More... | |
struct | LinkInfo |
helper to store link information in an event More... | |
Public Types | |
using | LinkInfoArray_t = std::vector< LinkInfo > |
using | CRUInfoArray_t = std::vector< CRUInfo > |
using | EventInfoVector = std::vector< EventInfo > |
Public Member Functions | |
RawReaderCRUEventSync () | |
default ctor | |
LinkInfo & | getLinkInfo (const RDH &rdh, DataType dataType) |
get link information for a specific event and cru | |
const LinkInfoArray_t & | getLinkInfoArrayForEvent (size_t eventNumber, int cru) const |
get array with all link informaiton for a specific event number and cru | |
size_t | getNumberOfEvents () const |
get number of all events | |
size_t | getNumberOfCompleteEvents () const |
get number of complete events | |
size_t | getNumberOfEvents (CRU) const |
bool | isEventComplete (size_t eventNumber) const |
check if eent is complete | |
void | sortEvents () |
sort events ascending in heartbeatOrbit number | |
EventInfo & | createEvent (const uint32_t heartbeatOrbit, DataType dataType) |
create a new event or return the one with the given HB orbit | |
void | analyse (RAWDataType rawDataType=RAWDataType::GBT) |
analyse events and mark complete events | |
const EventInfoVector & | getEventInfoVector () const |
all event information | |
const EventInfo & | getEventInfo (size_t eventNumber) const |
information of specific event | |
void | streamTo (std::ostream &output) const |
write data to ostream | |
void | setLinksSeen (const CRU cru, const std::bitset< MaxNumberOfLinks > &links) |
set links that were seen for a CRU | |
void | setCRUSeen (const CRU cru, const uint16_t reader=0) |
set a cru as seen | |
const auto & | getCRUSeen () const |
return CRU seen information | |
uint32_t | getReaderNumber (uint32_t cru) |
get the reader associated to the CRU | |
void | reset () |
reset all information | |
Static Public Attributes | |
static constexpr size_t | ExpectedNumberOfPacketsPerHBFrame {8} |
expected number of packets in one HB frame per link for HB scaling mode | |
static constexpr size_t | ExpectedPayloadSize {64000} |
expected payload size in case of triggered mode (4000 GBT Frames of 16byte) | |
Friends | |
std::ostream & | operator<< (std::ostream &output, const RawReaderCRUEventSync &eventSync) |
overloading output stream operator | |
Definition at line 326 of file RawReaderCRU.h.
using o2::tpc::rawreader::RawReaderCRUEventSync::CRUInfoArray_t = std::vector<CRUInfo> |
Definition at line 407 of file RawReaderCRU.h.
using o2::tpc::rawreader::RawReaderCRUEventSync::EventInfoVector = std::vector<EventInfo> |
Definition at line 430 of file RawReaderCRU.h.
using o2::tpc::rawreader::RawReaderCRUEventSync::LinkInfoArray_t = std::vector<LinkInfo> |
Definition at line 355 of file RawReaderCRU.h.
|
inline |
default ctor
Definition at line 333 of file RawReaderCRU.h.
void RawReaderCRUEventSync::analyse | ( | RAWDataType | rawDataType = RAWDataType::GBT | ) |
analyse events and mark complete events
Definition at line 75 of file RawReaderCRU.cxx.
RawReaderCRUEventSync::EventInfo & RawReaderCRUEventSync::createEvent | ( | const uint32_t | heartbeatOrbit, |
DataType | dataType | ||
) |
create a new event or return the one with the given HB orbit
Definition at line 50 of file RawReaderCRU.cxx.
|
inline |
return CRU seen information
Definition at line 507 of file RawReaderCRU.h.
|
inline |
information of specific event
Definition at line 495 of file RawReaderCRU.h.
|
inline |
all event information
Definition at line 492 of file RawReaderCRU.h.
|
inline |
get link information for a specific event and cru
Definition at line 433 of file RawReaderCRU.h.
|
inline |
get array with all link informaiton for a specific event number and cru
Definition at line 454 of file RawReaderCRU.h.
|
inline |
get number of complete events
Definition at line 460 of file RawReaderCRU.h.
|
inline |
get number of all events
Definition at line 457 of file RawReaderCRU.h.
|
inline |
get number of events for a certain CRU
Definition at line 471 of file RawReaderCRU.h.
|
inline |
get the reader associated to the CRU
Definition at line 510 of file RawReaderCRU.h.
|
inline |
check if eent is complete
Definition at line 474 of file RawReaderCRU.h.
|
inline |
reset all information
Definition at line 513 of file RawReaderCRU.h.
|
inline |
set a cru as seen
Definition at line 504 of file RawReaderCRU.h.
void RawReaderCRUEventSync::setLinksSeen | ( | const CRU | cru, |
const std::bitset< MaxNumberOfLinks > & | links | ||
) |
set links that were seen for a CRU
Definition at line 115 of file RawReaderCRU.cxx.
|
inline |
sort events ascending in heartbeatOrbit number
Definition at line 483 of file RawReaderCRU.h.
void RawReaderCRUEventSync::streamTo | ( | std::ostream & | output | ) | const |
write data to ostream
Definition at line 126 of file RawReaderCRU.cxx.
|
friend |
overloading output stream operator
Definition at line 520 of file RawReaderCRU.h.
|
staticconstexpr |
expected number of packets in one HB frame per link for HB scaling mode
Definition at line 329 of file RawReaderCRU.h.
|
staticconstexpr |
expected payload size in case of triggered mode (4000 GBT Frames of 16byte)
Definition at line 330 of file RawReaderCRU.h.