12#ifndef ALICEO2_EMCAL_DIGITSVECTORSTREAM_H_
13#define ALICEO2_EMCAL_DIGITSVECTORSTREAM_H_
16#include <unordered_map>
62 const std::vector<o2::emcal::Digit>&
getDigits()
const {
return mDigits; }
63 const std::vector<o2::emcal::TriggerRecord>&
getTriggerRecords()
const {
return mTriggerRecords; }
75 unsigned int mStartIndex = 0;
77 std::vector<o2::emcal::Digit> mDigits;
79 std::vector<o2::emcal::TriggerRecord> mTriggerRecords;
81 bool mSimulateNoiseDigits =
true;
82 bool mRemoveDigitsBelowThreshold =
true;
85 TRandom3* mRandomGenerator =
nullptr;
EMCAL DigitTimebin for the DigitsWriteoutBuffer and DigitsWriteoutBufferTRU.
Definition of a container to keep Monte Carlo truth external to simulation objects.
Container class for Digits, MC lebels, and trigger records.
DigitsVectorStream()=default
Default constructor.
void doSimulateNoiseDigits(bool doNoise=true)
Flag whether to simulate noise to the digits.
void init()
Initialize the streamer.
void clear()
clear the container
const std::vector< o2::emcal::Digit > & getDigits() const
Getters for the finals data vectors, digits vector, labels vector, and trigger records vector.
void addNoiseDigits(LabeledDigit &d1)
Add noise to this digit.
const o2::dataformats::MCTruthContainer< o2::emcal::MCLabel > & getMCLabels() const
const std::vector< o2::emcal::TriggerRecord > & getTriggerRecords() const
void fill(std::deque< o2::emcal::DigitTimebin > &digitlist, o2::InteractionRecord record)
Fill all the containers, digits, labels, and trigger records.
void doRemoveDigitsBelowThreshold(bool doThreshold=true)
Remove digits below the threshold.
~DigitsVectorStream()=default
Destructor.
EMCAL labeled digit implementation.
EMCal simulation parameters.
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...