![]() |
Project
|
class used for managment of bad channel and time calibration template DataInput can be ChannelData or TimeData // o2::emcal::EMCALChannelData, o2::emcal::EMCALTimeCalibData More...
#include <EMCALChannelCalibrator.h>
Inherits o2::calibration::TimeSlotCalibration< DataInput >.
Public Member Functions | |
| EMCALChannelCalibrator (int nb=1000, float r=0.35) | |
| ~EMCALChannelCalibrator () final=default | |
| bool | hasEnoughData (const Slot &slot) const final |
| Checking if all channels have enough data to do calibration. | |
| void | initOutput () final |
| Initialize the vector of our output objects. | |
| void | finalizeSlot (Slot &slot) final |
| o2::calibration::TimeSlot< DataInput > & | emplaceNewSlot (bool front, TFType tstart, TFType tend) final |
| bool | saveLastSlotData (TFile &fl) final |
| Write histograms for energy and time vs cell ID to file. | |
| bool | adoptSavedData (const o2::calibration::TimeSlotMetaData &metadata, TFile &fl) final |
| Read histograms for energy and time vs cell ID to file. | |
| void | setIsTest (bool isTest) |
| Set the testing status. | |
| bool | isTest () const |
| const CcdbObjectInfoVector & | getInfoVector () const |
| const std::vector< DataOutput > & | getOutputVector () const |
| bool | getSaveAtEOR () const |
| get if has enough data should be circumvented at EOR | |
| void | setSaveAtEOR (bool tmp) |
| set if has enough data should be circumvented at EOR | |
| bool | getLoadAtSOR () const |
| get if has enough data should be circumvented at EOR | |
| void | setLoadAtSOR (bool tmp) |
| set if has enough data should be circumvented at EOR | |
| std::shared_ptr< EMCALCalibExtractor > | getCalibExtractor () |
| Configure the calibrator. | |
| void | SetCalibExtractor (std::shared_ptr< EMCALCalibExtractor > extr) |
| setter for mCalibrator | |
| bool | setGainCalibrationFactors (o2::emcal::GainCalibrationFactors *gainCalibFactors) |
| void | setFillNr (int fn) |
| Set current fill number. | |
| void | setRunType (o2::parameters::GRPECSObject::RunType rt) |
| Set current run type. | |
| void | setCurrTSInHours (int ts) |
| Set current timestamp obtained from data. | |
Public Member Functions inherited from o2::calibration::TimeSlotCalibration< DataInput > | |
| 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 |
| Slot & | getSlotForTF (TFType tf) |
| Slot & | getSlot (int i) |
| const Slot & | getSlot (int i) const |
| const Slot & | getLastSlot () const |
| const Slot & | getFirstSlot () 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::TFIDInfo & | getCurrentTFInfo () const |
| o2::dataformats::TFIDInfo & | getCurrentTFInfo () |
| 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 | loadSavedSlot () |
| virtual bool | saveLastSlot () |
class used for managment of bad channel and time calibration template DataInput can be ChannelData or TimeData // o2::emcal::EMCALChannelData, o2::emcal::EMCALTimeCalibData
Definition at line 53 of file EMCALChannelCalibrator.h.
|
inline |
Definition at line 62 of file EMCALChannelCalibrator.h.
|
finaldefault |
|
finalvirtual |
Read histograms for energy and time vs cell ID to file.
| metadata | metadata description of the data |
| fl | file that we write the histograms to |
Reimplemented from o2::calibration::TimeSlotCalibration< DataInput >.
Definition at line 334 of file EMCALChannelCalibrator.h.
|
finalvirtual |
Implements o2::calibration::TimeSlotCalibration< DataInput >.
Definition at line 261 of file EMCALChannelCalibrator.h.
|
finalvirtual |
Implements o2::calibration::TimeSlotCalibration< DataInput >.
Definition at line 164 of file EMCALChannelCalibrator.h.
|
inline |
Configure the calibrator.
Definition at line 98 of file EMCALChannelCalibrator.h.
|
inline |
Definition at line 84 of file EMCALChannelCalibrator.h.
|
inline |
get if has enough data should be circumvented at EOR
Definition at line 93 of file EMCALChannelCalibrator.h.
|
inline |
Definition at line 85 of file EMCALChannelCalibrator.h.
|
inline |
get if has enough data should be circumvented at EOR
Definition at line 88 of file EMCALChannelCalibrator.h.
|
finalvirtual |
Checking if all channels have enough data to do calibration.
Implements o2::calibration::TimeSlotCalibration< DataInput >.
Definition at line 152 of file EMCALChannelCalibrator.h.
|
finalvirtual |
Initialize the vector of our output objects.
Implements o2::calibration::TimeSlotCalibration< DataInput >.
Definition at line 136 of file EMCALChannelCalibrator.h.
|
inline |
Definition at line 82 of file EMCALChannelCalibrator.h.
|
finalvirtual |
Write histograms for energy and time vs cell ID to file.
| fl | file that we write the histograms to |
Reimplemented from o2::calibration::TimeSlotCalibration< DataInput >.
Definition at line 272 of file EMCALChannelCalibrator.h.
|
inline |
setter for mCalibrator
Definition at line 100 of file EMCALChannelCalibrator.h.
|
inline |
Set current timestamp obtained from data.
| ts | timestamp in hours |
Definition at line 114 of file EMCALChannelCalibrator.h.
|
inline |
Set current fill number.
| fn | fill number |
Definition at line 106 of file EMCALChannelCalibrator.h.
| bool EMCALChannelCalibrator::setGainCalibrationFactors | ( | o2::emcal::GainCalibrationFactors * | gainCalibFactors | ) |
Definition at line 412 of file EMCALChannelCalibrator.h.
|
inline |
Set the testing status.
Definition at line 81 of file EMCALChannelCalibrator.h.
|
inline |
set if has enough data should be circumvented at EOR
Definition at line 95 of file EMCALChannelCalibrator.h.
|
inline |
Set current run type.
| rt | tun type |
Definition at line 110 of file EMCALChannelCalibrator.h.
|
inline |
set if has enough data should be circumvented at EOR
Definition at line 90 of file EMCALChannelCalibrator.h.