1#ifndef __JDAQSUMMARYSLICE__
2#define __JDAQSUMMARYSLICE__
68 for (JDAQTimeslice::const_iterator i = timeslice.begin(); i != timeslice.end(); ++i) {
69 this->push_back(JDAQSummaryFrame(*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.
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.
friend JReader & operator>>(JReader &, JDAQSummaryslice &)
Read DAQ summary slice from input.
JDAQSummaryslice(const JDAQTimeslice ×lice)
Constructor.
JDAQSummaryslice(const JDAQChronometer &chronometer)
Constructor.
friend size_t getSizeof(const JDAQSummaryslice &)
Get size of object.
virtual ~JDAQSummaryslice()
Virtual destructor.
ClassDef(JDAQSummaryslice, 6)
std::ostream & print(std::ostream &out, const bool lpr=false) const
Print DAQ summary.
static void actionAtFileOpen(int version)
Action method at file open.
friend JWriter & operator<<(JWriter &, const JDAQSummaryslice &)
Write DAQ summary slice to output.
JDAQSummaryslice()
Default constructor.
bool operator==(const Head &first, const Head &second)
Equal operator.
bool operator!=(const JTag &first, const JTag &second)
Not equal operator for JTag.
KM3NeT DAQ data structures and auxiliaries.
static const int NUMBER_OF_PMTS
Total number of PMTs in module.
JWriter & operator<<(JWriter &out, const JDAQChronometer &chronometer)
Write DAQ chronometer to output.
bool & getDAQLongprint()
Get DAQ print option.
Auxiliary class for a DAQ type holder.