Data time slice.
More...
#include <JDAQTimeslice.hh>
|
| JDAQTimeslice () |
| Default constructor. More...
|
|
| JDAQTimeslice (const JDAQChronometer &chronometer) |
| Constructor. More...
|
|
| JDAQTimeslice (const JDAQEvent &event, const bool snapshot=true) |
| Constructor. More...
|
|
| JDAQTimeslice (const JDAQEvent &event, const JDAQSummaryslice &summary, const bool snapshot=true) |
| Constructor. More...
|
|
virtual | ~JDAQTimeslice () |
| Virtual destructor. More...
|
|
void | clear () |
| Clear data. More...
|
|
JDAQTimeslice & | operator= (const JDAQTimeslice ×lice) |
| Assignment operator. More...
|
|
JDAQTimeslice & | add (const JDAQTimeslice ×lice) |
| Add another timeslice. More...
|
|
std::ostream & | print (std::ostream &out, const bool lpr=false) const |
| Print DAQ Timeslice. More...
|
|
virtual int | getSize () const |
| Get size of object. More...
|
|
| ClassDef (JDAQTimeslice, 4) |
|
| ClassDef (JDAQPreamble, 1) |
|
int | getLength () const |
| Get length. More...
|
|
int | getDataType () const |
| Get data type. More...
|
|
| ClassDefNV (JDAQAbstractPreamble, 1) |
|
const JDAQTimesliceHeader & | getDAQTimesliceHeader () const |
| Get DAQ time slice header. More...
|
|
| ClassDef (JDAQTimesliceHeader, 2) |
|
| ClassDef (JDAQHeader, 2) |
|
| ClassDef (JDAQChronometer, 3) |
|
const JDAQHeader & | getDAQHeader () const |
| Get DAQ header. More...
|
|
void | setDAQHeader (const JDAQHeader &header) |
| Set DAQ header. More...
|
|
const JDAQChronometer & | getDAQChronometer () const |
| Get DAQ chronometer. More...
|
|
void | setDAQChronometer (const JDAQChronometer &chronometer) |
| Set DAQ chronometer. More...
|
|
int | getDetectorID () const |
| Get detector identifier. More...
|
|
int | getRunNumber () const |
| Get run number. More...
|
|
int | getFrameIndex () const |
| Get frame index. More...
|
|
const JDAQUTCExtended & | getTimesliceStart () const |
| Get start of timeslice. More...
|
|
void | setRunNumber (const int run) |
| Set run number. More...
|
|
void | setFrameIndex (const int frame_index) |
| Set frame index. More...
|
|
void | setTimesliceStart (const JDAQUTCExtended ×lice_start) |
| Set timeslice start time. More...
|
|
Data time slice.
Definition at line 36 of file JDAQTimeslice.hh.
KM3NETDAQ::JDAQTimeslice::JDAQTimeslice |
( |
| ) |
|
|
inline |
Default constructor.
Definition at line 45 of file JDAQTimeslice.hh.
JDAQPreamble()
Default constructor.
KM3NETDAQ::JDAQTimeslice::JDAQTimeslice |
( |
const JDAQChronometer & |
chronometer | ) |
|
|
inline |
Constructor.
- Parameters
-
chronometer | DAQ chronometer |
Definition at line 57 of file JDAQTimeslice.hh.
JDAQPreamble()
Default constructor.
KM3NETDAQ::JDAQTimeslice::JDAQTimeslice |
( |
const JDAQEvent & |
event, |
|
|
const bool |
snapshot = true |
|
) |
| |
Constructor.
- Parameters
-
event | DAQ event |
snapshot | use shapshot hits (else use triggered hits) |
Definition at line 22 of file software/JDAQ/JDAQTimeslice.cc.
35 buffer[hit->getModuleID()].push_back(*hit);
41 buffer[hit->getModuleID()].push_back(*hit);
48 sort(entry->second.begin(), entry->second.end());
50 this->push_back(JDAQSuperFrame(JDAQSuperFrameHeader(
getDAQChronometer(), entry->first)));
52 this->rbegin()->add(entry->second.size(), entry->second.data());
JDAQKeyHit JDAQSnapshotHit
Structure to store the ToT mean and standard deviation of the hits produced by a nanobeacon in a sour...
const JDAQChronometer & getDAQChronometer() const
Get DAQ chronometer.
JDAQPreamble()
Default constructor.
KM3NETDAQ::JDAQTimeslice::JDAQTimeslice |
( |
const JDAQEvent & |
event, |
|
|
const JDAQSummaryslice & |
summary, |
|
|
const bool |
snapshot = true |
|
) |
| |
Constructor.
- Parameters
-
event | DAQ event |
summary | summary |
snapshot | use shapshot hits (else use triggered hits) |
Definition at line 64 of file software/JDAQ/JDAQTimeslice.cc.
79 buffer[hit->getModuleID()].push_back(*hit);
85 buffer[hit->getModuleID()].push_back(*hit);
91 for (JDAQSummaryslice::const_iterator i = summary.begin(); i != summary.end(); ++i) {
92 sumo[i->getModuleID()] = i->getDAQFrameStatus();
97 sort(entry->second.begin(), entry->second.end());
103 if (ps != sumo.end()) {
107 this->push_back(JDAQSuperFrame(JDAQSuperFrameHeader(
getDAQChronometer(), entry->first, status)));
109 this->rbegin()->add(entry->second.size(), entry->second.data());
static const JDAQFrameStatus & getInstance()
Get reference to unique instance of this class object.
JDAQKeyHit JDAQSnapshotHit
Structure to store the ToT mean and standard deviation of the hits produced by a nanobeacon in a sour...
const JDAQChronometer & getDAQChronometer() const
Get DAQ chronometer.
JDAQPreamble()
Default constructor.
virtual KM3NETDAQ::JDAQTimeslice::~JDAQTimeslice |
( |
| ) |
|
|
inlinevirtual |
void KM3NETDAQ::JDAQTimeslice::clear |
( |
| ) |
|
|
inline |
Assignment operator.
- Parameters
-
- Returns
- this timeslice
Definition at line 114 of file JDAQTimeslice.hh.
120 for (const_iterator i = timeslice.begin(); i != timeslice.end(); ++i) {
void setDAQChronometer(const JDAQChronometer &chronometer)
Set DAQ chronometer.
Add another timeslice.
- Parameters
-
- Returns
- this timeslice
Definition at line 134 of file JDAQTimeslice.hh.
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()) {
150 JDAQSuperFrame& frame = this->at(p->second);
154 sort(frame.begin(), frame.end());
std::ostream& KM3NETDAQ::JDAQTimeslice::print |
( |
std::ostream & |
out, |
|
|
const bool |
lpr = false |
|
) |
| const |
|
inline |
Print DAQ Timeslice.
- Parameters
-
out | output stream |
lpr | long print |
- Returns
- output stream
Definition at line 209 of file JDAQTimeslice.hh.
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' :
' ');
const JDAQHit * const_iterator
virtual int KM3NETDAQ::JDAQTimeslice::getSize |
( |
| ) |
const |
|
inlinevirtual |
Get size of object.
- Returns
- number of bytes
Reimplemented from KM3NETDAQ::JDAQPreamble.
Definition at line 260 of file JDAQTimeslice.hh.
269 for (const_iterator frame = begin(); frame != end(); ++frame) {
270 len += frame->getSize();
static int sizeOf()
Get size of object.
static int KM3NETDAQ::JDAQPreamble::sizeOf |
( |
| ) |
|
|
inlinestaticinherited |
Get size of object.
- Returns
- number of bytes
Definition at line 110 of file JDAQPreamble.hh.
static int sizeOf()
Get size of object.
void KM3NETDAQ::JDAQPreamble::setLength |
( |
| ) |
|
|
inlineprotectedinherited |
Set length.
Definition at line 134 of file JDAQPreamble.hh.
virtual int getSize() const
Get size of object.
int KM3NETDAQ::JDAQAbstractPreamble::getLength |
( |
| ) |
const |
|
inlineinherited |
int KM3NETDAQ::JDAQAbstractPreamble::getDataType |
( |
| ) |
const |
|
inlineinherited |
KM3NETDAQ::JDAQHeader::ClassDef |
( |
JDAQHeader |
, |
|
|
2 |
|
|
) |
| |
|
inherited |
const JDAQHeader& KM3NETDAQ::JDAQHeader::getDAQHeader |
( |
| ) |
const |
|
inlineinherited |
Get DAQ header.
- Returns
- DAQ header
Definition at line 51 of file JDAQHeader.hh.
void KM3NETDAQ::JDAQHeader::setDAQHeader |
( |
const JDAQHeader & |
header | ) |
|
|
inlineinherited |
static int KM3NETDAQ::JDAQHeader::sizeOf |
( |
| ) |
|
|
inlinestaticinherited |
Get size of object.
- Returns
- number of bytes
Definition at line 103 of file JDAQHeader.hh.
static int sizeOf()
Get size of object.
const JDAQChronometer& KM3NETDAQ::JDAQChronometer::getDAQChronometer |
( |
| ) |
const |
|
inlineinherited |
Get DAQ chronometer.
- Returns
- DAQ chronometer
Definition at line 88 of file JDAQChronometer.hh.
JDAQChronometer()
Default constructor.
void KM3NETDAQ::JDAQChronometer::setDAQChronometer |
( |
const JDAQChronometer & |
chronometer | ) |
|
|
inlineinherited |
Set DAQ chronometer.
- Parameters
-
chronometer | DAQ chronometer |
Definition at line 99 of file JDAQChronometer.hh.
JDAQChronometer()
Default constructor.
int KM3NETDAQ::JDAQChronometer::getDetectorID |
( |
| ) |
const |
|
inlineinherited |
int KM3NETDAQ::JDAQChronometer::getRunNumber |
( |
| ) |
const |
|
inlineinherited |
int KM3NETDAQ::JDAQChronometer::getFrameIndex |
( |
| ) |
const |
|
inlineinherited |
const JDAQUTCExtended& KM3NETDAQ::JDAQChronometer::getTimesliceStart |
( |
| ) |
const |
|
inlineinherited |
Get start of timeslice.
- Returns
- timeslice start
Definition at line 144 of file JDAQChronometer.hh.
JDAQUTCExtended timeslice_start
void KM3NETDAQ::JDAQChronometer::setRunNumber |
( |
const int |
run | ) |
|
|
inlineinherited |
void KM3NETDAQ::JDAQChronometer::setFrameIndex |
( |
const int |
frame_index | ) |
|
|
inlineinherited |
void KM3NETDAQ::JDAQChronometer::setTimesliceStart |
( |
const JDAQUTCExtended & |
timeslice_start | ) |
|
|
inlineinherited |
Set timeslice start time.
- Parameters
-
timeslice_start | timeslice start time |
Definition at line 177 of file JDAQChronometer.hh.
JDAQUTCExtended timeslice_start
Read DAQ timeslice from input.
- Parameters
-
- Returns
- JReader
Definition at line 173 of file JDAQTimeslice.hh.
JDAQPreamble()
Default constructor.
Write DAQ timeslice to output.
- Parameters
-
- Returns
- JWriter
Definition at line 192 of file JDAQTimeslice.hh.
194 out << static_cast<const JDAQPreamble&> (timeslice);
195 out << static_cast<const JDAQTimesliceHeader&> (timeslice);
196 out << static_cast<const std::vector<JDAQSuperFrame>&>(timeslice);
int KM3NETDAQ::JDAQAbstractPreamble::length |
|
protectedinherited |
int KM3NETDAQ::JDAQAbstractPreamble::type |
|
protectedinherited |
int KM3NETDAQ::JDAQChronometer::detector_id |
|
protectedinherited |
int KM3NETDAQ::JDAQChronometer::run |
|
protectedinherited |
int KM3NETDAQ::JDAQChronometer::frame_index |
|
protectedinherited |
The documentation for this class was generated from the following files: