Project
Loading...
Searching...
No Matches
o2::ft0::EventsPerBcCalibrator Class Referencefinal

#include <EventsPerBcCalibrator.h>

Inherits o2::calibration::TimeSlotCalibration< o2::ft0::EventsPerBcContainer >.

Public Member Functions

 EventsPerBcCalibrator (uint32_t minNumberOfEntries, int32_t minAmplitudeSideA, int32_t minAmplitudeSideC)
 
bool hasEnoughData (const Slot &slot) const override
 
void initOutput () override
 
void finalizeSlot (Slot &slot) override
 
SlotemplaceNewSlot (bool front, TFType tstart, TFType tend) override
 
const std::vector< EventsPerBc > & getTvxPerBc ()
 
std::vector< std::unique_ptr< o2::ccdb::CcdbObjectInfo > > & getTvxPerBcCcdbInfo ()
 
- Public Member Functions inherited from o2::calibration::TimeSlotCalibration< o2::ft0::EventsPerBcContainer >
 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::ft0::EventsPerBcContainer >
using Slot = TimeSlot< o2::ft0::EventsPerBcContainer >
 
using TFType = o2::calibration::TFType
 
- Static Public Attributes inherited from o2::calibration::TimeSlotCalibration< o2::ft0::EventsPerBcContainer >
static constexpr TFType INFINITE_TF
 
- Protected Member Functions inherited from o2::calibration::TimeSlotCalibration< o2::ft0::EventsPerBcContainer >
auto & getSlots ()
 
uint32_t getRunStartOrbit () const
 
TFType tf2SlotMin (TFType tf) const
 
 ClassDef (TimeSlotCalibration, 1)
 
- Protected Attributes inherited from o2::calibration::TimeSlotCalibration< o2::ft0::EventsPerBcContainer >
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 52 of file EventsPerBcCalibrator.h.

Constructor & Destructor Documentation

◆ EventsPerBcCalibrator()

o2::ft0::EventsPerBcCalibrator::EventsPerBcCalibrator ( uint32_t  minNumberOfEntries,
int32_t  minAmplitudeSideA,
int32_t  minAmplitudeSideC 
)

Definition at line 48 of file EventsPerBcCalibrator.cxx.

Member Function Documentation

◆ emplaceNewSlot()

EventsPerBcCalibrator::Slot & o2::ft0::EventsPerBcCalibrator::emplaceNewSlot ( bool  front,
TFType  tstart,
TFType  tend 
)
overridevirtual

◆ finalizeSlot()

void o2::ft0::EventsPerBcCalibrator::finalizeSlot ( EventsPerBcCalibrator::Slot slot)
overridevirtual

◆ getTvxPerBc()

const std::vector< EventsPerBc > & o2::ft0::EventsPerBcCalibrator::getTvxPerBc ( )
inline

Definition at line 66 of file EventsPerBcCalibrator.h.

◆ getTvxPerBcCcdbInfo()

std::vector< std::unique_ptr< o2::ccdb::CcdbObjectInfo > > & o2::ft0::EventsPerBcCalibrator::getTvxPerBcCcdbInfo ( )
inline

Definition at line 67 of file EventsPerBcCalibrator.h.

◆ hasEnoughData()

bool o2::ft0::EventsPerBcCalibrator::hasEnoughData ( const Slot slot) const
overridevirtual

◆ initOutput()

void o2::ft0::EventsPerBcCalibrator::initOutput ( )
overridevirtual

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