Timeslice data structure for L2 data.
More...
#include <JDAQTimeslice.hh>
Timeslice data structure for L2 data.
Definition at line 271 of file JDAQTimeslice.hh.
◆ ClassDef() [1/6]
◆ clear()
| void KM3NETDAQ::JDAQTimeslice::clear |
( |
| ) |
|
|
inlineinherited |
Clear data.
Definition at line 97 of file JDAQTimeslice.hh.
98 {
99 for (
iterator i = this->begin(); i != this->end(); ++i) {
100 i->clear();
101 }
102
104 }
◆ add()
Add another timeslice.
- Parameters
-
- Returns
- this timeslice
Definition at line 133 of file JDAQTimeslice.hh.
134 {
136
138
139 for (const_iterator i = this->begin(); i != this->end(); ++i) {
141 }
142
143 for (JDAQTimeslice::const_iterator i = timeslice.begin(); i != timeslice.end(); ++i) {
144
146
147 if (p != buffer.end()) {
148
150
152
154
155 } else {
156
157 this->push_back(*i);
158 }
159 }
160
161 return *this;
162 }
Template definition of a multi-dimensional oscillation probability interpolation table.
const_iterator end() const
const_iterator begin() const
Data frame of one optical module.
JDAQSuperFrame & add(const JDAQSuperFrame &super_frame)
Add data from same optical module.
◆ print()
| std::ostream & KM3NETDAQ::JDAQTimeslice::print |
( |
std::ostream & | out, |
|
|
const bool | lpr = false ) const |
|
inlineinherited |
Print DAQ Timeslice.
- Parameters
-
| out | output stream |
| lpr | long print |
- Returns
- output stream
Definition at line 172 of file JDAQTimeslice.hh.
173 {
175
179
180 for (JDAQTimeslice::const_iterator frame = this->begin(); frame != this->end(); ++frame) {
181
182 out <<
' ' <<
setw(10) << frame->getModuleID();
183 out <<
' ' <<
setw(6) << frame->getLength();
184 out <<
' ' <<
setw(6) << frame->getDataType();
185 out <<
' ' <<
setw(6) << frame->getTimesliceStart();
188 out <<
' ' <<
setw(2) << frame->getUDPNumberOfReceivedPackets();
189 out <<
'/' <<
setw(2) << frame->getUDPMaximalSequenceNumber();
190 out <<
' ' <<
setw(6) << frame->size();
191
193
194 if (!frame->empty()) {
195
196 out <<
' ' <<
setw(10) << frame-> begin()->getT();
197 out << " ... ";
198 out <<
' ' <<
setw(10) << frame->rbegin()->getT();
199 }
200
202
203 } else {
204
206
208
212 <<
setw(3) << (
int)
hit->getToT() << (
n%10 == 0 ?
'\n' :
' ');
213 }
214
216 }
217 }
218
219 return out;
220 }
◆ ClassDef() [2/6]
◆ ClassDef() [3/6]
◆ ClassDef() [4/6]
◆ ClassDef() [5/6]
| KM3NETDAQ::JDAQHeader::ClassDef |
( |
JDAQHeader | , |
|
|
2 | ) |
|
inherited |
◆ ClassDef() [6/6]
◆ getDAQPreamble()
Get DAQ preamble.
This method should be used for binary I/O to get the actual data for the given object.
To this end, the following method should be overloaded for the corresponding data type.
size_t getSizeof(const T&);
- Parameters
-
- Returns
- preamble
Definition at line 76 of file JDAQPreamble.hh.
77 {
79
82
83 return preamble;
84 }
friend size_t getSizeof()
Definition of method to get size of data type.
◆ getLength()
| int KM3NETDAQ::JDAQAbstractPreamble::getLength |
( |
| ) |
const |
|
inlineinherited |
◆ getDataType()
| int KM3NETDAQ::JDAQAbstractPreamble::getDataType |
( |
| ) |
const |
|
inlineinherited |
◆ ClassDefNV()
◆ getDAQTimesliceHeader()
◆ getDAQHeader()
Get DAQ header.
- Returns
- DAQ header
Definition at line 49 of file JDAQHeader.hh.
◆ setDAQHeader()
◆ getDAQChronometer()
◆ setDAQChronometer()
Set DAQ chronometer.
- Parameters
-
| chronometer | DAQ chronometer |
Definition at line 99 of file JDAQChronometer.hh.
◆ getDetectorID()
| int KM3NETDAQ::JDAQChronometer::getDetectorID |
( |
| ) |
const |
|
inlineinherited |
◆ getRunNumber()
| int KM3NETDAQ::JDAQChronometer::getRunNumber |
( |
| ) |
const |
|
inlineinherited |
◆ getFrameIndex()
| int KM3NETDAQ::JDAQChronometer::getFrameIndex |
( |
| ) |
const |
|
inlineinherited |
◆ getTimesliceStart()
Get start of timeslice.
- Returns
- timeslice start
Definition at line 144 of file JDAQChronometer.hh.
145 {
147 }
JDAQUTCExtended timeslice_start
◆ setRunNumber()
| void KM3NETDAQ::JDAQChronometer::setRunNumber |
( |
const int | run | ) |
|
|
inlineinherited |
◆ setFrameIndex()
| void KM3NETDAQ::JDAQChronometer::setFrameIndex |
( |
const int | frame_index | ) |
|
|
inlineinherited |
◆ setTimesliceStart()
Set timeslice start time.
- Parameters
-
| timeslice_start | timeslice start time |
Definition at line 177 of file JDAQChronometer.hh.
◆ length
| int KM3NETDAQ::JDAQAbstractPreamble::length |
|
protectedinherited |
◆ type
| int KM3NETDAQ::JDAQAbstractPreamble::type |
|
protectedinherited |
◆ detector_id
| int KM3NETDAQ::JDAQChronometer::detector_id |
|
protectedinherited |
◆ run
| int KM3NETDAQ::JDAQChronometer::run |
|
protectedinherited |
◆ frame_index
| int KM3NETDAQ::JDAQChronometer::frame_index |
|
protectedinherited |
◆ timeslice_start
The documentation for this struct was generated from the following file: