Project
Loading...
Searching...
No Matches
o2::tof::WindowFiller Class Reference

#include <WindowFiller.h>

Inherited by o2::tof::Digitizer, and o2::tof::compressed::Decoder.

Classes

struct  CrateHeaderData
 
struct  PatternData
 

Public Member Functions

 WindowFiller ()
 
 ~WindowFiller ()=default
 
void initObj ()
 
void reset ()
 
uint64_t getCurrentReadoutWindow () const
 
void setCurrentReadoutWindow (uint64_t value)
 
void setEventTime (InteractionTimeRecord value)
 
std::vector< Digit > * getDigitPerTimeFrame ()
 
std::vector< ReadoutWindowData > * getReadoutWindowData ()
 
std::vector< ReadoutWindowData > * getReadoutWindowDataFiltered ()
 
DigitHeadergetDigitHeader ()
 
template<typename VROF , typename VPAT >
void setReadoutWindowData (const VROF &row, const VPAT &pattern)
 
void setNOrbitInTF (uint32_t norb)
 
void fillOutputContainer (std::vector< Digit > &digits)
 
void flushOutputContainer (std::vector< Digit > &digits)
 
void setContinuous (bool value=true)
 
bool isContinuous () const
 
void fillDiagnosticFrequency ()
 
void resizeVectorFutureDigit (int size)
 
void setFirstIR (const o2::InteractionRecord &ir)
 
void maskNoiseRate (int val)
 
void clearCounts ()
 
std::vector< uint8_t > & getPatterns ()
 
void addPattern (const uint32_t val, int icrate, int orbit, int bc)
 
void addCrateHeaderData (unsigned long orbit, int crate, int32_t bc, uint32_t eventCounter)
 
DiagnosticgetDiagnosticFrequency ()
 
void addCount (int channel)
 

Protected Member Functions

void fillDigitsInStrip (std::vector< Strip > *strips, int channel, int tdc, int tot, uint64_t nbc, UInt_t istrip, uint32_t triggerorbit=0, uint16_t triggerbunch=0)
 
void checkIfReuseFutureDigits ()
 
void checkIfReuseFutureDigitsRO ()
 
void insertDigitInFuture (Int_t channel, Int_t tdc, Int_t tot, uint64_t bc, Int_t label=0, uint32_t triggerorbit=0, uint16_t triggerbunch=0)
 
bool isMergable (Digit digit1, Digit digit2)
 
 ClassDefNV (WindowFiller, 2)
 

Protected Attributes

uint64_t mReadoutWindowCurrent = 0
 
InteractionRecord mFirstIR {0, 0}
 
InteractionTimeRecord mEventTime
 
bool mContinuous = true
 
bool mFutureToBeSorted = false
 
int mMaskNoiseRate = -11
 
int mChannelCounts [o2::tof::Geo::NCHANNELS]
 
std::vector< DigitmDigitsPerTimeFrame
 
std::vector< ReadoutWindowDatamReadoutWindowData
 
std::vector< ReadoutWindowDatamReadoutWindowDataFiltered
 
int mIcurrentReadoutWindow = 0
 
std::vector< StripmStrips [MAXWINDOWS]
 
std::vector< Strip > * mStripsCurrent = &(mStrips[0])
 
std::vector< Strip > * mStripsNext [MAXWINDOWS - 1]
 
std::vector< DigitmFutureDigits
 
std::vector< uint8_t > mPatterns
 
std::vector< uint64_t > mErrors
 
Diagnostic mDiagnosticFrequency
 
std::vector< PatternDatamCratePatterns
 
std::vector< CrateHeaderDatamCrateHeaderData
 
DigitHeader mDigitHeader
 

Static Protected Attributes

static const int MAXWINDOWS = 2
 

Detailed Description

Definition at line 27 of file WindowFiller.h.

Constructor & Destructor Documentation

◆ WindowFiller()

o2::tof::WindowFiller::WindowFiller ( )
inline

Definition at line 45 of file WindowFiller.h.

◆ ~WindowFiller()

o2::tof::WindowFiller::~WindowFiller ( )
default

Member Function Documentation

◆ addCount()

void o2::tof::WindowFiller::addCount ( int  channel)
inline

Definition at line 103 of file WindowFiller.h.

◆ addCrateHeaderData()

void WindowFiller::addCrateHeaderData ( unsigned long  orbit,
int  crate,
int32_t  bc,
uint32_t  eventCounter 
)

Definition at line 116 of file WindowFiller.cxx.

◆ addPattern()

void o2::tof::WindowFiller::addPattern ( const uint32_t  val,
int  icrate,
int  orbit,
int  bc 
)
inline

