1 #ifndef __JDAQSUMMARYSLICE__
2 #define __JDAQSUMMARYSLICE__
68 for (JDAQTimeslice::const_iterator i = timeslice.begin(); i != timeslice.end(); ++i) {
88 std::ostream&
print(std::ostream& out,
const bool lpr =
false)
const
92 out << this->ClassName() << endl;
93 out << dynamic_cast<const JDAQPreamble&> (*
this) << endl;
94 out << dynamic_cast<const JDAQChronometer&>(*
this) << endl;
96 for (JDAQSummaryslice::const_iterator module = this->begin(); module != this->end(); ++module) {
98 out <<
' ' << setw(10) << module->getModuleID();
99 out <<
' ' << setw(8) << setfill(
'0') << hex << module->getStatus() << dec << setfill(
' ');
100 out <<
'|' << setw(8) << setfill(
'0') << hex << module->getFIFOStatus() << dec << setfill(
' ');
101 out <<
' ' << setw(2) << module->getUDPNumberOfReceivedPackets();
102 out <<
' ' << setw(2) << module->getUDPMaximalSequenceNumber();
106 out <<
' ' << fixed << showpoint << setw(4) << setprecision(1) << module->getRate(pmt) * 1.0e-3;
170 return !(first == second);
Interface for binary input.
Interface for binary output.
friend size_t getSizeof()
Definition of method to get size of data type.
Data storage class for rate measurements of all PMTs in one module.
static int ROOT_IO_VERSION
Streamer version of JDAQSummaryslice as obtained from ROOT file.
std::ostream & print(std::ostream &out, const bool lpr=false) const
Print DAQ summary.
JDAQSummaryslice(const JDAQTimeslice ×lice)
Constructor.
JDAQSummaryslice(const JDAQChronometer &chronometer)
Constructor.
friend JWriter & operator<<(JWriter &, const JDAQSummaryslice &)
Write DAQ summary slice to output.
friend JReader & operator>>(JReader &, JDAQSummaryslice &)
Read DAQ summary slice from input.
virtual ~JDAQSummaryslice()
Virtual destructor.
ClassDef(JDAQSummaryslice, 6)
static void actionAtFileOpen(int version)
Action method at file open.
JDAQSummaryslice()
Default constructor.
KM3NeT DAQ data structures and auxiliaries.
static const int NUMBER_OF_PMTS
Total number of PMTs in module.
bool operator!=(const JDAQChronometer &first, const JDAQChronometer &second)
Not-equal operator for DAQ chronometers.
bool & getDAQLongprint()
Get DAQ print option.
bool operator==(const JDAQChronometer &first, const JDAQChronometer &second)
Equal operator for DAQ chronometers.
Auxiliary class for a DAQ type holder.