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);
JDAQSummaryslice()
Default constructor.
bool operator==(const JDAQChronometer &first, const JDAQChronometer &second)
Equal operator for DAQ chronometers.
Interface for binary output.
Auxiliary class for a DAQ type holder.
virtual ~JDAQSummaryslice()
Virtual destructor.
friend JWriter & operator<<(JWriter &, const JDAQSummaryslice &)
Write DAQ summary slice to output.
friend size_t getSizeof()
Definition of method to get size of data type.
JDAQSummaryslice(const JDAQTimeslice ×lice)
Constructor.
static int ROOT_IO_VERSION
Streamer version of JDAQSummaryslice as obtained from ROOT file.
then echo The file $DIR KM3NeT_00000001_00000000 root already please rename or remove it first
static void actionAtFileOpen(int version)
Action method at file open.
ClassDef(JDAQSummaryslice, 6)
Data storage class for rate measurements of all PMTs in one module.
std::ostream & print(std::ostream &out, const bool lpr=false) const
Print DAQ summary.
Interface for binary input.
JDAQSummaryslice(const JDAQChronometer &chronometer)
Constructor.
bool operator!=(const JDAQChronometer &first, const JDAQChronometer &second)
Not-equal operator for DAQ chronometers.
static const int NUMBER_OF_PMTS
Total number of PMTs in module.
bool & getDAQLongprint()
Get DAQ print option.
friend JReader & operator>>(JReader &, JDAQSummaryslice &)
Read DAQ summary slice from input.