Jpp test-rotations-old
the software that should make you happy
Loading...
Searching...
No Matches
DAQHeaderPrinter Class Reference

#include <daq_common_header.hh>

Public Member Functions

 DAQHeaderPrinter (const DAQCommonHeader *pointer)
 
 DAQHeaderPrinter (const char *pointer)
 

Private Attributes

const DAQCommonHeaderm_pointer
 

Friends

std::ostream & operator<< (std::ostream &stream, const DAQHeaderPrinter &header)
 

Detailed Description

Definition at line 30 of file daq_common_header.hh.

Constructor & Destructor Documentation

◆ DAQHeaderPrinter() [1/2]

DAQHeaderPrinter::DAQHeaderPrinter ( const DAQCommonHeader * pointer)
inline

Definition at line 36 of file daq_common_header.hh.

37 :
38 m_pointer(pointer)
39 {}
const DAQCommonHeader * m_pointer

◆ DAQHeaderPrinter() [2/2]

DAQHeaderPrinter::DAQHeaderPrinter ( const char * pointer)
inline

Definition at line 41 of file daq_common_header.hh.

42 :
44 static_cast<const DAQCommonHeader*>(
45 static_cast<const void*>(pointer)
46 )
47 )
48 {}

Friends And Related Symbol Documentation

◆ operator<<

std::ostream & operator<< ( std::ostream & stream,
const DAQHeaderPrinter & header )
friend

Definition at line 56 of file daq_common_header.hh.

57{
58 return stream << "FrameLenght: " << header.m_pointer->FrameLength << '\n'
59 << "DataType: " << header.m_pointer->DataType << '\n'
60 << "DetectorId: " << header.m_pointer->DetectorIdentifier << '\n'
61 << "RunNumber: " << header.m_pointer->RunNumber << '\n'
62 << "SequenceNumber: " << header.m_pointer->SequenceNumber << '\n'
63 << "UTC time:\n"
64 << "Seconds: " << header.m_pointer->Timestamp.Sec << '\n'
65 << "Tics: " << header.m_pointer->Timestamp.Tics << '\n'
66 << "DOMIdentifier: " << header.m_pointer->DOMIdentifier << '\n'
67 << "DQStatus:\n"
68 << "NumberOfPackets: " << header.m_pointer->NumberOfPackets << '\n'
69 << "HighestPktNumber: " << header.m_pointer->HighestPacketNumber << '\n'
70 << "DOMStatus 1: " << header.m_pointer->DOMStatus1 << '\n'
71 << "DOMStatus 2: " << header.m_pointer->DOMStatus2 << '\n'
72 << "DOMStatus 3: " << header.m_pointer->DOMStatus3 << '\n'
73 << "DOMStatus 4: " << header.m_pointer->DOMStatus4 << '\n'
74 << "NumberOfItems: " << header.m_pointer->NumberOfItems;
75}
uint32_t Sec
Definition utctime.hh:14
uint32_t Tics
Definition utctime.hh:15

Member Data Documentation

◆ m_pointer

const DAQCommonHeader* DAQHeaderPrinter::m_pointer
private

Definition at line 32 of file daq_common_header.hh.


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