![]() |
Project
|
#include <DigitContainer.h>
Public Member Functions | |
DigitContainer () | |
Default constructor. | |
~DigitContainer ()=default | |
Destructor. | |
void | reset () |
Reset the container. | |
void | reserve (TimeBin eventTimeBin) |
Reserve space in the container for a given event. | |
void | setStartTime (TimeBin time) |
void | addDigit (const MCCompLabel &label, const CRU &cru, TimeBin timeBin, GlobalPadNumber globalPad, float signal) |
void | fillOutputContainer (std::vector< Digit > &output, dataformats::MCTruthContainer< MCCompLabel > &mcTruth, std::vector< CommonMode > &commonModeOutput, const Sector §or, TimeBin eventTimeBin=0, bool isContinuous=true, bool finalFlush=false) |
size_t | size () const |
Get the size of the container for one event. | |
This is the base class of the intermediate Digit Containers, in which all incoming electrons from the hits are sorted into after amplification The structure assures proper sorting of the Digits when later on written out for further processing. This class holds the time bin containers.
Definition at line 40 of file DigitContainer.h.
|
inline |
Default constructor.
Definition at line 93 of file DigitContainer.h.
|
default |
Destructor.
|
inline |
Add digit to the container
eventID | MC Event ID |
trackID | MC Track ID |
cru | CRU of the digit |
globalPad | Global pad number of the digit |
timeBin | Time bin of the digit |
signal | Charge of the digit in ADC counts |
Definition at line 127 of file DigitContainer.h.
void DigitContainer::fillOutputContainer | ( | std::vector< Digit > & | output, |
dataformats::MCTruthContainer< MCCompLabel > & | mcTruth, | ||
std::vector< CommonMode > & | commonModeOutput, | ||
const Sector & | sector, | ||
TimeBin | eventTimeBin = 0 , |
||
bool | isContinuous = true , |
||
bool | finalFlush = false |
||
) |
Fill output vector
output | Output container |
mcTruth | MC Truth container |
commonModeOutput | Output container for the common mode |
sector | Sector to be processed |
eventTime | time stamp of the event |
isContinuous | Switch for continuous readout |
finalFlush | Flag whether the whole container is dumped |
the time bins between the last event and the timing of this event are uncorrelated and can be written out OR the readout is triggered (i.e. not continuous) and we can dump everything in any case, as long it is within one drift time interval
Definition at line 27 of file DigitContainer.cxx.
Reserve space in the container for a given event.
Definition at line 119 of file DigitContainer.h.
|
inline |
Reset the container.
Definition at line 105 of file DigitContainer.h.
Set the start time of the first event
time | Time of the first event |
Definition at line 57 of file DigitContainer.h.
|
inline |
Get the size of the container for one event.
Definition at line 79 of file DigitContainer.h.