Project
Loading...
Searching...
No Matches
o2::emcal::EMCALTempCalibExtractor Class Reference

#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 shortgetSensorsForSM (const unsigned short iSM) const
 get sensor IDs for a specific supermodule
 

Detailed Description

Definition at line 34 of file EMCALTempCalibExtractor.h.

Constructor & Destructor Documentation

◆ EMCALTempCalibExtractor()

o2::emcal::EMCALTempCalibExtractor::EMCALTempCalibExtractor ( )
inline

Constructor.

Definition at line 39 of file EMCALTempCalibExtractor.h.

◆ ~EMCALTempCalibExtractor()

o2::emcal::EMCALTempCalibExtractor::~EMCALTempCalibExtractor ( )
default

Destructor.

Member Function Documentation

◆ getGainCalibFactor()

float EMCALTempCalibExtractor::getGainCalibFactor ( const unsigned short  cellID) const

get gain calibration factor depending on the temperature and the slope of the cell

Parameters
cellIDcell ID
Returns
gain calibration factor

Definition at line 96 of file EMCALTempCalibExtractor.cxx.

◆ getSensorsForSM()

std::vector< unsigned short > EMCALTempCalibExtractor::getSensorsForSM ( const unsigned short  iSM) const

get sensor IDs for a specific supermodule

Parameters
iSMSM number
Returns
vector of sensor IDs

Definition at line 105 of file EMCALTempCalibExtractor.cxx.

◆ getTemperatureForSM()

float EMCALTempCalibExtractor::getTemperatureForSM ( const unsigned short  iSM,
o2::emcal::ElmbData ElmbData 
) const

get average temperature in a supermodule

Parameters
iSMSM number
ElmbDataobject where temperature sensor values are stored
Returns
average temperature in a supermodule

Definition at line 54 of file EMCALTempCalibExtractor.cxx.

◆ InitializeFromCCDB()

void EMCALTempCalibExtractor::InitializeFromCCDB ( std::string  path,
uint64_t  timestamp 
)

Initialize temperature data and slope for each cell from the ccdb.

Parameters
pathpath to the slope data
timestamptimestamp for the ccdb objects or runnumber (will detect automatically if its a runnumber and convert it)

Definition at line 23 of file EMCALTempCalibExtractor.cxx.

◆ setAcceptedEnergyRange()

void EMCALTempCalibExtractor::setAcceptedEnergyRange ( float  low,
float  high 
)

set temperature range in which sensor ddata is assumed to be good

Parameters
lowlower temperature
highupper temperature

Definition at line 119 of file EMCALTempCalibExtractor.cxx.

◆ setUseMedian()

void o2::emcal::EMCALTempCalibExtractor::setUseMedian ( const bool  tmp)
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.


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