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()) {
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(5) << frame->getModuleID();
220 out <<
' ' << setw(6) << frame->getLength();
221 out <<
' ' << setw(6) << frame->getDataType();
222 out <<
' ' << setw(6) << frame->getTimesliceStart();
223 out <<
' ' << setw(8) << hex << frame->getStatus() << dec;
224 out <<
'|' << setw(8) << hex << frame->getFIFOStatus() << dec;
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);
bool operator==(const JDAQChronometer &first, const JDAQChronometer &second)
Equal operator for DAQ chronometers.
Interface for binary output.
JDAQTimeslice(const JDAQChronometer &chronometer)
Constructor.
Auxiliary class for a DAQ type holder.
friend JWriter & operator<<(JWriter &out, const JDAQTimeslice ×lice)
Write DAQ timeslice to output.
JDAQTimeslice()
Default constructor.
Structure to store the ToT mean and standard deviation of the hits produced by a nanobeacon in a sour...
JDAQTimeslice & operator=(const JDAQTimeslice ×lice)
Assignment operator.
Timeslice data structure for L1 data.
virtual ~JDAQTimeslice()
Virtual destructor.
friend JReader & operator>>(JReader &in, JDAQTimeslice ×lice)
Read DAQ timeslice from input.
JDAQTimeslice & add(const JDAQTimeslice ×lice)
Add another timeslice.
const_iterator begin() const
Timeslice data structure for L2 data.
const JDAQChronometer & getDAQChronometer() const
Get DAQ chronometer.
std::ostream & print(std::ostream &out, const bool lpr=false) const
Print DAQ Timeslice.
void setDAQChronometer(const JDAQChronometer &chronometer)
Set DAQ chronometer.
Timeslice data structure for SN data.
Interface for binary input.
virtual int getSize() const
Get size of object.
bool operator!=(const JDAQChronometer &first, const JDAQChronometer &second)
Not-equal operator for DAQ chronometers.
bool & getDAQLongprint()
Get DAQ print option.
ClassDef(JDAQTimeslice, 4)
Data frame of one optical module.
JDAQSuperFrame & add(const JDAQSuperFrame &super_frame)
Add data from same optical module.
Timeslice data structure for L0 data.
STD extensions for binary I/O.
const_iterator end() const
static int sizeOf()
Get size of object.