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

#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 &sector, 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 ()
 

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 42 of file DigitContainer.h.

Constructor & Destructor Documentation

◆ DigitContainer() [1/2]

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

Default constructor.

Definition at line 117 of file DigitContainer.h.

◆ ~DigitContainer()

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

Destructor.

Definition at line 49 of file DigitContainer.h.

◆ DigitContainer() [2/2]

o2::tpc::DigitContainer::DigitContainer ( const DigitContainer &  )
delete

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 151 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 29 of file DigitContainer.cxx.

◆ operator=()

DigitContainer & o2::tpc::DigitContainer::operator= ( const DigitContainer &  )
delete

◆ reserve()

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

Reserve space in the container for a given event.

Definition at line 143 of file DigitContainer.h.

◆ reset()

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

Reset the container.

Definition at line 129 of file DigitContainer.h.

◆ setSAMPAProcessing()

void o2::tpc::DigitContainer::setSAMPAProcessing ( SAMPAProcessing *  sampaProcessing)
inline

Use this SAMPAProcessing instead of the singleton when filling the output.

Definition at line 92 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 67 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 89 of file DigitContainer.h.

◆ updateCalibrations()

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.


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