Project
Loading...
Searching...
No Matches
o2::cpv::PedestalCalibrator Class Referencefinal

#include <PedestalCalibrator.h>

Inherits o2::calibration::TimeSlotCalibration< o2::cpv::PedestalCalibData >.

Public Member Functions

 PedestalCalibrator ()
 
 ~PedestalCalibrator () final=default
 
std::vector< o2::ccdb::CcdbObjectInfo > & getCcdbInfoPedestalsVector ()
 
const std::vector< o2::cpv::Pedestals > & getPedestalsVector () const
 
std::vector< o2::ccdb::CcdbObjectInfo > & getCcdbInfoThresholdsFEEVector ()
 
const std::vector< std::vector< int > > & getThresholdsFEEVector () const
 
std::vector< o2::ccdb::CcdbObjectInfo > & getCcdbInfoDeadChannelsVector ()
 
const std::vector< std::vector< int > > & getDeadChannelsVector () const
 
std::vector< o2::ccdb::CcdbObjectInfo > & getCcdbInfoHighPedChannelsVector ()
 
const std::vector< std::vector< int > > & getHighPedChannelsVector () const
 
std::vector< o2::ccdb::CcdbObjectInfo > & getCcdbInfoEfficienciesVector ()
 
const std::vector< std::vector< float > > & getEfficienciesVector () const
 
bool hasEnoughData (const PedestalTimeSlot &slot) const final
 
void initOutput () final
 
void finalizeSlot (PedestalTimeSlot &slot) final
 
PedestalTimeSlotemplaceNewSlot (bool front, TFType tstart, TFType tend) final
 
void configParameters ()
 
- Public Member Functions inherited from o2::calibration::TimeSlotCalibration< o2::cpv::PedestalCalibData >
 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::cpv::PedestalCalibData >
using Slot = TimeSlot< o2::cpv::PedestalCalibData >
 
using TFType = o2::calibration::TFType
 
- Static Public Attributes inherited from o2::calibration::TimeSlotCalibration< o2::cpv::PedestalCalibData >
static constexpr TFType INFINITE_TF
 
- Protected Member Functions inherited from o2::calibration::TimeSlotCalibration< o2::cpv::PedestalCalibData >
auto & getSlots ()
 
uint32_t getRunStartOrbit () const
 
TFType tf2SlotMin (TFType tf) const
 
 ClassDef (TimeSlotCalibration, 1)
 
- Protected Attributes inherited from o2::calibration::TimeSlotCalibration< o2::cpv::PedestalCalibData >
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 74 of file PedestalCalibrator.h.

Constructor & Destructor Documentation

◆ PedestalCalibrator()

o2::cpv::PedestalCalibrator::PedestalCalibrator ( )

Definition at line 224 of file PedestalCalibrator.cxx.

◆ ~PedestalCalibrator()

o2::cpv::PedestalCalibrator::~PedestalCalibrator ( )
finaldefault

Member Function Documentation

◆ configParameters()

void o2::cpv::PedestalCalibrator::configParameters ( )

Definition at line 229 of file PedestalCalibrator.cxx.

◆ emplaceNewSlot()

PedestalTimeSlot & o2::cpv::PedestalCalibrator::emplaceNewSlot ( bool  front,
TFType  tstart,
TFType  tend 
)
final

Definition at line 348 of file PedestalCalibrator.cxx.

◆ finalizeSlot()

void o2::cpv::PedestalCalibrator::finalizeSlot ( PedestalTimeSlot slot)
finalvirtual

◆ getCcdbInfoDeadChannelsVector()

std::vector< o2::ccdb::CcdbObjectInfo > & o2::cpv::PedestalCalibrator::getCcdbInfoDeadChannelsVector ( )
inline

Definition at line 83 of file PedestalCalibrator.h.

◆ getCcdbInfoEfficienciesVector()

std::vector< o2::ccdb::CcdbObjectInfo > & o2::cpv::PedestalCalibrator::getCcdbInfoEfficienciesVector ( )
inline

Definition at line 87 of file PedestalCalibrator.h.

◆ getCcdbInfoHighPedChannelsVector()

std::vector< o2::ccdb::CcdbObjectInfo > & o2::cpv::PedestalCalibrator::getCcdbInfoHighPedChannelsVector ( )
inline

Definition at line 85 of file PedestalCalibrator.h.

◆ getCcdbInfoPedestalsVector()

std::vector< o2::ccdb::CcdbObjectInfo > & o2::cpv::PedestalCalibrator::getCcdbInfoPedestalsVector ( )
inline

Definition at line 79 of file PedestalCalibrator.h.

◆ getCcdbInfoThresholdsFEEVector()

std::vector< o2::ccdb::CcdbObjectInfo > & o2::cpv::PedestalCalibrator::getCcdbInfoThresholdsFEEVector ( )
inline

Definition at line 81 of file PedestalCalibrator.h.

◆ getDeadChannelsVector()

const std::vector< std::vector< int > > & o2::cpv::PedestalCalibrator::getDeadChannelsVector ( ) const
inline

Definition at line 84 of file PedestalCalibrator.h.

◆ getEfficienciesVector()

const std::vector< std::vector< float > > & o2::cpv::PedestalCalibrator::getEfficienciesVector ( ) const
inline

Definition at line 88 of file PedestalCalibrator.h.

◆ getHighPedChannelsVector()

const std::vector< std::vector< int > > & o2::cpv::PedestalCalibrator::getHighPedChannelsVector ( ) const
inline

Definition at line 86 of file PedestalCalibrator.h.

◆ getPedestalsVector()

const std::vector< o2::cpv::Pedestals > & o2::cpv::PedestalCalibrator::getPedestalsVector ( ) const
inline

Definition at line 80 of file PedestalCalibrator.h.

◆ getThresholdsFEEVector()

const std::vector< std::vector< int > > & o2::cpv::PedestalCalibrator::getThresholdsFEEVector ( ) const
inline

Definition at line 82 of file PedestalCalibrator.h.

◆ hasEnoughData()

bool o2::cpv::PedestalCalibrator::hasEnoughData ( const PedestalTimeSlot slot) const
inlinefinalvirtual

◆ initOutput()

void o2::cpv::PedestalCalibrator::initOutput ( )
finalvirtual

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