Definition at line 99 of file WindowFiller.h.

◆ checkIfReuseFutureDigits()

void WindowFiller::checkIfReuseFutureDigits ( )
protected

Definition at line 321 of file WindowFiller.cxx.

◆ checkIfReuseFutureDigitsRO()

void WindowFiller::checkIfReuseFutureDigitsRO ( )
protected

Definition at line 379 of file WindowFiller.cxx.

◆ ClassDefNV()

o2::tof::WindowFiller::ClassDefNV ( WindowFiller  ,
 
)
protected

◆ clearCounts()

void o2::tof::WindowFiller::clearCounts ( )
inline

Definition at line 93 of file WindowFiller.h.

◆ fillDiagnosticFrequency()

void WindowFiller::fillDiagnosticFrequency ( )

Definition at line 449 of file WindowFiller.cxx.

◆ fillDigitsInStrip()

void WindowFiller::fillDigitsInStrip ( std::vector< Strip > *  strips,
int  channel,
int  tdc,
int  tot,
uint64_t  nbc,
UInt_t  istrip,
uint32_t  triggerorbit = 0,
uint16_t  triggerbunch = 0 
)
protected

Definition at line 109 of file WindowFiller.cxx.

◆ fillOutputContainer()

void WindowFiller::fillOutputContainer ( std::vector< Digit > &  digits)

Definition at line 134 of file WindowFiller.cxx.

◆ flushOutputContainer()

void WindowFiller::flushOutputContainer ( std::vector< Digit > &  digits)

Definition at line 274 of file WindowFiller.cxx.

◆ getCurrentReadoutWindow()

uint64_t o2::tof::WindowFiller::getCurrentReadoutWindow ( ) const
inline

Definition at line 52 of file WindowFiller.h.

◆ getDiagnosticFrequency()

Diagnostic & o2::tof::WindowFiller::getDiagnosticFrequency ( )
inline

Definition at line 101 of file WindowFiller.h.

◆ getDigitHeader()

DigitHeader & o2::tof::WindowFiller::getDigitHeader ( )
inline

Definition at line 62 of file WindowFiller.h.

◆ getDigitPerTimeFrame()

std::vector< Digit > * o2::tof::WindowFiller::getDigitPerTimeFrame ( )
inline

Definition at line 59 of file WindowFiller.h.

◆ getPatterns()

std::vector< uint8_t > & o2::tof::WindowFiller::getPatterns ( )
inline

Definition at line 98 of file WindowFiller.h.

◆ getReadoutWindowData()

std::vector< ReadoutWindowData > * o2::tof::WindowFiller::getReadoutWindowData ( )
inline

Definition at line 60 of file WindowFiller.h.

◆ getReadoutWindowDataFiltered()

std::vector< ReadoutWindowData > * o2::tof::WindowFiller::getReadoutWindowDataFiltered ( )
inline

Definition at line 61 of file WindowFiller.h.

◆ initObj()

void WindowFiller::initObj ( )

Definition at line 67 of file WindowFiller.cxx.

◆ insertDigitInFuture()

void o2::tof::WindowFiller::insertDigitInFuture ( Int_t  channel,
Int_t  tdc,
Int_t  tot,
uint64_t  bc,
Int_t  label = 0,
uint32_t  triggerorbit = 0,
uint16_t  triggerbunch = 0 
)
inlineprotected

Definition at line 153 of file WindowFiller.h.

◆ isContinuous()

bool o2::tof::WindowFiller::isContinuous ( ) const
inline

Definition at line 83 of file WindowFiller.h.

◆ isMergable()

bool o2::tof::WindowFiller::isMergable ( Digit  digit1,
Digit  digit2 
)
inlineprotected

Definition at line 159 of file WindowFiller.h.

◆ maskNoiseRate()

void o2::tof::WindowFiller::maskNoiseRate ( int  val)
inline

Definition at line 91 of file WindowFiller.h.

◆ reset()

void WindowFiller::reset ( )

Definition at line 83 of file WindowFiller.cxx.

◆ resizeVectorFutureDigit()

void o2::tof::WindowFiller::resizeVectorFutureDigit ( int  size)
inline

Definition at line 87 of file WindowFiller.h.

◆ setContinuous()

void o2::tof::WindowFiller::setContinuous ( bool  value = true)
inline

Definition at line 82 of file WindowFiller.h.

◆ setCurrentReadoutWindow()

void o2::tof::WindowFiller::setCurrentReadoutWindow ( uint64_t  value)
inline

Definition at line 53 of file WindowFiller.h.

