30#ifndef ALICEO2_EMCAL_DIGITSWRITEOUTBUFFERTRU_H_
31#define ALICEO2_EMCAL_DIGITSWRITEOUTBUFFERTRU_H_
34#include <unordered_map>
89 void addDigits(
unsigned int towerID, std::vector<o2::emcal::Digit>& digList);
97 void setLiveTime(
unsigned int liveTime) { mLiveTime = liveTime; }
98 void setBusyTime(
unsigned int busyTime) { mBusyTime = busyTime; }
100 const std::deque<o2::emcal::DigitTimebinTRU>&
getTimeBins()
const {
return mTimeBins; }
103 unsigned int mBufferSize = 15;
104 unsigned int mLiveTime = 1500;
105 unsigned int mBusyTime = 35000;
107 unsigned long mTriggerTime = 0;
108 unsigned long mLastEventTime = 0;
109 unsigned int mPhase = 0;
110 bool mFirstEvent =
true;
111 std::deque<o2::emcal::DigitTimebinTRU> mTimeBins;
112 unsigned int mFirstTimeBin = 0;
114 bool mNoPileupMode =
false;
EMCAL DigitTimebin for the DigitsWriteoutBuffer and DigitsWriteoutBufferTRU.
Container class for time sampled digits to be sent to TRUs in true continuous readout.
void setBusyTime(unsigned int busyTime)
~DigitsWriteoutBufferTRU()=default
Destructor.
void addDigits(unsigned int towerID, std::vector< o2::emcal::Digit > &digList)
void setLiveTime(unsigned int liveTime)
Setters for the live time, busy time, pre-trigger time.
const std::deque< o2::emcal::DigitTimebinTRU > & getTimeBins() const
void flush()
clear DigitsVectorStream
void finish()
This is for the readout window that was interrupted by the end of the run.
void clear()
clear the container
void reserve(int eventTimeBin)
void fillOutputContainer(bool isEndOfTimeFrame, InteractionRecord &nextInteractionRecord, std::vector< TRUElectronics > &patchesFromAllTRUs, LZEROElectronics &LZERO)
Container class for Digits, MC lebels, and trigger records.
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...