Project
Loading...
Searching...
No Matches
o2::tof::LHCClockCalibrator Class Referencefinal

#include <LHCClockCalibrator.h>

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

Public Member Functions

 LHCClockCalibrator (int minEnt=500, int nb=10000, float r=244000, const std::string path=o2::base::NameConf::getCCDBServer())
 
 ~LHCClockCalibrator () final=default
 
bool hasEnoughData (const Slot &slot) const final
 
void initOutput () final
 
void finalizeSlot (Slot &slot) final
 
SlotemplaceNewSlot (bool front, TFType tstart, TFType tend) final
 
const LHCphaseVector & getLHCphaseVector () const
 
const CcdbObjectInfoVector & getLHCphaseInfoVector () const
 
CcdbObjectInfoVector & getLHCphaseInfoVector ()
 
void setCalibTOFapi (CalibTOFapi *api)
 
CalibTOFapigetCalibTOFapi () const
 
- Public Member Functions inherited from o2::calibration::TimeSlotCalibration< o2::tof::LHCClockDataHisto >
 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< o2::tof::LHCClockDataHisto >
using Slot = TimeSlot< o2::tof::LHCClockDataHisto >
 
using TFType = o2::calibration::TFType
 
- Static Public Attributes inherited from o2::calibration::TimeSlotCalibration< o2::tof::LHCClockDataHisto >
static constexpr TFType INFINITE_TF
 
- Protected Member Functions inherited from o2::calibration::TimeSlotCalibration< o2::tof::LHCClockDataHisto >
auto & getSlots ()
 
uint32_t getRunStartOrbit () const
 
TFType tf2SlotMin (TFType tf) const
 
 ClassDef (TimeSlotCalibration, 1)
 
- Protected Attributes inherited from o2::calibration::TimeSlotCalibration< o2::tof::LHCClockDataHisto >
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

Definition at line 72 of file LHCClockCalibrator.h.

Constructor & Destructor Documentation

◆ LHCClockCalibrator()

o2::tof::LHCClockCalibrator::LHCClockCalibrator ( int  minEnt = 500,
int  nb = 10000,
float  r = 244000,
const std::string  path = o2::base::NameConf::getCCDBServer() 
)
inline

Definition at line 83 of file LHCClockCalibrator.h.

◆ ~LHCClockCalibrator()

o2::tof::LHCClockCalibrator::~LHCClockCalibrator ( )
finaldefault

Member Function Documentation

◆ emplaceNewSlot()

Slot & o2::tof::LHCClockCalibrator::emplaceNewSlot ( bool  front,
TFType  tstart,
TFType  tend 
)
finalvirtual

◆ finalizeSlot()

void o2::tof::LHCClockCalibrator::finalizeSlot ( Slot slot)
finalvirtual

◆ getCalibTOFapi()

CalibTOFapi * o2::tof::LHCClockCalibrator::getCalibTOFapi ( ) const
inline

Definition at line 101 of file LHCClockCalibrator.h.

◆ getLHCphaseInfoVector() [1/2]

CcdbObjectInfoVector & o2::tof::LHCClockCalibrator::getLHCphaseInfoVector ( )
inline

Definition at line 98 of file LHCClockCalibrator.h.

◆ getLHCphaseInfoVector() [2/2]

const CcdbObjectInfoVector & o2::tof::LHCClockCalibrator::getLHCphaseInfoVector ( ) const
inline

Definition at line 97 of file LHCClockCalibrator.h.

◆ getLHCphaseVector()

const LHCphaseVector & o2::tof::LHCClockCalibrator::getLHCphaseVector ( ) const
inline

Definition at line 96 of file LHCClockCalibrator.h.

◆ hasEnoughData()

bool o2::tof::LHCClockCalibrator::hasEnoughData ( const Slot slot) const
inlinefinalvirtual

◆ initOutput()

void o2::tof::LHCClockCalibrator::initOutput ( )
finalvirtual

◆ setCalibTOFapi()

void o2::tof::LHCClockCalibrator::setCalibTOFapi ( CalibTOFapi api)
inline

Definition at line 100 of file LHCClockCalibrator.h.


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