◆ setEventTime()

void o2::tof::WindowFiller::setEventTime ( InteractionTimeRecord  value)
inline

Definition at line 54 of file WindowFiller.h.

◆ setFirstIR()

void o2::tof::WindowFiller::setFirstIR ( const o2::InteractionRecord ir)
inline

Definition at line 89 of file WindowFiller.h.

◆ setNOrbitInTF()

void o2::tof::WindowFiller::setNOrbitInTF ( uint32_t  norb)
inline

Definition at line 79 of file WindowFiller.h.

◆ setReadoutWindowData()

template<typename VROF , typename VPAT >
void o2::tof::WindowFiller::setReadoutWindowData ( const VROF &  row,
const VPAT &  pattern 
)
inline

Definition at line 65 of file WindowFiller.h.

Member Data Documentation

◆ MAXWINDOWS

const int o2::tof::WindowFiller::MAXWINDOWS = 2
staticprotected

Definition at line 121 of file WindowFiller.h.

◆ mChannelCounts

int o2::tof::WindowFiller::mChannelCounts[o2::tof::Geo::NCHANNELS]
protected

Definition at line 116 of file WindowFiller.h.

◆ mContinuous

bool o2::tof::WindowFiller::mContinuous = true
protected

Definition at line 111 of file WindowFiller.h.

◆ mCrateHeaderData

std::vector<CrateHeaderData> o2::tof::WindowFiller::mCrateHeaderData
protected

Definition at line 143 of file WindowFiller.h.

◆ mCratePatterns

std::vector<PatternData> o2::tof::WindowFiller::mCratePatterns
protected

Definition at line 142 of file WindowFiller.h.

◆ mDiagnosticFrequency

Diagnostic o2::tof::WindowFiller::mDiagnosticFrequency
protected

Definition at line 140 of file WindowFiller.h.

◆ mDigitHeader

DigitHeader o2::tof::WindowFiller::mDigitHeader
protected

Definition at line 145 of file WindowFiller.h.

◆ mDigitsPerTimeFrame

std::vector<Digit> o2::tof::WindowFiller::mDigitsPerTimeFrame
protected

Definition at line 123 of file WindowFiller.h.

◆ mErrors

std::vector<uint64_t> o2::tof::WindowFiller::mErrors
protected

Definition at line 138 of file WindowFiller.h.

◆ mEventTime

InteractionTimeRecord o2::tof::WindowFiller::mEventTime
protected

Definition at line 109 of file WindowFiller.h.

◆ mFirstIR

InteractionRecord o2::tof::WindowFiller::mFirstIR {0, 0}
protected

Definition at line 108 of file WindowFiller.h.

◆ mFutureDigits

std::vector<Digit> o2::tof::WindowFiller::mFutureDigits
protected

Definition at line 135 of file WindowFiller.h.

◆ mFutureToBeSorted

bool o2::tof::WindowFiller::mFutureToBeSorted = false
protected

Definition at line 112 of file WindowFiller.h.

◆ mIcurrentReadoutWindow

int o2::tof::WindowFiller::mIcurrentReadoutWindow = 0
protected

Definition at line 127 of file WindowFiller.h.

◆ mMaskNoiseRate

int o2::tof::WindowFiller::mMaskNoiseRate = -11
protected

Definition at line 115 of file WindowFiller.h.

◆ mPatterns

std::vector<uint8_t> o2::tof::WindowFiller::mPatterns
protected

Definition at line 137 of file WindowFiller.h.

◆ mReadoutWindowCurrent

uint64_t o2::tof::WindowFiller::mReadoutWindowCurrent = 0
protected

Definition at line 107 of file WindowFiller.h.

◆ mReadoutWindowData

std::vector<ReadoutWindowData> o2::tof::WindowFiller::mReadoutWindowData
protected

Definition at line 124 of file WindowFiller.h.

◆ mReadoutWindowDataFiltered

std::vector<ReadoutWindowData> o2::tof::WindowFiller::mReadoutWindowDataFiltered
protected

Definition at line 125 of file WindowFiller.h.

◆ mStrips

std::vector<Strip> o2::tof::WindowFiller::mStrips[MAXWINDOWS]
protected

Definition at line 130 of file WindowFiller.h.

◆ mStripsCurrent

std::vector<Strip>* o2::tof::WindowFiller::mStripsCurrent = &(mStrips[0])
protected

Definition at line 131 of file WindowFiller.h.

◆ mStripsNext

std::vector<Strip>* o2::tof::WindowFiller::mStripsNext[MAXWINDOWS - 1]
protected

Definition at line 132 of file WindowFiller.h.


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