Project
Loading...
Searching...
No Matches
o2::emcal::DigitsVectorStream Class Reference

Container class for Digits, MC lebels, and trigger records. More...

#include <DigitsVectorStream.h>

Public Member Functions

 DigitsVectorStream ()=default
 Default constructor.
 
 ~DigitsVectorStream ()=default
 Destructor.
 
void clear ()
 clear the container
 
void init ()
 Initialize the streamer.
 
void fill (std::deque< o2::emcal::DigitTimebin > &digitlist, o2::InteractionRecord record)
 Fill all the containers, digits, labels, and trigger records.
 
const std::vector< o2::emcal::Digit > & getDigits () const
 Getters for the finals data vectors, digits vector, labels vector, and trigger records vector.
 
const std::vector< o2::emcal::TriggerRecord > & getTriggerRecords () const
 
const o2::dataformats::MCTruthContainer< o2::emcal::MCLabel > & getMCLabels () const
 
void doSimulateNoiseDigits (bool doNoise=true)
 Flag whether to simulate noise to the digits.
 
void addNoiseDigits (LabeledDigit &d1)
 Add noise to this digit.
 
void doRemoveDigitsBelowThreshold (bool doThreshold=true)
 Remove digits below the threshold.
 

Detailed Description

Container class for Digits, MC lebels, and trigger records.

Author
Hadi Hassan, ORNL
Markus Fasel, ORNL
Date
16/02/2022

Definition at line 42 of file DigitsVectorStream.h.

Constructor & Destructor Documentation

◆ DigitsVectorStream()

o2::emcal::DigitsVectorStream::DigitsVectorStream ( )
default

Default constructor.

◆ ~DigitsVectorStream()

o2::emcal::DigitsVectorStream::~DigitsVectorStream ( )
default

Destructor.

Member Function Documentation

◆ addNoiseDigits()

void DigitsVectorStream::addNoiseDigits ( LabeledDigit d1)

Add noise to this digit.

Definition at line 40 of file DigitsVectorStream.cxx.

◆ clear()

void DigitsVectorStream::clear ( )

clear the container

Definition at line 131 of file DigitsVectorStream.cxx.

◆ doRemoveDigitsBelowThreshold()

void o2::emcal::DigitsVectorStream::doRemoveDigitsBelowThreshold ( bool  doThreshold = true)
inline

Remove digits below the threshold.

Definition at line 72 of file DigitsVectorStream.h.

◆ doSimulateNoiseDigits()

void o2::emcal::DigitsVectorStream::doSimulateNoiseDigits ( bool  doNoise = true)
inline

Flag whether to simulate noise to the digits.

Definition at line 67 of file DigitsVectorStream.h.

◆ fill()

void DigitsVectorStream::fill ( std::deque< o2::emcal::DigitTimebin > &  digitlist,
o2::InteractionRecord  record 
)

Fill all the containers, digits, labels, and trigger records.

Definition at line 55 of file DigitsVectorStream.cxx.

◆ getDigits()

const std::vector< o2::emcal::Digit > & o2::emcal::DigitsVectorStream::getDigits ( ) const
inline

Getters for the finals data vectors, digits vector, labels vector, and trigger records vector.

Definition at line 62 of file DigitsVectorStream.h.

◆ getMCLabels()

const o2::dataformats::MCTruthContainer< o2::emcal::MCLabel > & o2::emcal::DigitsVectorStream::getMCLabels ( ) const
inline

Definition at line 64 of file DigitsVectorStream.h.

◆ getTriggerRecords()

const std::vector< o2::emcal::TriggerRecord > & o2::emcal::DigitsVectorStream::getTriggerRecords ( ) const
inline

Definition at line 63 of file DigitsVectorStream.h.

◆ init()

void DigitsVectorStream::init ( )

Initialize the streamer.

Definition at line 26 of file DigitsVectorStream.cxx.


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