Project
Loading...
Searching...
No Matches
o2::calibration::TimeSlotCalibration< Container > Class Template Referenceabstract

#include <TimeSlotCalibration.h>

Classes

struct  has_fill_method
 
struct  has_fill_method< C, Ret(Args...)>
 

Public Types

using Slot = TimeSlot< Container >
 
using TFType = o2::calibration::TFType
 

Public Member Functions

 TimeSlotCalibration ()=default
 
virtual ~TimeSlotCalibration ()=default
 
float getMaxSlotsDelay () const
 
void setMaxSlotsDelay (float v)
 
TFType getSlotLength () const
 
void setSlotLength (TFType v)
 
TFType getCheckIntervalInfiniteSlot () const
 
void setCheckIntervalInfiniteSlot (TFType v)
 
TFType getCheckDeltaIntervalInfiniteSlot () const
 
void setCheckDeltaIntervalInfiniteSlot (TFType v)
 
TFType getFirstTF () const
 
void setFirstTF (TFType v)
 
void setSlotLengthInSeconds (int s)
 
void setSlotLengthInOrbits (int n)
 
void checkSlotLength ()
 
void setStartOffsetFrac (float f)
 
void setFinalizeWhenReady ()
 
void setUpdateAtTheEndOfRunOnly ()
 
int getNSlots () const
 
SlotgetSlotForTF (TFType tf)
 
SlotgetSlot (int i)
 
const SlotgetSlot (int i) const
 
const SlotgetLastSlot () const
 
const SlotgetFirstSlot () const
 
template<typename... DATA>
bool process (const DATA &... data)
 
virtual void checkSlotsToFinalize (TFType tf=INFINITE_TF, int maxDelay=0)
 
virtual void finalizeOldestSlot ()
 
virtual void reset ()
 
virtual void initOutput ()=0
 
virtual void finalizeSlot (Slot &slot)=0
 
virtual SlotemplaceNewSlot (bool front, TFType tstart, TFType tend)=0
 
virtual bool hasEnoughData (const Slot &slot) const =0
 
virtual void print () const
 
const o2::dataformats::TFIDInfogetCurrentTFInfo () const
 
o2::dataformats::TFIDInfogetCurrentTFInfo ()
 
bool getSavedSlotAllowed () const
 
void setSavedSlotAllowed (bool v)
 
std::string getSaveFilePath () const
 
const std::string & getSaveFileName () const
 
void setSaveFileName (const std::string &n)
 
void setSaveDirectory (const std::string &n)
 
virtual bool updateSaveMetaData ()
 
virtual bool saveLastSlotData (TFile &fl)
 
virtual bool adoptSavedData (const TimeSlotMetaData &metadata, TFile &fl)
 
virtual bool loadSavedSlot ()
 
virtual bool saveLastSlot ()
 

Static Public Attributes

static constexpr TFType INFINITE_TF = o2::calibration::INFINITE_TF
 

Protected Member Functions

auto & getSlots ()
 
uint32_t getRunStartOrbit () const
 
TFType tf2SlotMin (TFType tf) const
 
 ClassDef (TimeSlotCalibration, 1)
 

Protected Attributes

std::deque< SlotmSlots
 
o2::dataformats::TFIDInfo mCurrentTFInfo {}
 
int mSlotLengthInSeconds = -1
 
int mSlotLengthInOrbits = -1
 
TFType mLastClosedTF = 0
 
TFType mFirstTF = 0
 
TFType mMaxSeenTF = 0
 
TFType mSlotLength = 1
 
TFType mStartOffsetTFs = 0
 
float mStartOffsetFrac = 0.
 
TFType mCheckIntervalInfiniteSlot = 1
 
TFType mLastCheckedTFInfiniteSlot = 0
 
TFType mCheckDeltaIntervalInfiniteSlot = 1
 
float mMaxSlotsDelay = 3.0
 
bool mWasCheckedInfiniteSlot = false
 
bool mUpdateAtTheEndOfRunOnly = false
 
bool mFinalizeWhenReady = false
 
std::string mSaveDirectory = ""
 
std::string mSaveFileName = ""
 
TimeSlotMetaData mSaveMetaData {}
 
bool mSavedSlotAllowed = false
 

Detailed Description

template<typename Container>
class o2::calibration::TimeSlotCalibration< Container >

Definition at line 40 of file TimeSlotCalibration.h.

Member Typedef Documentation

◆ Slot

template<typename Container >
using o2::calibration::TimeSlotCalibration< Container >::Slot = TimeSlot<Container>

Definition at line 43 of file TimeSlotCalibration.h.

◆ TFType

template<typename Container >
using o2::calibration::TimeSlotCalibration< Container >::TFType = o2::calibration::TFType

Definition at line 44 of file TimeSlotCalibration.h.

Constructor & Destructor Documentation

◆ TimeSlotCalibration()

template<typename Container >
o2::calibration::TimeSlotCalibration< Container >::TimeSlotCalibration ( )
default

◆ ~TimeSlotCalibration()

template<typename Container >
virtual o2::calibration::TimeSlotCalibration< Container >::~TimeSlotCalibration ( )
virtualdefault

Member Function Documentation

◆ adoptSavedData()

template<typename Container >
virtual bool o2::calibration::TimeSlotCalibration< Container >::adoptSavedData ( const TimeSlotMetaData metadata,
TFile &  fl 
)
inlinevirtual

◆ checkSlotLength()

template<typename Container >
void o2::calibration::TimeSlotCalibration< Container >::checkSlotLength ( )
inline

Definition at line 74 of file TimeSlotCalibration.h.

◆ checkSlotsToFinalize()

template<typename Container >
void o2::calibration::TimeSlotCalibration< Container >::checkSlotsToFinalize ( TFType  tf = INFINITE_TF,
int  maxDelay = 0 
)
virtual

Definition at line 323 of file TimeSlotCalibration.h.

◆ ClassDef()

template<typename Container >
o2::calibration::TimeSlotCalibration< Container >::ClassDef ( TimeSlotCalibration< Container >  ,
 
)
protected

◆ emplaceNewSlot()

◆ finalizeOldestSlot()

template<typename Container >
void o2::calibration::TimeSlotCalibration< Container >::finalizeOldestSlot ( )
virtual

Definition at line 392 of file TimeSlotCalibration.h.

◆ finalizeSlot()

◆ getCheckDeltaIntervalInfiniteSlot()

template<typename Container >
TFType o2::calibration::TimeSlotCalibration< Container >::getCheckDeltaIntervalInfiniteSlot ( ) const
inline

Definition at line 66 of file TimeSlotCalibration.h.

◆ getCheckIntervalInfiniteSlot()

template<typename Container >
TFType o2::calibration::TimeSlotCalibration< Container >::getCheckIntervalInfiniteSlot ( ) const
inline

Definition at line 63 of file TimeSlotCalibration.h.

◆ getCurrentTFInfo() [1/2]

template<typename Container >
o2::dataformats::TFIDInfo & o2::calibration::TimeSlotCalibration< Container >::getCurrentTFInfo ( )
inline

Definition at line 160 of file TimeSlotCalibration.h.

◆ getCurrentTFInfo() [2/2]

template<typename Container >
const o2::dataformats::TFIDInfo & o2::calibration::TimeSlotCalibration< Container >::getCurrentTFInfo ( ) const
inline

Definition at line 159 of file TimeSlotCalibration.h.

◆ getFirstSlot()

template<typename Container >
const Slot & o2::calibration::TimeSlotCalibration< Container >::getFirstSlot ( ) const
inline

Definition at line 128 of file TimeSlotCalibration.h.

◆ getFirstTF()

template<typename Container >
TFType o2::calibration::TimeSlotCalibration< Container >::getFirstTF ( ) const
inline

Definition at line 69 of file TimeSlotCalibration.h.

◆ getLastSlot()

template<typename Container >
const Slot & o2::calibration::TimeSlotCalibration< Container >::getLastSlot ( ) const
inline

Definition at line 127 of file TimeSlotCalibration.h.

◆ getMaxSlotsDelay()

template<typename Container >
float o2::calibration::TimeSlotCalibration< Container >::getMaxSlotsDelay ( ) const
inline

Definition at line 50 of file TimeSlotCalibration.h.

◆ getNSlots()

template<typename Container >
int o2::calibration::TimeSlotCalibration< Container >::getNSlots ( ) const
inline

Definition at line 123 of file TimeSlotCalibration.h.

◆ getRunStartOrbit()

template<typename Container >
uint32_t o2::calibration::TimeSlotCalibration< Container >::getRunStartOrbit ( ) const
inlineprotected

Definition at line 218 of file TimeSlotCalibration.h.

◆ getSavedSlotAllowed()

template<typename Container >
bool o2::calibration::TimeSlotCalibration< Container >::getSavedSlotAllowed ( ) const
inline

Definition at line 191 of file TimeSlotCalibration.h.

◆ getSaveFileName()

template<typename Container >
const std::string & o2::calibration::TimeSlotCalibration< Container >::getSaveFileName ( ) const
inline

Definition at line 194 of file TimeSlotCalibration.h.

◆ getSaveFilePath()

template<typename Container >
std::string o2::calibration::TimeSlotCalibration< Container >::getSaveFilePath ( ) const

Definition at line 589 of file TimeSlotCalibration.h.

◆ getSlot() [1/2]

template<typename Container >
Slot & o2::calibration::TimeSlotCalibration< Container >::getSlot ( int  i)
inline

Definition at line 125 of file TimeSlotCalibration.h.

◆ getSlot() [2/2]

template<typename Container >
const Slot & o2::calibration::TimeSlotCalibration< Container >::getSlot ( int  i) const
inline

Definition at line 126 of file TimeSlotCalibration.h.

◆ getSlotForTF()

template<typename Container >
TimeSlot< Container > & o2::calibration::TimeSlotCalibration< Container >::getSlotForTF ( TFType  tf)

Definition at line 427 of file TimeSlotCalibration.h.

◆ getSlotLength()

template<typename Container >
TFType o2::calibration::TimeSlotCalibration< Container >::getSlotLength ( ) const
inline

Definition at line 53 of file TimeSlotCalibration.h.

◆ getSlots()

template<typename Container >
auto & o2::calibration::TimeSlotCalibration< Container >::getSlots ( )
inlineprotected

Definition at line 217 of file TimeSlotCalibration.h.

◆ hasEnoughData()

◆ initOutput()

◆ loadSavedSlot()

template<typename Container >
bool o2::calibration::TimeSlotCalibration< Container >::loadSavedSlot ( )
virtual

Definition at line 555 of file TimeSlotCalibration.h.

◆ print()

template<typename Container >
void o2::calibration::TimeSlotCalibration< Container >::print ( ) const
virtual

Definition at line 485 of file TimeSlotCalibration.h.

◆ process()

template<typename Container >
template<typename... DATA>
bool o2::calibration::TimeSlotCalibration< Container >::process ( const DATA &...  data)

Definition at line 282 of file TimeSlotCalibration.h.

◆ reset()

template<typename Container >
virtual void o2::calibration::TimeSlotCalibration< Container >::reset ( )
inlinevirtual

Definition at line 135 of file TimeSlotCalibration.h.

◆ saveLastSlot()

template<typename Container >
bool o2::calibration::TimeSlotCalibration< Container >::saveLastSlot ( )
virtual

Definition at line 514 of file TimeSlotCalibration.h.

◆ saveLastSlotData()

template<typename Container >
virtual bool o2::calibration::TimeSlotCalibration< Container >::saveLastSlotData ( TFile &  fl)
inlinevirtual

◆ setCheckDeltaIntervalInfiniteSlot()

template<typename Container >
void o2::calibration::TimeSlotCalibration< Container >::setCheckDeltaIntervalInfiniteSlot ( TFType  v)
inline

Definition at line 67 of file TimeSlotCalibration.h.

◆ setCheckIntervalInfiniteSlot()

template<typename Container >
void o2::calibration::TimeSlotCalibration< Container >::setCheckIntervalInfiniteSlot ( TFType  v)
inline

Definition at line 64 of file TimeSlotCalibration.h.

◆ setFinalizeWhenReady()

template<typename Container >
void o2::calibration::TimeSlotCalibration< Container >::setFinalizeWhenReady ( )
inline

Definition at line 114 of file TimeSlotCalibration.h.

◆ setFirstTF()

template<typename Container >
void o2::calibration::TimeSlotCalibration< Container >::setFirstTF ( TFType  v)
inline

Definition at line 70 of file TimeSlotCalibration.h.

◆ setMaxSlotsDelay()

template<typename Container >
void o2::calibration::TimeSlotCalibration< Container >::setMaxSlotsDelay ( float  v)
inline

Definition at line 51 of file TimeSlotCalibration.h.

◆ setSaveDirectory()

template<typename Container >
void o2::calibration::TimeSlotCalibration< Container >::setSaveDirectory ( const std::string &  n)
inline

Definition at line 196 of file TimeSlotCalibration.h.

◆ setSavedSlotAllowed()

template<typename Container >
void o2::calibration::TimeSlotCalibration< Container >::setSavedSlotAllowed ( bool  v)
inline

Definition at line 192 of file TimeSlotCalibration.h.

◆ setSaveFileName()

template<typename Container >
void o2::calibration::TimeSlotCalibration< Container >::setSaveFileName ( const std::string &  n)
inline

Definition at line 195 of file TimeSlotCalibration.h.

◆ setSlotLength()

template<typename Container >
void o2::calibration::TimeSlotCalibration< Container >::setSlotLength ( TFType  v)
inline

Definition at line 54 of file TimeSlotCalibration.h.

◆ setSlotLengthInOrbits()

template<typename Container >
void o2::calibration::TimeSlotCalibration< Container >::setSlotLengthInOrbits ( int  n)
inline

Definition at line 73 of file TimeSlotCalibration.h.

◆ setSlotLengthInSeconds()

template<typename Container >
void o2::calibration::TimeSlotCalibration< Container >::setSlotLengthInSeconds ( int  s)
inline

Definition at line 72 of file TimeSlotCalibration.h.

◆ setStartOffsetFrac()

template<typename Container >
void o2::calibration::TimeSlotCalibration< Container >::setStartOffsetFrac ( float  f)
inline

Definition at line 94 of file TimeSlotCalibration.h.

◆ setUpdateAtTheEndOfRunOnly()

template<typename Container >
void o2::calibration::TimeSlotCalibration< Container >::setUpdateAtTheEndOfRunOnly ( )
inline

Definition at line 121 of file TimeSlotCalibration.h.

◆ tf2SlotMin()

template<typename Container >
TFType o2::calibration::TimeSlotCalibration< Container >::tf2SlotMin ( TFType  tf) const
inlineprotected

Definition at line 406 of file TimeSlotCalibration.h.

◆ updateSaveMetaData()

template<typename Container >
bool o2::calibration::TimeSlotCalibration< Container >::updateSaveMetaData ( )
virtual

Definition at line 495 of file TimeSlotCalibration.h.

Member Data Documentation

◆ INFINITE_TF

template<typename Container >
constexpr TFType o2::calibration::TimeSlotCalibration< Container >::INFINITE_TF = o2::calibration::INFINITE_TF
staticconstexpr

Definition at line 46 of file TimeSlotCalibration.h.

◆ mCheckDeltaIntervalInfiniteSlot

template<typename Container >
TFType o2::calibration::TimeSlotCalibration< Container >::mCheckDeltaIntervalInfiniteSlot = 1
protected

Definition at line 262 of file TimeSlotCalibration.h.

◆ mCheckIntervalInfiniteSlot

template<typename Container >
TFType o2::calibration::TimeSlotCalibration< Container >::mCheckIntervalInfiniteSlot = 1
protected

Definition at line 256 of file TimeSlotCalibration.h.

◆ mCurrentTFInfo

template<typename Container >
o2::dataformats::TFIDInfo o2::calibration::TimeSlotCalibration< Container >::mCurrentTFInfo {}
protected

Definition at line 247 of file TimeSlotCalibration.h.

◆ mFinalizeWhenReady

template<typename Container >
bool o2::calibration::TimeSlotCalibration< Container >::mFinalizeWhenReady = false
protected

Definition at line 269 of file TimeSlotCalibration.h.

◆ mFirstTF

template<typename Container >
TFType o2::calibration::TimeSlotCalibration< Container >::mFirstTF = 0
protected

Definition at line 251 of file TimeSlotCalibration.h.

◆ mLastCheckedTFInfiniteSlot

template<typename Container >
TFType o2::calibration::TimeSlotCalibration< Container >::mLastCheckedTFInfiniteSlot = 0
protected

Definition at line 260 of file TimeSlotCalibration.h.

◆ mLastClosedTF

template<typename Container >
TFType o2::calibration::TimeSlotCalibration< Container >::mLastClosedTF = 0
protected

Definition at line 250 of file TimeSlotCalibration.h.

◆ mMaxSeenTF

template<typename Container >
TFType o2::calibration::TimeSlotCalibration< Container >::mMaxSeenTF = 0
protected

Definition at line 252 of file TimeSlotCalibration.h.

◆ mMaxSlotsDelay

template<typename Container >
float o2::calibration::TimeSlotCalibration< Container >::mMaxSlotsDelay = 3.0
protected

Definition at line 265 of file TimeSlotCalibration.h.

◆ mSaveDirectory

template<typename Container >
std::string o2::calibration::TimeSlotCalibration< Container >::mSaveDirectory = ""
protected

Definition at line 271 of file TimeSlotCalibration.h.

◆ mSavedSlotAllowed

template<typename Container >
bool o2::calibration::TimeSlotCalibration< Container >::mSavedSlotAllowed = false
protected

Definition at line 274 of file TimeSlotCalibration.h.

◆ mSaveFileName

template<typename Container >
std::string o2::calibration::TimeSlotCalibration< Container >::mSaveFileName = ""
protected

Definition at line 272 of file TimeSlotCalibration.h.

◆ mSaveMetaData

template<typename Container >
TimeSlotMetaData o2::calibration::TimeSlotCalibration< Container >::mSaveMetaData {}
protected

Definition at line 273 of file TimeSlotCalibration.h.

◆ mSlotLength

template<typename Container >
TFType o2::calibration::TimeSlotCalibration< Container >::mSlotLength = 1
protected

Definition at line 253 of file TimeSlotCalibration.h.

◆ mSlotLengthInOrbits

template<typename Container >
int o2::calibration::TimeSlotCalibration< Container >::mSlotLengthInOrbits = -1
protected

Definition at line 249 of file TimeSlotCalibration.h.

◆ mSlotLengthInSeconds

template<typename Container >
int o2::calibration::TimeSlotCalibration< Container >::mSlotLengthInSeconds = -1
protected

Definition at line 248 of file TimeSlotCalibration.h.

◆ mSlots

template<typename Container >
std::deque<Slot> o2::calibration::TimeSlotCalibration< Container >::mSlots
protected

Definition at line 245 of file TimeSlotCalibration.h.

◆ mStartOffsetFrac

template<typename Container >
float o2::calibration::TimeSlotCalibration< Container >::mStartOffsetFrac = 0.
protected

Definition at line 255 of file TimeSlotCalibration.h.

◆ mStartOffsetTFs

template<typename Container >
TFType o2::calibration::TimeSlotCalibration< Container >::mStartOffsetTFs = 0
protected

Definition at line 254 of file TimeSlotCalibration.h.

◆ mUpdateAtTheEndOfRunOnly

template<typename Container >
bool o2::calibration::TimeSlotCalibration< Container >::mUpdateAtTheEndOfRunOnly = false
protected

Definition at line 268 of file TimeSlotCalibration.h.

◆ mWasCheckedInfiniteSlot

template<typename Container >
bool o2::calibration::TimeSlotCalibration< Container >::mWasCheckedInfiniteSlot = false
protected

Definition at line 267 of file TimeSlotCalibration.h.


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