Project
Loading...
Searching...
No Matches
o2::tpc::DigitContainer Class Reference

#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 &sector, TimeBin eventTimeBin=0, bool isContinuous=true, bool finalFlush=false)
 
size_t size () const
 Get the size of the container for one event.
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ DigitContainer()

o2::tpc::DigitContainer::DigitContainer ( )
inline

Default constructor.

Definition at line 93 of file DigitContainer.h.

◆ ~DigitContainer()

o2::tpc::DigitContainer::~DigitContainer ( )
default

Destructor.

Member Function Documentation

◆ addDigit()

void o2::tpc::DigitContainer::addDigit ( const MCCompLabel label,
const CRU cru,
TimeBin  timeBin,
GlobalPadNumber  globalPad,
float  signal 
)
inline

Add digit to the container

Parameters
eventIDMC Event ID
trackIDMC Track ID
cruCRU of the digit
globalPadGlobal pad number of the digit
timeBinTime bin of the digit
signalCharge of the digit in ADC counts

Definition at line 127 of file DigitContainer.h.

◆ fillOutputContainer()

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

Parameters
outputOutput container
mcTruthMC Truth container
commonModeOutputOutput container for the common mode
sectorSector to be processed
eventTimetime stamp of the event
isContinuousSwitch for continuous readout
finalFlushFlag 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()

void o2::tpc::DigitContainer::reserve ( TimeBin  eventTimeBin)
inline

Reserve space in the container for a given event.

Definition at line 119 of file DigitContainer.h.

◆ reset()

void o2::tpc::DigitContainer::reset ( )
inline

Reset the container.

Definition at line 105 of file DigitContainer.h.

◆ setStartTime()

void o2::tpc::DigitContainer::setStartTime ( TimeBin  time)
inline

Set the start time of the first event

Parameters
timeTime of the first event

Definition at line 57 of file DigitContainer.h.

◆ size()

size_t o2::tpc::DigitContainer::size ( ) const
inline

Get the size of the container for one event.

Definition at line 79 of file DigitContainer.h.


The documentation for this class was generated from the following files: