Project
Loading...
Searching...
No Matches
o2::calibration::IntegratedClusterCalibrator< DataT > Class Template Reference

#include <IntegratedClusterCalibrator.h>

Inherits o2::calibration::TimeSlotCalibration< IntegratedClusters< DataT > >.

Public Member Functions

 IntegratedClusterCalibrator ()=default
 default constructor
 
 ~IntegratedClusterCalibrator () final=default
 default destructor
 
bool hasEnoughData (const Slot &slot) const final
 check if given slot has already enough data
 
void initOutput () final
 clearing all calibration objects in the output buffer
 
void finalizeSlot (Slot &slot) final
 storing the integrated currents for given slot
 
SlotemplaceNewSlot (bool front, TFType tstart, TFType tend) final
 Creates new time slot.
 
const TFinterval & getTFinterval () const
 
const TimeInterval & getTimeIntervals () const
 
auto getCalibs () &&
 
bool hasCalibrationData () const
 check if calibration data is available
 
void setDebug (const bool debug)
 set if debug objects will be created
 
- Public Member Functions inherited from o2::calibration::TimeSlotCalibration< IntegratedClusters< DataT > >
 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
 
bool process (const DATA &... data)
 
virtual void checkSlotsToFinalize (TFType tf=INFINITE_TF, int maxDelay=0)
 
virtual void finalizeOldestSlot ()
 
virtual void reset ()
 
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 ()
 

Additional Inherited Members

- Public Types inherited from o2::calibration::TimeSlotCalibration< IntegratedClusters< DataT > >
using Slot = TimeSlot< IntegratedClusters< DataT > >
 
using TFType = o2::calibration::TFType
 
- Static Public Attributes inherited from o2::calibration::TimeSlotCalibration< IntegratedClusters< DataT > >
static constexpr TFType INFINITE_TF
 
- Protected Member Functions inherited from o2::calibration::TimeSlotCalibration< IntegratedClusters< DataT > >
auto & getSlots ()
 
uint32_t getRunStartOrbit () const
 
TFType tf2SlotMin (TFType tf) const
 
 ClassDef (TimeSlotCalibration, 1)
 
- Protected Attributes inherited from o2::calibration::TimeSlotCalibration< IntegratedClusters< DataT > >
std::deque< SlotmSlots
 
o2::dataformats::TFIDInfo mCurrentTFInfo
 
int mSlotLengthInSeconds
 
int mSlotLengthInOrbits
 
TFType mLastClosedTF
 
TFType mFirstTF
 
TFType mMaxSeenTF
 
TFType mSlotLength
 
TFType mStartOffsetTFs
 
float mStartOffsetFrac
 
TFType mCheckIntervalInfiniteSlot
 
TFType mLastCheckedTFInfiniteSlot
 
TFType mCheckDeltaIntervalInfiniteSlot
 
float mMaxSlotsDelay
 
bool mWasCheckedInfiniteSlot
 
bool mUpdateAtTheEndOfRunOnly
 
bool mFinalizeWhenReady
 
std::string mSaveDirectory
 
std::string mSaveFileName
 
TimeSlotMetaData mSaveMetaData
 
bool mSavedSlotAllowed
 

Detailed Description

template<typename DataT>
class o2::calibration::IntegratedClusterCalibrator< DataT >

Definition at line 759 of file IntegratedClusterCalibrator.h.

Constructor & Destructor Documentation

◆ IntegratedClusterCalibrator()

template<typename DataT >
o2::calibration::IntegratedClusterCalibrator< DataT >::IntegratedClusterCalibrator ( )
default

default constructor

◆ ~IntegratedClusterCalibrator()

template<typename DataT >
o2::calibration::IntegratedClusterCalibrator< DataT >::~IntegratedClusterCalibrator ( )
finaldefault

default destructor

Member Function Documentation

◆ emplaceNewSlot()

template<typename DataT >
o2::calibration::TimeSlot< o2::calibration::IntegratedClusters< DataT > > & o2::calibration::IntegratedClusterCalibrator< DataT >::emplaceNewSlot ( bool  front,
TFType  tstart,
TFType  tend 
)
finalvirtual

◆ finalizeSlot()

template<typename DataT >
void o2::calibration::IntegratedClusterCalibrator< DataT >::finalizeSlot ( Slot slot)
finalvirtual

storing the integrated currents for given slot

Implements o2::calibration::TimeSlotCalibration< IntegratedClusters< DataT > >.

Definition at line 161 of file IntegratedClusterCalibrator.cxx.

◆ getCalibs()

template<typename DataT >
auto o2::calibration::IntegratedClusterCalibrator< DataT >::getCalibs ( ) &&
inline
Returns
returns calibration objects (pad-by-pad gain maps)

Definition at line 793 of file IntegratedClusterCalibrator.h.

◆ getTFinterval()

template<typename DataT >
const TFinterval & o2::calibration::IntegratedClusterCalibrator< DataT >::getTFinterval ( ) const
inline
Returns
CCDB output informations

Definition at line 787 of file IntegratedClusterCalibrator.h.

◆ getTimeIntervals()

template<typename DataT >
const TimeInterval & o2::calibration::IntegratedClusterCalibrator< DataT >::getTimeIntervals ( ) const
inline
Returns
Time frame time information

Definition at line 790 of file IntegratedClusterCalibrator.h.

◆ hasCalibrationData()

template<typename DataT >
bool o2::calibration::IntegratedClusterCalibrator< DataT >::hasCalibrationData ( ) const
inline

check if calibration data is available

Definition at line 796 of file IntegratedClusterCalibrator.h.

◆ hasEnoughData()

template<typename DataT >
bool o2::calibration::IntegratedClusterCalibrator< DataT >::hasEnoughData ( const Slot slot) const
inlinefinalvirtual

check if given slot has already enough data

Implements o2::calibration::TimeSlotCalibration< IntegratedClusters< DataT > >.

Definition at line 775 of file IntegratedClusterCalibrator.h.

◆ initOutput()

template<typename DataT >
void o2::calibration::IntegratedClusterCalibrator< DataT >::initOutput ( )
finalvirtual

clearing all calibration objects in the output buffer

Implements o2::calibration::TimeSlotCalibration< IntegratedClusters< DataT > >.

Definition at line 153 of file IntegratedClusterCalibrator.cxx.

◆ setDebug()

template<typename DataT >
void o2::calibration::IntegratedClusterCalibrator< DataT >::setDebug ( const bool  debug)
inline

set if debug objects will be created

Definition at line 799 of file IntegratedClusterCalibrator.h.


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