Project
Loading...
Searching...
No Matches
o2::trd::CalibratorGain Class Referencefinal

#include <CalibratorGain.h>

Inherits o2::calibration::TimeSlotCalibration< o2::trd::GainCalibHistos >.

Public Member Functions

 CalibratorGain ()=default
 
 ~CalibratorGain () 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 createOutputFile ()
 
void closeOutputFile ()
 
const std::vector< o2::trd::CalGain > & getCcdbObjectVector () const
 
std::vector< o2::ccdb::CcdbObjectInfo > & getCcdbObjectInfoVector ()
 
void initProcessing ()
 
void retrievePrev (o2::framework::ProcessingContext &pc)
 
- Public Member Functions inherited from o2::calibration::TimeSlotCalibration< o2::trd::GainCalibHistos >
 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::trd::GainCalibHistos >
using Slot = TimeSlot< o2::trd::GainCalibHistos >
 
using TFType = o2::calibration::TFType
 
- Static Public Attributes inherited from o2::calibration::TimeSlotCalibration< o2::trd::GainCalibHistos >
static constexpr TFType INFINITE_TF
 
- Protected Member Functions inherited from o2::calibration::TimeSlotCalibration< o2::trd::GainCalibHistos >
auto & getSlots ()
 
uint32_t getRunStartOrbit () const
 
TFType tf2SlotMin (TFType tf) const
 
 ClassDef (TimeSlotCalibration, 1)
 
- Protected Attributes inherited from o2::calibration::TimeSlotCalibration< o2::trd::GainCalibHistos >
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 43 of file CalibratorGain.h.

Constructor & Destructor Documentation

◆ CalibratorGain()

o2::trd::CalibratorGain::CalibratorGain ( )
default

◆ ~CalibratorGain()

o2::trd::CalibratorGain::~CalibratorGain ( )
finaldefault

Member Function Documentation

◆ closeOutputFile()

void o2::trd::CalibratorGain::closeOutputFile ( )

Close the output file. E.g. First write the tree to the file and let the smart pointers take care of closing the file.

Definition at line 193 of file CalibratorGain.cxx.

◆ createOutputFile()

void o2::trd::CalibratorGain::createOutputFile ( )

(Re-)Creates a file "trd_calibgain.root". This lets continually fill a tree with the fit results and the residuals histograms.

Definition at line 178 of file CalibratorGain.cxx.

◆ emplaceNewSlot()

Slot & o2::trd::CalibratorGain::emplaceNewSlot ( bool  front,
TFType  tStart,
TFType  tEnd 
)
final

Definition at line 169 of file CalibratorGain.cxx.

◆ finalizeSlot()

void o2::trd::CalibratorGain::finalizeSlot ( Slot slot)
finalvirtual

◆ getCcdbObjectInfoVector()

std::vector< o2::ccdb::CcdbObjectInfo > & o2::trd::CalibratorGain::getCcdbObjectInfoVector ( )
inline

Definition at line 65 of file CalibratorGain.h.

◆ getCcdbObjectVector()

const std::vector< o2::trd::CalGain > & o2::trd::CalibratorGain::getCcdbObjectVector ( ) const
inline

Definition at line 64 of file CalibratorGain.h.

◆ hasEnoughData()

bool o2::trd::CalibratorGain::hasEnoughData ( const Slot slot) const
inlinefinalvirtual

◆ initOutput()

void o2::trd::CalibratorGain::initOutput ( )
finalvirtual

◆ initProcessing()

void o2::trd::CalibratorGain::initProcessing ( )

Definition at line 50 of file CalibratorGain.cxx.

◆ retrievePrev()

void o2::trd::CalibratorGain::retrievePrev ( o2::framework::ProcessingContext pc)

Initialize the fit values once with the previous valid ones if they are available.

Definition at line 82 of file CalibratorGain.cxx.


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