![]() |
Project
|
Interface to calibration data from CCDB for EMCAL. More...
#include <CalibDB.h>
Classes | |
class | ObjectNotFoundException |
Handling errors due to objects not found in the CCDB. More... | |
class | TypeMismatchException |
Class handling errors of wrong type of a query result. More... | |
Public Member Functions | |
CalibDB ()=default | |
Default constructor. | |
CalibDB (const std::string_view server) | |
Constructor initializing also the server. | |
~CalibDB ()=default | |
Destructor. | |
void | storeBadChannelMap (BadChannelMap *bcm, const std::map< std::string, std::string > &metadata, ULong_t timestart, ULong_t timeend) |
Store bad channel map in the CCDB. | |
BadChannelMap * | readBadChannelMap (ULong_t timestamp, const std::map< std::string, std::string > &metadata) |
Find bad channel map in the CCDB for given timestamp. | |
void | storeTimeCalibParam (TimeCalibrationParams *tcp, const std::map< std::string, std::string > &metadata, ULong_t timestart, ULong_t timeend) |
Store time calibration coefficiencts in the CCDB. | |
TimeCalibrationParams * | readTimeCalibParam (ULong_t timestamp, const std::map< std::string, std::string > &metadata) |
Find time calibration coefficiencts in the CCDB for given timestamp. | |
void | storeTimeCalibParamL1Phase (TimeCalibParamL1Phase *tcp, const std::map< std::string, std::string > &metadata, ULong_t timestart, ULong_t timeend) |
Store L1 phase shifts in the CCDB. | |
TimeCalibParamL1Phase * | readTimeCalibParamL1Phase (ULong_t timestamp, const std::map< std::string, std::string > &metadata) |
Find L1 phase shifts in the CCDB for given timestamp. | |
void | storeTempCalibParam (TempCalibrationParams *tcp, const std::map< std::string, std::string > &metadata, ULong_t timestart, ULong_t timeend) |
Store temperature calibration coefficiencts in the CCDB. | |
TempCalibrationParams * | readTempCalibParam (ULong_t timestamp, const std::map< std::string, std::string > &metadata) |
Find temperature calibration coefficiencts in the CCDB for given timestamp. | |
void | storeTempCalibParamSM (TempCalibParamSM *tcp, const std::map< std::string, std::string > &metadata, ULong_t timestart, ULong_t timeend) |
Store temperature calibration coefficiencts per SM in the CCDB. | |
TempCalibParamSM * | readTempCalibParamSM (ULong_t timestamp, const std::map< std::string, std::string > &metadata) |
Find temperature calibration coefficiencts per SM in the CCDB for given timestamp. | |
void | storeGainCalibFactors (GainCalibrationFactors *gcf, const std::map< std::string, std::string > &metadata, ULong_t timestart, ULong_t timeend) |
Store gain calibration factors in the CCDB. | |
GainCalibrationFactors * | readGainCalibFactors (ULong_t timestamp, const std::map< std::string, std::string > &metadata) |
Find gain calibration factors in the CCDB for given timestamp. | |
EMCALChannelScaleFactors * | readChannelScaleFactors (ULong_t timestamp, const std::map< std::string, std::string > &metadata) |
Find scale factors used for bad channel calibration in the CCDB for given timestamp. | |
void | storeFeeDCSData (FeeDCS *dcs, const std::map< std::string, std::string > &metadata, ULong_t timestart, ULong_t timeend) |
Store FEE DCS data in the CCDB. | |
FeeDCS * | readFeeDCSData (ULong_t timestamp, const std::map< std::string, std::string > &metadata) |
Find FEE DCS data in the CCDB for given timestamp. | |
void | storeTemperatureSensorData (ElmbData *dcs, const std::map< std::string, std::string > &metadata, ULong_t timestart, ULong_t timeend) |
Store Temperature Sensor data in the CCDB. | |
ElmbData * | readTemperatureSensorData (ULong_t timestamp, const std::map< std::string, std::string > &metadata) |
Find Temperature Sensor data in the CCDB for given timestamp. | |
void | storePedestalData (Pedestal *pedestals, const std::map< std::string, std::string > &metadata, ULong_t timestart, ULong_t timeend) |
Store pedestal data in the CCDB. | |
Pedestal * | readPedestalData (ULong_t timestamp, const std::map< std::string, std::string > &metadata) |
Find pedestal data in the CCDB for given timestamp. | |
void | setServer (const std::string_view server) |
Set new CCDB server URL. | |
Static Public Member Functions | |
static const char * | getCDBPathBadChannelMap () |
Get CDB path for the bad channel map. | |
static const char * | getCDBPathTimeCalibrationParams () |
Get CDB path for the time calibration. | |
static const char * | getCDBPathL1Phase () |
Get CDB path for the L1 Phase. | |
static const char * | getCDBPathTemperatureCalibrationParams () |
Get CDB path for the temperature calibration. | |
static const char * | getCDBPathTemperatureCalibrationParamsSM () |
Get CDB path for the SM-dependent temperature calibration. | |
static const char * | getCDBPathGainCalibrationParams () |
Get CDB path for the gain calibration. | |
static const char * | getCDBPathFeeDCS () |
Get CDB path for the FEE DCS settings. | |
static const char * | getCDBPathTemperatureSensor () |
Get CDB path for the Temperature Sensor data. | |
static const char * | getCDBPathChannelScaleFactors () |
Get CCDB path for the scale factors used in the bad channel calibration. | |
static const char * | getCDBPathChannelPedestals () |
Get CCDB path for the pedestal data. | |
Interface to calibration data from CCDB for EMCAL.
Interface handling simple access to CCDB content for EMCAL objects. The interface allows storing and reading of the common EMCAL calibration objects
Attention: The read process of the CCDB objects might fail, either because the query of the CCDB was not successfull (wrong server / path / timestamp) or the object type is different and internal conversion failed. In both cases dedicated exceptions are thrown:
|
default |
Default constructor.
CalibDB::CalibDB | ( | const std::string_view | server | ) |
Constructor initializing also the server.
server | Name of the CCDB server to be used in queries |
Definition at line 26 of file CalibDB.cxx.
|
default |
Destructor.
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
BadChannelMap * CalibDB::readBadChannelMap | ( | ULong_t | timestamp, |
const std::map< std::string, std::string > & | metadata | ||
) |
Find bad channel map in the CCDB for given timestamp.
timestamp | Timestamp used in query |
metadata | Additional metadata to be used in the query |
ObjectNotFoundException | if object is not found for the given timestamp |
TypeMismatchException | if object is present but type is different (CCDB corrupted) |
Definition at line 111 of file CalibDB.cxx.
EMCALChannelScaleFactors * CalibDB::readChannelScaleFactors | ( | ULong_t | timestamp, |
const std::map< std::string, std::string > & | metadata | ||
) |
Find scale factors used for bad channel calibration in the CCDB for given timestamp.
timestamp | Timestamp used in query (there is only one entry in the CCDB) |
metadata | Additional metadata to be used in the query |
ObjectNotFoundException | if object is not found for the given timestamp |
TypeMismatchException | if object is present but type is different (CCDB corrupted) |
Definition at line 189 of file CalibDB.cxx.
FeeDCS * CalibDB::readFeeDCSData | ( | ULong_t | timestamp, |
const std::map< std::string, std::string > & | metadata | ||
) |
Find FEE DCS data in the CCDB for given timestamp.
timestamp | Timestamp used in query |
metadata | Additional metadata to be used in the query |
ObjectNotFoundException | if object is not found for the given timestamp |
TypeMismatchException | if object is present but type is different (CCDB corrupted) |
Definition at line 202 of file CalibDB.cxx.
GainCalibrationFactors * CalibDB::readGainCalibFactors | ( | ULong_t | timestamp, |
const std::map< std::string, std::string > & | metadata | ||
) |
Find gain calibration factors in the CCDB for given timestamp.
timestamp | Timestamp used in query |
metadata | Additional metadata to be used in the query |
ObjectNotFoundException | if object is not found for the given timestamp |
TypeMismatchException | if object is present but type is different (CCDB corrupted) |
Definition at line 176 of file CalibDB.cxx.
Pedestal * CalibDB::readPedestalData | ( | ULong_t | timestamp, |
const std::map< std::string, std::string > & | metadata | ||
) |
Find pedestal data in the CCDB for given timestamp.
timestamp | Timestamp used in query |
metadata | Additional metadata to be used in the query |
ObjectNotFoundException | if object is not found for the given timestamp |
TypeMismatchException | if object is present but type is different (CCDB corrupted) |
Definition at line 228 of file CalibDB.cxx.
TempCalibrationParams * CalibDB::readTempCalibParam | ( | ULong_t | timestamp, |
const std::map< std::string, std::string > & | metadata | ||
) |
Find temperature calibration coefficiencts in the CCDB for given timestamp.
timestamp | Timestamp used in query |
metadata | Additional metadata to be used in the query |
ObjectNotFoundException | if object is not found for the given timestamp |
TypeMismatchException | if object is present but type is different (CCDB corrupted) |
Definition at line 150 of file CalibDB.cxx.
TempCalibParamSM * CalibDB::readTempCalibParamSM | ( | ULong_t | timestamp, |
const std::map< std::string, std::string > & | metadata | ||
) |
Find temperature calibration coefficiencts per SM in the CCDB for given timestamp.
timestamp | Timestamp used in query |
metadata | Additional metadata to be used in the query |
ObjectNotFoundException | if object is not found for the given timestamp |
TypeMismatchException | if object is present but type is different (CCDB corrupted) |
Definition at line 163 of file CalibDB.cxx.
ElmbData * CalibDB::readTemperatureSensorData | ( | ULong_t | timestamp, |
const std::map< std::string, std::string > & | metadata | ||
) |
Find Temperature Sensor data in the CCDB for given timestamp.
timestamp | Timestamp used in query |
metadata | Additional metadata to be used in the query |
ObjectNotFoundException | if object is not found for the given timestamp |
TypeMismatchException | if object is present but type is different (CCDB corrupted) |
Definition at line 215 of file CalibDB.cxx.
TimeCalibrationParams * CalibDB::readTimeCalibParam | ( | ULong_t | timestamp, |
const std::map< std::string, std::string > & | metadata | ||
) |
Find time calibration coefficiencts in the CCDB for given timestamp.
timestamp | Timestamp used in query |
metadata | Additional metadata to be used in the query |
ObjectNotFoundException | if object is not found for the given timestamp |
TypeMismatchException | if object is present but type is different (CCDB corrupted) |
Definition at line 124 of file CalibDB.cxx.
TimeCalibParamL1Phase * CalibDB::readTimeCalibParamL1Phase | ( | ULong_t | timestamp, |
const std::map< std::string, std::string > & | metadata | ||
) |
Find L1 phase shifts in the CCDB for given timestamp.
timestamp | Timestamp used in query |
metadata | Additional metadata to be used in the query |
ObjectNotFoundException | if object is not found for the given timestamp |
TypeMismatchException | if object is present but type is different (CCDB corrupted) |
Definition at line 137 of file CalibDB.cxx.
|
inline |
void CalibDB::storeBadChannelMap | ( | BadChannelMap * | bcm, |
const std::map< std::string, std::string > & | metadata, | ||
ULong_t | timestart, | ||
ULong_t | timeend | ||
) |
Store bad channel map in the CCDB.
bcm | Bad channel map to be stored |
metadata | Additional metadata that can be used in the query |
timestart | Start of the time range of the validity of the object |
timeend | End of the time range of the validity of the object |
Definition at line 39 of file CalibDB.cxx.
void CalibDB::storeFeeDCSData | ( | FeeDCS * | dcs, |
const std::map< std::string, std::string > & | metadata, | ||
ULong_t | timestart, | ||
ULong_t | timeend | ||
) |
Store FEE DCS data in the CCDB.
dcs | FEE DCS data to be stored |
metadata | Additional metadata that can be used in the query |
timestart | Start of the time range of the validity of the object |
timeend | End of the time range of the validity of the object |
Definition at line 87 of file CalibDB.cxx.
void CalibDB::storeGainCalibFactors | ( | GainCalibrationFactors * | gcf, |
const std::map< std::string, std::string > & | metadata, | ||
ULong_t | timestart, | ||
ULong_t | timeend | ||
) |
Store gain calibration factors in the CCDB.
gcf | temperature calibration coefficiencts to be stored |
metadata | Additional metadata that can be used in the query |
timestart | Start of the time range of the validity of the object |
timeend | End of the time range of the validity of the object |
Definition at line 79 of file CalibDB.cxx.
void CalibDB::storePedestalData | ( | Pedestal * | pedestals, |
const std::map< std::string, std::string > & | metadata, | ||
ULong_t | timestart, | ||
ULong_t | timeend | ||
) |
Store pedestal data in the CCDB.
pedestals | Pedestal data to be stored |
metadata | Additional metadata that can be used in the query |
timestart | Start of the time range of the validity of the object |
timeend | End of the time range of the validity of the object |
Definition at line 103 of file CalibDB.cxx.
void CalibDB::storeTempCalibParam | ( | TempCalibrationParams * | tcp, |
const std::map< std::string, std::string > & | metadata, | ||
ULong_t | timestart, | ||
ULong_t | timeend | ||
) |
Store temperature calibration coefficiencts in the CCDB.
tcp | temperature calibration coefficiencts to be stored |
metadata | Additional metadata that can be used in the query |
timestart | Start of the time range of the validity of the object |
timeend | End of the time range of the validity of the object |
Definition at line 63 of file CalibDB.cxx.
void CalibDB::storeTempCalibParamSM | ( | TempCalibParamSM * | tcp, |
const std::map< std::string, std::string > & | metadata, | ||
ULong_t | timestart, | ||
ULong_t | timeend | ||
) |
Store temperature calibration coefficiencts per SM in the CCDB.
tcp | temperature calibration coefficiencts per SM to be stored |
metadata | Additional metadata that can be used in the query |
timestart | Start of the time range of the validity of the object |
timeend | End of the time range of the validity of the object |
Definition at line 71 of file CalibDB.cxx.
void CalibDB::storeTemperatureSensorData | ( | ElmbData * | dcs, |
const std::map< std::string, std::string > & | metadata, | ||
ULong_t | timestart, | ||
ULong_t | timeend | ||
) |
Store Temperature Sensor data in the CCDB.
dcs | Temperature Sensor data to be stored |
metadata | Additional metadata that can be used in the query |
timestart | Start of the time range of the validity of the object |
timeend | End of the time range of the validity of the object |
Definition at line 95 of file CalibDB.cxx.
void CalibDB::storeTimeCalibParam | ( | TimeCalibrationParams * | tcp, |
const std::map< std::string, std::string > & | metadata, | ||
ULong_t | timestart, | ||
ULong_t | timeend | ||
) |
Store time calibration coefficiencts in the CCDB.
tcp | time calibration coefficiencts to be stored |
metadata | Additional metadata that can be used in the query |
timestart | Start of the time range of the validity of the object |
timeend | End of the time range of the validity of the object |
Definition at line 47 of file CalibDB.cxx.
void CalibDB::storeTimeCalibParamL1Phase | ( | TimeCalibParamL1Phase * | tcp, |
const std::map< std::string, std::string > & | metadata, | ||
ULong_t | timestart, | ||
ULong_t | timeend | ||
) |
Store L1 phase shifts in the CCDB.
tcp | L1 phase shifts to be stored |
metadata | Additional metadata that can be used in the query |
timestart | Start of the time range of the validity of the object |
timeend | End of the time range of the validity of the object |
Definition at line 55 of file CalibDB.cxx.