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

Container class for time sampled digits to be sent to TRUs in true continuous readout. More...

#include <DigitsWriteoutBufferTRU.h>

Public Member Functions

 DigitsWriteoutBufferTRU (unsigned int nTimeBins=15)
 Default constructor.
 
 ~DigitsWriteoutBufferTRU ()=default
 Destructor.
 
void clear ()
 clear the container
 
void flush ()
 clear DigitsVectorStream
 
void init ()
 
void reserve (int eventTimeBin)
 
void finish ()
 This is for the readout window that was interrupted by the end of the run.
 
void addDigits (unsigned int towerID, std::vector< o2::emcal::Digit > &digList)
 
void fillOutputContainer (bool isEndOfTimeFrame, InteractionRecord &nextInteractionRecord, std::vector< TRUElectronics > &patchesFromAllTRUs, LZEROElectronics &LZERO)
 
void setLiveTime (unsigned int liveTime)
 Setters for the live time, busy time, pre-trigger time.
 
void setBusyTime (unsigned int busyTime)
 
const std::deque< o2::emcal::DigitTimebinTRU > & getTimeBins () const
 

Detailed Description

Container class for time sampled digits to be sent to TRUs in true continuous readout.

Author
Hadi Hassan, ORNL
Markus Fasel, ORNL
Simone Ragoni, ORNL
Date
27/09/2022

Definition at line 59 of file DigitsWriteoutBufferTRU.h.

Constructor & Destructor Documentation

◆ DigitsWriteoutBufferTRU()

DigitsWriteoutBufferTRU::DigitsWriteoutBufferTRU ( unsigned int  nTimeBins = 15)

Default constructor.

Definition at line 104 of file DigitsWriteoutBufferTRU.cxx.

◆ ~DigitsWriteoutBufferTRU()

o2::emcal::DigitsWriteoutBufferTRU::~DigitsWriteoutBufferTRU ( )
default

Destructor.

Member Function Documentation

◆ addDigits()

void DigitsWriteoutBufferTRU::addDigits ( unsigned int  towerID,
std::vector< o2::emcal::Digit > &  digList 
)

Add digit to the container

Parameters
towerIDCell ID
digLabaled digit to add

Definition at line 145 of file DigitsWriteoutBufferTRU.cxx.

◆ clear()

void DigitsWriteoutBufferTRU::clear ( )

clear the container

Definition at line 132 of file DigitsWriteoutBufferTRU.cxx.

◆ fillOutputContainer()

void DigitsWriteoutBufferTRU::fillOutputContainer ( bool  isEndOfTimeFrame,
InteractionRecord nextInteractionRecord,
std::vector< TRUElectronics > &  patchesFromAllTRUs,
LZEROElectronics LZERO 
)

Fill output streamer

Parameters
isEndOfTimeFrameEnd of Time Frame
nextInteractionRecordNext interaction record, to compute the amount of TimeBins to be saved

Definition at line 28 of file DigitsWriteoutBufferTRU.cxx.

◆ finish()

void DigitsWriteoutBufferTRU::finish ( )

This is for the readout window that was interrupted by the end of the run.

Definition at line 139 of file DigitsWriteoutBufferTRU.cxx.

◆ flush()

void o2::emcal::DigitsWriteoutBufferTRU::flush ( )
inline

clear DigitsVectorStream

Definition at line 72 of file DigitsWriteoutBufferTRU.h.

◆ getTimeBins()

const std::deque< o2::emcal::DigitTimebinTRU > & o2::emcal::DigitsWriteoutBufferTRU::getTimeBins ( ) const
inline

Definition at line 100 of file DigitsWriteoutBufferTRU.h.

◆ init()

void DigitsWriteoutBufferTRU::init ( )

Definition at line 120 of file DigitsWriteoutBufferTRU.cxx.

◆ reserve()

void DigitsWriteoutBufferTRU::reserve ( int  eventTimeBin)

Reserve space for the future container

Parameters
eventTimeBinresize adding at the end

Definition at line 112 of file DigitsWriteoutBufferTRU.cxx.

◆ setBusyTime()

void o2::emcal::DigitsWriteoutBufferTRU::setBusyTime ( unsigned int  busyTime)
inline

Definition at line 98 of file DigitsWriteoutBufferTRU.h.

◆ setLiveTime()

void o2::emcal::DigitsWriteoutBufferTRU::setLiveTime ( unsigned int  liveTime)
inline

Setters for the live time, busy time, pre-trigger time.

Definition at line 97 of file DigitsWriteoutBufferTRU.h.


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