Project
Loading...
Searching...
No Matches
o2::tof::TOFChannelCalibrator< T > Class Template Referencefinal

#include <TOFChannelCalibrator.h>

Inherits o2::calibration::TimeSlotCalibration< o2::tof::TOFChannelData >.

Public Member Functions

void doPerStrip (bool val=true)
 
void doSafeMode (bool val=true)
 
 TOFChannelCalibrator (int minEnt=500, int nb=1000, float r=24400, bool perstrip=false, bool safe=false)
 
 ~TOFChannelCalibrator () final=default
 
bool hasEnoughData (const Slot &slot) const final
 
void initOutput () final
 
void finalizeSlot (Slot &slot) final
 
void finalizeSlotWithCosmics (Slot &slot)
 
void finalizeSlotWithTracks (Slot &slot)
 
SlotemplaceNewSlot (bool front, TFType tstart, TFType tend) final
 
const TimeSlewingVector & getTimeSlewingVector () const
 
const CcdbObjectInfoVector & getTimeSlewingInfoVector () const
 
CcdbObjectInfoVector & getTimeSlewingInfoVector ()
 
void setIsTest (bool isTest)
 
bool isTest () const
 
void setCalibTOFapi (CalibTOFapi *api)
 
CalibTOFapigetCalibTOFapi () const
 
void setRange (float r)
 
float getRange () const
 
void setDoCalibWithCosmics (bool doCalibWithCosmics=true)
 
bool doCalibWithCosmics () const
 
void setNThreads (int n)
 
int getNThreads () const
 
void setStripFunction ()
 
- Public Member Functions inherited from o2::calibration::TimeSlotCalibration< o2::tof::TOFChannelData >
 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 ()
 

Static Public Member Functions

static double FuncDeltaOffset (double *x, double *params)
 

Static Public Attributes

static constexpr int NCOMBINSTRIP = o2::tof::Geo::NPADX + o2::tof::Geo::NPADS
 
static constexpr int NMAXTHREADS = o2::tof::Geo::NSECTORS
 
- Static Public Attributes inherited from o2::calibration::TimeSlotCalibration< o2::tof::TOFChannelData >
static constexpr TFType INFINITE_TF
 

Protected Member Functions

std::deque< o2::calibration::TimeSlot< o2::tof::TOFChannelData > > & getSlots ()
 
- Protected Member Functions inherited from o2::calibration::TimeSlotCalibration< o2::tof::TOFChannelData >
auto & getSlots ()
 
uint32_t getRunStartOrbit () const
 
TFType tf2SlotMin (TFType tf) const
 
 ClassDef (TimeSlotCalibration, 1)
 

Additional Inherited Members

- Public Types inherited from o2::calibration::TimeSlotCalibration< o2::tof::TOFChannelData >
using Slot = TimeSlot< o2::tof::TOFChannelData >
 
using TFType = o2::calibration::TFType
 
- Protected Attributes inherited from o2::calibration::TimeSlotCalibration< o2::tof::TOFChannelData >
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<class T>
class o2::tof::TOFChannelCalibrator< T >

Definition at line 142 of file TOFChannelCalibrator.h.

Constructor & Destructor Documentation

◆ TOFChannelCalibrator()

template<class T >
o2::tof::TOFChannelCalibrator< T >::TOFChannelCalibrator ( int  minEnt = 500,
int  nb = 1000,
float  r = 24400,
bool  perstrip = false,
bool  safe = false 
)
inline

Definition at line 184 of file TOFChannelCalibrator.h.

◆ ~TOFChannelCalibrator()

template<class T >
o2::tof::TOFChannelCalibrator< T >::~TOFChannelCalibrator ( )
finaldefault

Member Function Documentation

◆ doCalibWithCosmics()

template<class T >
bool o2::tof::TOFChannelCalibrator< T >::doCalibWithCosmics ( ) const
inline

Definition at line 259 of file TOFChannelCalibrator.h.

◆ doPerStrip()

template<class T >
void o2::tof::TOFChannelCalibrator< T >::doPerStrip ( bool  val = true)
inline

Definition at line 161 of file TOFChannelCalibrator.h.

◆ doSafeMode()

template<class T >
void o2::tof::TOFChannelCalibrator< T >::doSafeMode ( bool  val = true)
inline

Definition at line 162 of file TOFChannelCalibrator.h.

◆ emplaceNewSlot()

template<class T >
Slot & o2::tof::TOFChannelCalibrator< T >::emplaceNewSlot ( bool  front,
TFType  tstart,
TFType  tend 
)
inlinefinalvirtual

◆ finalizeSlot()

template<class T >
void o2::tof::TOFChannelCalibrator< T >::finalizeSlot ( Slot slot)
inlinefinalvirtual

◆ finalizeSlotWithCosmics()

