![]() |
Project
|
Container class for time sampled digits. More...
#include <DigitsWriteoutBuffer.h>
Public Member Functions | |
DigitsWriteoutBuffer (unsigned int nTimeBins=15) | |
Default constructor. | |
~DigitsWriteoutBuffer ()=default | |
Destructor. | |
void | clear () |
clear the container | |
void | flush () |
clear DigitsVectorStream | |
void | init () |
void | reserve () |
Reserve space for the future container. | |
void | finish () |
This is for the readout window that was interrupted by the end of the run. | |
double | getTriggerTime () const |
double | getEventTime () const |
bool | isLive (double t) const |
bool | isLive () const |
bool | preTriggerCollision () const |
void | addDigits (unsigned int towerID, std::vector< LabeledDigit > &digList) |
void | setSampledDigitsTime () |
This function sets the right time for all digits in the buffer. | |
void | setBufferSize (unsigned int nsamples) |
Setting the buffer size. | |
unsigned int | getBufferSize () const |
void | forwardMarker (o2::InteractionTimeRecord record, bool trigger) |
forward the marker for every 100 ns | |
void | setLiveTime (unsigned int liveTime) |
Setters for the live time, busy time, pre-trigger time. | |
void | setBusyTime (unsigned int busyTime) |
void | setPreTriggerTime (unsigned int pretriggerTime) |
unsigned int | getPhase () const |
const std::vector< o2::emcal::Digit > & | getDigits () const |
const std::vector< o2::emcal::TriggerRecord > & | getTriggerRecords () const |
const o2::dataformats::MCTruthContainer< o2::emcal::MCLabel > & | getMCLabels () const |
Container class for time sampled digits.
Definition at line 38 of file DigitsWriteoutBuffer.h.
DigitsWriteoutBuffer::DigitsWriteoutBuffer | ( | unsigned int | nTimeBins = 15 | ) |
Default constructor.
Definition at line 26 of file DigitsWriteoutBuffer.cxx.
|
default |
Destructor.
void DigitsWriteoutBuffer::addDigits | ( | unsigned int | towerID, |
std::vector< LabeledDigit > & | digList | ||
) |
Add digit to the container
towerID | Cell ID |
dig | Labaled digit to add |
eventTime | The time of the event (w.r.t Tigger time) |
Definition at line 65 of file DigitsWriteoutBuffer.cxx.
void DigitsWriteoutBuffer::clear | ( | ) |
clear the container
Definition at line 44 of file DigitsWriteoutBuffer.cxx.
void DigitsWriteoutBuffer::finish | ( | ) |
This is for the readout window that was interrupted by the end of the run.
For the end of the run only write all the remaining digits into the streamer.
Definition at line 170 of file DigitsWriteoutBuffer.cxx.
|
inline |
clear DigitsVectorStream
Definition at line 51 of file DigitsWriteoutBuffer.h.
void DigitsWriteoutBuffer::forwardMarker | ( | o2::InteractionTimeRecord | record, |
bool | trigger | ||
) |
forward the marker for every 100 ns
This is to make the event time multiple of 100s
This is to make the event time multiple of 100s
Definition at line 84 of file DigitsWriteoutBuffer.cxx.
|
inline |
Definition at line 81 of file DigitsWriteoutBuffer.h.
|
inline |
Definition at line 93 of file DigitsWriteoutBuffer.h.
|
inline |
Definition at line 62 of file DigitsWriteoutBuffer.h.
|
inline |
Definition at line 95 of file DigitsWriteoutBuffer.h.
|
inline |
Definition at line 91 of file DigitsWriteoutBuffer.h.
|
inline |
Definition at line 94 of file DigitsWriteoutBuffer.h.
|
inline |
Definition at line 61 of file DigitsWriteoutBuffer.h.
void DigitsWriteoutBuffer::init | ( | ) |
Definition at line 33 of file DigitsWriteoutBuffer.cxx.
|
inline |
Definition at line 64 of file DigitsWriteoutBuffer.h.
|
inline |
Definition at line 63 of file DigitsWriteoutBuffer.h.
|
inline |
Definition at line 68 of file DigitsWriteoutBuffer.h.
void DigitsWriteoutBuffer::reserve | ( | ) |
Reserve space for the future container.
Definition at line 54 of file DigitsWriteoutBuffer.cxx.
Setting the buffer size.
Definition at line 80 of file DigitsWriteoutBuffer.h.
Definition at line 88 of file DigitsWriteoutBuffer.h.
Setters for the live time, busy time, pre-trigger time.
Definition at line 87 of file DigitsWriteoutBuffer.h.
Definition at line 89 of file DigitsWriteoutBuffer.h.
void DigitsWriteoutBuffer::setSampledDigitsTime | ( | ) |
This function sets the right time for all digits in the buffer.
Definition at line 203 of file DigitsWriteoutBuffer.cxx.