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

Container for FastOR time series. More...

#include <FastORTimeSeries.h>

Public Member Functions

 FastORTimeSeries ()=default
 Dummy constructor.
 
 FastORTimeSeries (int maxsamples, const gsl::span< const uint16_t > timesamples, uint8_t starttime)
 Construcor.
 
 ~FastORTimeSeries ()=default
 Destructor.
 
void setTimeSamples (const gsl::span< const uint16_t > timesamples, uint8_t starttime)
 
uint16_t calculateL1TimeSum (uint8_t l0time) const
 Calculate L0 timesum (4-integral of the ADC series) with respect to a given L0 time.
 
const gsl::span< const uint16_t > getADCs () const
 Access raw ADC values (in forward time order)
 
void clear ()
 Clear ADC samples in the time series.
 

Detailed Description

Container for FastOR time series.

Author
Markus Fasel marku.nosp@m.s.fa.nosp@m.sel@c.nosp@m.ern..nosp@m.ch, Oak Ridge National Laboratory
Since
April 19, 2024

Time series are encoded in bunches in the raw data, which are usually time-reversed. The FastORTimeSeries handles the time series of all bunches in the readout window, in proper future-direction time order, correcting the time-reversal from the Fake-ALTRO. Consequently the ADC samples are expected in time-reversed format. The function calculateL1TimeSum calculates the timesum of the timeseries as 4-integral with respect to a given L0 time, which is expected at the end of the time integration range.

Definition at line 33 of file FastORTimeSeries.h.

Constructor & Destructor Documentation

◆ FastORTimeSeries() [1/2]

o2::emcal::FastORTimeSeries::FastORTimeSeries ( )
default

Dummy constructor.

◆ FastORTimeSeries() [2/2]

o2::emcal::FastORTimeSeries::FastORTimeSeries ( int  maxsamples,
const gsl::span< const uint16_t >  timesamples,
uint8_t  starttime 
)
inline

Construcor.

Parameters
maxsamplesMaximum number of time samples
timesamplesTime-reversed raw ADC samples
starttimeStart time

Definition at line 43 of file FastORTimeSeries.h.

◆ ~FastORTimeSeries()

o2::emcal::FastORTimeSeries::~FastORTimeSeries ( )
default

Destructor.

Member Function Documentation

◆ calculateL1TimeSum()

uint16_t FastORTimeSeries::calculateL1TimeSum ( uint8_t  l0time) const

Calculate L0 timesum (4-integral of the ADC series) with respect to a given L0 time.

Parameters
l0timeL0 time (end of the time series)
Returns
Timesum of the time series

Definition at line 32 of file FastORTimeSeries.cxx.

◆ clear()

void FastORTimeSeries::clear ( )

Clear ADC samples in the time series.

Definition at line 47 of file FastORTimeSeries.cxx.

◆ getADCs()

const gsl::span< const uint16_t > o2::emcal::FastORTimeSeries::getADCs ( ) const
inline

Access raw ADC values (in forward time order)

Returns
ADC values of the time series in forward time order

Definition at line 61 of file FastORTimeSeries.h.

◆ setTimeSamples()

void o2::emcal::FastORTimeSeries::setTimeSamples ( const gsl::span< const uint16_t >  timesamples,
uint8_t  starttime 
)
inline

Definition at line 52 of file FastORTimeSeries.h.


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