Project
Loading...
Searching...
No Matches
o2::fv0::FV0CalibCollector Class Referencefinal

#include <FV0CalibCollector.h>

Inherits o2::calibration::TimeSlotCalibration< o2::fv0::FV0CalibInfoSlot >.

Public Member Functions

 FV0CalibCollector (bool TFsendingPolicy, int maxNumOfHits, bool test=false)
 
 ~FV0CalibCollector () 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
 
void setIsTest (bool istest)
 
auto & getCollectedCalibInfo () const
 
auto & getEntriesPerChannel () const
 
void setIsMaxNumberOfHitsAbsolute (bool absNumber)
 
- Public Member Functions inherited from o2::calibration::TimeSlotCalibration< o2::fv0::FV0CalibInfoSlot >
 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::fv0::FV0CalibInfoSlot >
using Slot = TimeSlot< o2::fv0::FV0CalibInfoSlot >
 
using TFType = o2::calibration::TFType
 
- Static Public Attributes inherited from o2::calibration::TimeSlotCalibration< o2::fv0::FV0CalibInfoSlot >
static constexpr TFType INFINITE_TF
 
- Protected Member Functions inherited from o2::calibration::TimeSlotCalibration< o2::fv0::FV0CalibInfoSlot >
auto & getSlots ()
 
uint32_t getRunStartOrbit () const
 
TFType tf2SlotMin (TFType tf) const
 
 ClassDef (TimeSlotCalibration, 1)
 
- Protected Attributes inherited from o2::calibration::TimeSlotCalibration< o2::fv0::FV0CalibInfoSlot >
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 61 of file FV0CalibCollector.h.

Constructor & Destructor Documentation

◆ FV0CalibCollector()

o2::fv0::FV0CalibCollector::FV0CalibCollector ( bool  TFsendingPolicy,
int  maxNumOfHits,
bool  test = false 
)
inline

Definition at line 68 of file FV0CalibCollector.h.

◆ ~FV0CalibCollector()

o2::fv0::FV0CalibCollector::~FV0CalibCollector ( )
finaldefault

Member Function Documentation

◆ emplaceNewSlot()

Slot & o2::fv0::FV0CalibCollector::emplaceNewSlot ( bool  front,
TFType  tstart,
TFType  tend 
)
finalvirtual

◆ finalizeSlot()

void o2::fv0::FV0CalibCollector::finalizeSlot ( Slot slot)
finalvirtual

◆ getCollectedCalibInfo()

auto & o2::fv0::FV0CalibCollector::getCollectedCalibInfo ( ) const
inline

Definition at line 77 of file FV0CalibCollector.h.

◆ getEntriesPerChannel()

auto & o2::fv0::FV0CalibCollector::getEntriesPerChannel ( ) const
inline

Definition at line 78 of file FV0CalibCollector.h.

◆ hasEnoughData()

bool o2::fv0::FV0CalibCollector::hasEnoughData ( const Slot slot) const
finalvirtual

◆ initOutput()

void o2::fv0::FV0CalibCollector::initOutput ( )
finalvirtual

◆ setIsMaxNumberOfHitsAbsolute()

void o2::fv0::FV0CalibCollector::setIsMaxNumberOfHitsAbsolute ( bool  absNumber)
inline

Definition at line 79 of file FV0CalibCollector.h.

◆ setIsTest()

void o2::fv0::FV0CalibCollector::setIsTest ( bool  istest)
inline

Definition at line 76 of file FV0CalibCollector.h.


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