Project
Loading...
Searching...
No Matches
o2::mch::calibration::BadChannelCalibrator Class Referencefinal

Compute bad channel map from pedestal data. More...

#include <BadChannelCalibrator.h>

Inherits o2::calibration::TimeSlotCalibration< o2::mch::calibration::PedestalData >.

Public Member Functions

 BadChannelCalibrator ()=default
 
 ~BadChannelCalibrator () 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 readyToSend (std::string &reason) const
 
void finalize ()
 
const BadChannelsVector & getBadChannelsVector () const
 
const PedestalsVector & getPedestalsVector () const
 
- Public Member Functions inherited from o2::calibration::TimeSlotCalibration< o2::mch::calibration::PedestalData >
 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::mch::calibration::PedestalData >
using Slot = TimeSlot< o2::mch::calibration::PedestalData >
 
using TFType = o2::calibration::TFType
 
- Static Public Attributes inherited from o2::calibration::TimeSlotCalibration< o2::mch::calibration::PedestalData >
static constexpr TFType INFINITE_TF
 
- Protected Member Functions inherited from o2::calibration::TimeSlotCalibration< o2::mch::calibration::PedestalData >
auto & getSlots ()
 
uint32_t getRunStartOrbit () const
 
TFType tf2SlotMin (TFType tf) const
 
 ClassDef (TimeSlotCalibration, 1)
 
- Protected Attributes inherited from o2::calibration::TimeSlotCalibration< o2::mch::calibration::PedestalData >
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

Compute bad channel map from pedestal data.

Calibrator that checks the computed mean and RMS of the MCH pedestals and compares the values with (configurable) thresholds. The channels whose values exceed one of the thresholds are considered bad/noisy and they are stored into a "bad channels" list that is sent to the CDDB populator(s).

Definition at line 40 of file BadChannelCalibrator.h.

Constructor & Destructor Documentation

◆ BadChannelCalibrator()

o2::mch::calibration::BadChannelCalibrator::BadChannelCalibrator ( )
default

◆ ~BadChannelCalibrator()

o2::mch::calibration::BadChannelCalibrator::~BadChannelCalibrator ( )
finaldefault

Member Function Documentation

◆ emplaceNewSlot()

BadChannelCalibrator::Slot & o2::mch::calibration::BadChannelCalibrator::emplaceNewSlot ( bool  front,
TFType  tstart,
TFType  tend 
)
finalvirtual

◆ finalize()

void o2::mch::calibration::BadChannelCalibrator::finalize ( )

Definition at line 54 of file BadChannelCalibrator.cxx.

◆ finalizeSlot()

void o2::mch::calibration::BadChannelCalibrator::finalizeSlot ( Slot slot)
finalvirtual

◆ getBadChannelsVector()

const BadChannelsVector & o2::mch::calibration::BadChannelCalibrator::getBadChannelsVector ( ) const
inline

Definition at line 68 of file BadChannelCalibrator.h.

◆ getPedestalsVector()

const PedestalsVector & o2::mch::calibration::BadChannelCalibrator::getPedestalsVector ( ) const
inline

Definition at line 69 of file BadChannelCalibrator.h.

◆ hasEnoughData()

bool o2::mch::calibration::BadChannelCalibrator::hasEnoughData ( const Slot slot) const
finalvirtual

Decides whether the Slot has enough data to compute the calibration. Decision depends both on the data itself and on the BadChannelCalibratorParam parameters.

Implements o2::calibration::TimeSlotCalibration< o2::mch::calibration::PedestalData >.

Definition at line 66 of file BadChannelCalibrator.cxx.

◆ initOutput()

void o2::mch::calibration::BadChannelCalibrator::initOutput ( )
finalvirtual

◆ readyToSend()

bool o2::mch::calibration::BadChannelCalibrator::readyToSend ( std::string &  reason) const

Definition at line 34 of file BadChannelCalibrator.cxx.


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