Project
Loading...
Searching...
No Matches
o2::phos::PHOSL1phaseCalibrator Class Referencefinal

#include <PHOSL1phaseCalibrator.h>

Inherits o2::calibration::TimeSlotCalibration< o2::phos::PHOSL1phaseSlot >.

Public Member Functions

 PHOSL1phaseCalibrator ()
 
 ~PHOSL1phaseCalibrator () 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
 
bool process (TFType tf, const gsl::span< const Cell > &clu, const gsl::span< const TriggerRecord > &trs)
 
void endOfStream ()
 
int getCalibration ()
 
std::array< unsigned int, 1400 > & getQcHistos ()
 
- Public Member Functions inherited from o2::calibration::TimeSlotCalibration< o2::phos::PHOSL1phaseSlot >
 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 SlotemplaceNewSlot (bool front, TFType tstart, TFType tend)=0
 
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::phos::PHOSL1phaseSlot >
using Slot = TimeSlot< o2::phos::PHOSL1phaseSlot >
 
using TFType = o2::calibration::TFType
 
- Static Public Attributes inherited from o2::calibration::TimeSlotCalibration< o2::phos::PHOSL1phaseSlot >
static constexpr TFType INFINITE_TF
 
- Protected Member Functions inherited from o2::calibration::TimeSlotCalibration< o2::phos::PHOSL1phaseSlot >
auto & getSlots ()
 
uint32_t getRunStartOrbit () const
 
TFType tf2SlotMin (TFType tf) const
 
 ClassDef (TimeSlotCalibration, 1)
 
- Protected Attributes inherited from o2::calibration::TimeSlotCalibration< o2::phos::PHOSL1phaseSlot >
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 68 of file PHOSL1phaseCalibrator.h.

Constructor & Destructor Documentation

◆ PHOSL1phaseCalibrator()

PHOSL1phaseCalibrator::PHOSL1phaseCalibrator ( )

Definition at line 159 of file PHOSL1phaseCalibrator.cxx.

◆ ~PHOSL1phaseCalibrator()

o2::phos::PHOSL1phaseCalibrator::~PHOSL1phaseCalibrator ( )
finaldefault

Member Function Documentation

◆ emplaceNewSlot()

Slot & PHOSL1phaseCalibrator::emplaceNewSlot ( bool  front,
TFType  tstart,
TFType  tend 
)
final

Definition at line 189 of file PHOSL1phaseCalibrator.cxx.

◆ endOfStream()

void PHOSL1phaseCalibrator::endOfStream ( )

Definition at line 208 of file PHOSL1phaseCalibrator.cxx.

◆ finalizeSlot()

void PHOSL1phaseCalibrator::finalizeSlot ( Slot slot)
finalvirtual

◆ getCalibration()

int o2::phos::PHOSL1phaseCalibrator::getCalibration ( )
inline

Definition at line 83 of file PHOSL1phaseCalibrator.h.

◆ getQcHistos()

std::array< unsigned int, 1400 > & o2::phos::PHOSL1phaseCalibrator::getQcHistos ( )
inline

Definition at line 84 of file PHOSL1phaseCalibrator.h.

◆ hasEnoughData()

bool PHOSL1phaseCalibrator::hasEnoughData ( const Slot slot) const
finalvirtual

◆ initOutput()

void PHOSL1phaseCalibrator::initOutput ( )
finalvirtual

◆ process()

bool PHOSL1phaseCalibrator::process ( TFType  tf,
const gsl::span< const Cell > &  clu,
const gsl::span< const TriggerRecord > &  trs 
)

Definition at line 198 of file PHOSL1phaseCalibrator.cxx.


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