1 #ifndef __JDAQTIMESLICE__
2 #define __JDAQTIMESLICE__
30 class JDAQSummaryslice;
71 const bool snapshot =
true);
83 const bool snapshot =
true);
100 for (
iterator i = this->begin(); i != this->end(); ++i) {
120 for (const_iterator i = timeslice.begin(); i != timeslice.end(); ++i) {
140 for (const_iterator i = this->begin(); i != this->end(); ++i) {
141 buffer[i->getModuleIdentifier()] =
distance(static_cast<const JDAQTimeslice&>(*this).begin(),i);
144 for (JDAQTimeslice::const_iterator i = timeslice.begin(); i != timeslice.end(); ++i) {
148 if (p != buffer.end()) {
177 in >> static_cast<JDAQPreamble&> (timeslice);
178 in >> static_cast<JDAQTimesliceHeader&> (timeslice);
194 out << static_cast<const JDAQPreamble&> (timeslice);
195 out << static_cast<const JDAQTimesliceHeader&> (timeslice);
196 out << static_cast<const std::vector<JDAQSuperFrame>&>(timeslice);
209 std::ostream&
print(std::ostream& out,
const bool lpr =
false)
const
213 out << this->ClassName() << endl;
214 out << dynamic_cast<const JDAQPreamble&> (*
this) << endl;
215 out << dynamic_cast<const JDAQChronometer&>(*
this) << endl;
217 for (JDAQTimeslice::const_iterator frame = this->begin(); frame != this->end(); ++frame) {
219 out <<
' ' << setw(10) << frame->getModuleID();
220 out <<
' ' << setw(6) << frame->getLength();
221 out <<
' ' << setw(6) << frame->getDataType();
222 out <<
' ' << setw(6) << frame->getTimesliceStart();
223 out <<
' ' << setw(8) << setfill(
'0') << hex << frame->getStatus() << dec << setfill(
' ');
224 out <<
'|' << setw(8) << setfill(
'0') << hex << frame->getFIFOStatus() << dec << setfill(
' ');
225 out <<
' ' << setw(6) << frame->size();
229 if (!frame->empty()) {
231 out <<
' ' << setw(10) << frame-> begin()->getT();
233 out <<
' ' << setw(10) << frame->rbegin()->getT();
245 out << setw(2) << (int) hit->getPMT() <<
' ' << setw(8) << hit->getT() << (
n%10 == 0 ?
'\n' :
' ');
269 for (const_iterator frame = begin(); frame != end(); ++frame) {
270 len += frame->getSize();
306 return !(first == second);