![]() |
Project
|
#include <DigitContainer.h>
Public Member Functions | |
| DigitContainer () | |
| Default constructor. | |
| ~DigitContainer () | |
| Destructor. | |
| DigitContainer (const DigitContainer &)=delete | |
| DigitContainer & | operator= (const DigitContainer &)=delete |
| 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. | |
| void | setSAMPAProcessing (SAMPAProcessing *sampaProcessing) |
| Use this SAMPAProcessing instead of the singleton when filling the output. | |
| void | updateCalibrations () |
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 42 of file DigitContainer.h.
|
inline |
Default constructor.
Definition at line 117 of file DigitContainer.h.
|
inline |
Destructor.
Definition at line 49 of file DigitContainer.h.
|
delete |
|
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 151 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 29 of file DigitContainer.cxx.
|
delete |
Reserve space in the container for a given event.
Definition at line 143 of file DigitContainer.h.
|
inline |
Reset the container.
Definition at line 129 of file DigitContainer.h.
|
inline |
Use this SAMPAProcessing instead of the singleton when filling the output.
Definition at line 92 of file DigitContainer.h.
Set the start time of the first event
| time | Time of the first event |
Definition at line 67 of file DigitContainer.h.
|
inline |
Get the size of the container for one event.
Definition at line 89 of file DigitContainer.h.
| void DigitContainer::updateCalibrations | ( | ) |
Fetch the calibration objects used by fillOutputContainer from the CDBInterface Must be called after the CDBInterface is configured; fillOutputContainer calls it lazily otherwise
Definition at line 136 of file DigitContainer.cxx.