template<typename T >
void o2::tof::TOFChannelCalibrator< T >::finalizeSlotWithCosmics ( Slot slot)

Definition at line 437 of file TOFChannelCalibrator.cxx.

◆ finalizeSlotWithTracks()

template<typename T >
void o2::tof::TOFChannelCalibrator< T >::finalizeSlotWithTracks ( Slot slot)

Definition at line 656 of file TOFChannelCalibrator.cxx.

◆ FuncDeltaOffset()

template<class T >
static double o2::tof::TOFChannelCalibrator< T >::FuncDeltaOffset ( double *  x,
double *  params 
)
inlinestatic

Definition at line 164 of file TOFChannelCalibrator.h.

◆ getCalibTOFapi()

template<class T >
CalibTOFapi * o2::tof::TOFChannelCalibrator< T >::getCalibTOFapi ( ) const
inline

Definition at line 253 of file TOFChannelCalibrator.h.

◆ getNThreads()

template<class T >
int o2::tof::TOFChannelCalibrator< T >::getNThreads ( ) const
inline

Definition at line 262 of file TOFChannelCalibrator.h.

◆ getRange()

template<class T >
float o2::tof::TOFChannelCalibrator< T >::getRange ( ) const
inline

Definition at line 256 of file TOFChannelCalibrator.h.

◆ getSlots()

template<class T >
std::deque< o2::calibration::TimeSlot< o2::tof::TOFChannelData > > & o2::tof::TOFChannelCalibrator< T >::getSlots ( )
inlineprotected

Definition at line 158 of file TOFChannelCalibrator.h.

◆ getTimeSlewingInfoVector() [1/2]

template<class T >
CcdbObjectInfoVector & o2::tof::TOFChannelCalibrator< T >::getTimeSlewingInfoVector ( )
inline

Definition at line 247 of file TOFChannelCalibrator.h.

◆ getTimeSlewingInfoVector() [2/2]

template<class T >
const CcdbObjectInfoVector & o2::tof::TOFChannelCalibrator< T >::getTimeSlewingInfoVector ( ) const
inline

Definition at line 246 of file TOFChannelCalibrator.h.

◆ getTimeSlewingVector()

template<class T >
const TimeSlewingVector & o2::tof::TOFChannelCalibrator< T >::getTimeSlewingVector ( ) const
inline

Definition at line 245 of file TOFChannelCalibrator.h.

◆ hasEnoughData()

template<class T >
bool o2::tof::TOFChannelCalibrator< T >::hasEnoughData ( const Slot slot) const
inlinefinalvirtual

◆ initOutput()

template<class T >
void o2::tof::TOFChannelCalibrator< T >::initOutput ( )
inlinefinalvirtual

◆ isTest()

template<class T >
bool o2::tof::TOFChannelCalibrator< T >::isTest ( ) const
inline

Definition at line 250 of file TOFChannelCalibrator.h.

◆ setCalibTOFapi()

template<class T >
void o2::tof::TOFChannelCalibrator< T >::setCalibTOFapi ( CalibTOFapi api)
inline

Definition at line 252 of file TOFChannelCalibrator.h.

◆ setDoCalibWithCosmics()

template<class T >
void o2::tof::TOFChannelCalibrator< T >::setDoCalibWithCosmics ( bool  doCalibWithCosmics = true)
inline

Definition at line 258 of file TOFChannelCalibrator.h.

◆ setIsTest()

template<class T >
void o2::tof::TOFChannelCalibrator< T >::setIsTest ( bool  isTest)
inline

Definition at line 249 of file TOFChannelCalibrator.h.

◆ setNThreads()

template<class T >
void o2::tof::TOFChannelCalibrator< T >::setNThreads ( int  n)
inline

Definition at line 261 of file TOFChannelCalibrator.h.

◆ setRange()

template<class T >
void o2::tof::TOFChannelCalibrator< T >::setRange ( float  r)
inline

Definition at line 255 of file TOFChannelCalibrator.h.

◆ setStripFunction()

template<class T >
void o2::tof::TOFChannelCalibrator< T >::setStripFunction ( )
inline

Definition at line 264 of file TOFChannelCalibrator.h.

Member Data Documentation

◆ NCOMBINSTRIP

template<class T >
constexpr int o2::tof::TOFChannelCalibrator< T >::NCOMBINSTRIP = o2::tof::Geo::NPADX + o2::tof::Geo::NPADS
staticconstexpr

Definition at line 179 of file TOFChannelCalibrator.h.

◆ NMAXTHREADS

template<class T >
constexpr int o2::tof::TOFChannelCalibrator< T >::NMAXTHREADS = o2::tof::Geo::NSECTORS
staticconstexpr

Definition at line 180 of file TOFChannelCalibrator.h.


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