![]() |
Project
|
Recalibration workflow at cell level. More...
#include <CellRecalibratorSpec.h>
Inherits o2::framework::Task.
Public Types | |
enum class | LEDEventSettings { KEEP , DROP , REDIRECT } |
Dedicated handling for LED events. More... | |
Public Member Functions | |
CellRecalibratorSpec (uint32_t outputspec, LEDEventSettings ledsettings, bool badChannelCalib, bool timeCalib, bool gainCalib, bool isMC, std::shared_ptr< CalibLoader >(calibHandler)) | |
Constructor. | |
~CellRecalibratorSpec () final=default | |
Destructor. | |
void | init (framework::InitContext &ctx) final |
Initialize recalibrator. | |
void | run (framework::ProcessingContext &ctx) final |
Run recalibration of cells for a new timeframe. | |
void | finaliseCCDB (framework::ConcreteDataMatcher &matcher, void *obj) final |
Fetching cell objects and assigning them to the internal handlers. | |
void | setRunBadChannelCalibration (bool doRun) |
Switch for bad channel calibration. | |
void | setRunTimeCalibration (bool doRun) |
Switch for time calibration. | |
void | setRunGainCalibration (bool doRun) |
Switch for the gain calibration. | |
bool | isRunBadChannlCalibration () const |
Check if the bad channel calibration is enabled. | |
bool | isRunTimeCalibration () const |
Check if the time calibration is enabled. | |
bool | isRunGainCalibration () const |
Check if the gain calibration is enabled. | |
![]() | |
virtual | ~Task () |
virtual void | endOfStream (EndOfStreamContext &context) |
This is invoked whenever we have an EndOfStream event. | |
virtual void | stop () |
This is invoked on stop. | |
Recalibration workflow at cell level.
The workflow recalibrates a cell vector (with corresponding trigger records) for a given timeframe. The following calibrations are supported:
While the energy and time calibration only change values within a cell the bad channel calibration decides whether a cell is accepted. Therefore the amount of cells can change for the given trigger. New trigger record objects are created and published to the same subspec as what is used for the output cell vector.
Definition at line 56 of file CellRecalibratorSpec.h.
|
strong |
Dedicated handling for LED events.
Enumerator | |
---|---|
KEEP | Keep LED events in timeframe (uncalibrated) |
DROP | Drop LED events. |
REDIRECT | Redirect LED events to dedicated output. |
Definition at line 61 of file CellRecalibratorSpec.h.
CellRecalibratorSpec::CellRecalibratorSpec | ( | uint32_t | outputspec, |
LEDEventSettings | ledsettings, | ||
bool | badChannelCalib, | ||
bool | timeCalib, | ||
bool | gainCalib, | ||
bool | isMC, | ||
std::shared_ptr< CalibLoader > | calibHandler | ||
) |
Constructor.
outputspec | Subspecification under which the output is posted |
ledsettings | Handling of cells from LED events |
badChannelCalib | If true the bad channel calibration is enabled |
timeCalib | If true the time calibration is enabled |
gainCalib | If true the gain calibration is enabled |
isMC | If true the MCLabelContainer is adapted |
calibHandler | Handler for calibration object loading |
Definition at line 26 of file CellRecalibratorSpec.cxx.
|
finaldefault |
Destructor.
|
finalvirtual |
Fetching cell objects and assigning them to the internal handlers.
matcher | Data type matcher of the CCDB object |
obj | Pointer to CCDB object loaded |
Loading CCDB object into internal cache for the 3 supported CCDB entries (bad channel map, time calibration params, gain calibration params). Objects are only loaded in case the calibration type was enabled.
Reimplemented from o2::framework::Task.
Definition at line 146 of file CellRecalibratorSpec.cxx.
|
finalvirtual |
Initialize recalibrator.
ctx | Init context |
Reimplemented from o2::framework::Task.
Definition at line 33 of file CellRecalibratorSpec.cxx.
|
inline |
Check if the bad channel calibration is enabled.
Definition at line 115 of file CellRecalibratorSpec.h.
|
inline |
Check if the gain calibration is enabled.
Definition at line 123 of file CellRecalibratorSpec.h.
|
inline |
Check if the time calibration is enabled.
Definition at line 119 of file CellRecalibratorSpec.h.
|
finalvirtual |
Run recalibration of cells for a new timeframe.
ctx | Processing context |
Iterates over all triggers in the timeframe and recalibrates cells. Only calibrations which are enabled are applied. Calibrated cells and new trigger records are posted at the end of the timeframe to the subspecification requested in the constructor using standard types for cells and trigger records
Implements o2::framework::Task.
Definition at line 57 of file CellRecalibratorSpec.cxx.
|
inline |
Switch for bad channel calibration.
doRun | If true the bad channel calibration is applied |
Definition at line 103 of file CellRecalibratorSpec.h.
|
inline |
Switch for the gain calibration.
doRun | If true the gain calibration is applied |
Definition at line 111 of file CellRecalibratorSpec.h.
|
inline |
Switch for time calibration.
doRun | If true the time calibration is applied |
Definition at line 107 of file CellRecalibratorSpec.h.