![]() |
Project
|
#include <EMCALTempCalibExtractor.h>
Public Member Functions | |
EMCALTempCalibExtractor () | |
Constructor. | |
~EMCALTempCalibExtractor ()=default | |
Destructor. | |
void | InitializeFromCCDB (std::string path, uint64_t timestamp) |
Initialize temperature data and slope for each cell from the ccdb. | |
float | getTemperatureForSM (const unsigned short iSM, o2::emcal::ElmbData *ElmbData) const |
get average temperature in a supermodule | |
float | getGainCalibFactor (const unsigned short cellID) const |
get gain calibration factor depending on the temperature and the slope of the cell | |
void | setAcceptedEnergyRange (float low, float high) |
set temperature range in which sensor ddata is assumed to be good | |
void | setUseMedian (const bool tmp) |
set if median (true) or mean (false) should be used for averaging of the temperature in a SM | |
std::vector< unsigned short > | getSensorsForSM (const unsigned short iSM) const |
get sensor IDs for a specific supermodule | |
Definition at line 34 of file EMCALTempCalibExtractor.h.
|
inline |
Constructor.
Definition at line 39 of file EMCALTempCalibExtractor.h.
|
default |
Destructor.
float EMCALTempCalibExtractor::getGainCalibFactor | ( | const unsigned short | cellID | ) | const |
get gain calibration factor depending on the temperature and the slope of the cell
cellID | cell ID |
Definition at line 96 of file EMCALTempCalibExtractor.cxx.
std::vector< unsigned short > EMCALTempCalibExtractor::getSensorsForSM | ( | const unsigned short | iSM | ) | const |
get sensor IDs for a specific supermodule
iSM | SM number |
Definition at line 105 of file EMCALTempCalibExtractor.cxx.
float EMCALTempCalibExtractor::getTemperatureForSM | ( | const unsigned short | iSM, |
o2::emcal::ElmbData * | ElmbData | ||
) | const |
get average temperature in a supermodule
iSM | SM number |
ElmbData | object where temperature sensor values are stored |
Definition at line 54 of file EMCALTempCalibExtractor.cxx.
void EMCALTempCalibExtractor::InitializeFromCCDB | ( | std::string | path, |
uint64_t | timestamp | ||
) |
Initialize temperature data and slope for each cell from the ccdb.
path | path to the slope data |
timestamp | timestamp for the ccdb objects or runnumber (will detect automatically if its a runnumber and convert it) |
Definition at line 23 of file EMCALTempCalibExtractor.cxx.
void EMCALTempCalibExtractor::setAcceptedEnergyRange | ( | float | low, |
float | high | ||
) |
set temperature range in which sensor ddata is assumed to be good
low | lower temperature |
high | upper temperature |
Definition at line 119 of file EMCALTempCalibExtractor.cxx.
|
inline |
set if median (true) or mean (false) should be used for averaging of the temperature in a SM
Definition at line 74 of file EMCALTempCalibExtractor.h.