#include <CondTools/SiPixel/interface/SiPixelGainCalibrationOfflineService.h>
Public Member Functions | |
float | getGain (const uint32_t &detID, const int &col, const int &row) |
float | getPedestal (const uint32_t &detID, const int &col, const int &row) |
bool | isDead (const uint32_t &detID, const int &col, const int &row) |
bool | isDeadColumn (const uint32_t &detID, const int &col, const int &row) |
SiPixelGainCalibrationOfflineService (const edm::ParameterSet &conf) | |
~SiPixelGainCalibrationOfflineService () |
Definition at line 21 of file SiPixelGainCalibrationOfflineService.h.
SiPixelGainCalibrationOfflineService::SiPixelGainCalibrationOfflineService | ( | const edm::ParameterSet & | conf | ) | [inline, explicit] |
Definition at line 25 of file SiPixelGainCalibrationOfflineService.h.
00025 : SiPixelGainCalibrationServicePayloadGetter<SiPixelGainCalibrationOffline,SiPixelGainCalibrationOfflineRcd>(conf){};
SiPixelGainCalibrationOfflineService::~SiPixelGainCalibrationOfflineService | ( | ) | [inline] |
float SiPixelGainCalibrationOfflineService::getGain | ( | const uint32_t & | detID, | |
const int & | col, | |||
const int & | row | |||
) | [virtual] |
Definition at line 31 of file SiPixelGainCalibrationOfflineService.cc.
References SiPixelGainCalibrationServicePayloadGetter< SiPixelGainCalibrationOffline, SiPixelGainCalibrationOfflineRcd >::getGainByColumn(), isDead(), and SiPixelGainCalibrationServicePayloadGetter< SiPixelGainCalibrationOffline, SiPixelGainCalibrationOfflineRcd >::throwExepctionForBadRead().
00032 { 00033 bool isDead = false; 00034 float gainValue = this->getGainByColumn(detID, col, row, isDead); 00035 if (isDead) 00036 { 00037 this->throwExepctionForBadRead("Offline getGain()", detID, col, row, gainValue); 00038 return 0.0; 00039 } 00040 return gainValue; 00041 }
float SiPixelGainCalibrationOfflineService::getPedestal | ( | const uint32_t & | detID, | |
const int & | col, | |||
const int & | row | |||
) | [virtual] |
Definition at line 19 of file SiPixelGainCalibrationOfflineService.cc.
References SiPixelGainCalibrationServicePayloadGetter< SiPixelGainCalibrationOffline, SiPixelGainCalibrationOfflineRcd >::getPedestalByPixel(), isDead(), and SiPixelGainCalibrationServicePayloadGetter< SiPixelGainCalibrationOffline, SiPixelGainCalibrationOfflineRcd >::throwExepctionForBadRead().
00020 { 00021 bool isDead = false; 00022 float pedestalValue = this->getPedestalByPixel(detID, col, row, isDead); 00023 if (isDead) 00024 { 00025 this->throwExepctionForBadRead("Offline getPedestal()", detID, col, row, pedestalValue); 00026 return 0.0; 00027 } 00028 return pedestalValue; 00029 }
bool SiPixelGainCalibrationOfflineService::isDead | ( | const uint32_t & | detID, | |
const int & | col, | |||
const int & | row | |||
) | [virtual] |
Definition at line 43 of file SiPixelGainCalibrationOfflineService.cc.
Referenced by getGain(), getPedestal(), isDeadColumn(), and SiPixelDigitizerAlgorithm::pixel_inefficiency_db().
00044 { 00045 bool isDead = false; 00046 this->getPedestalByPixel(detID, col, row, isDead); 00047 return isDead; 00048 }
bool SiPixelGainCalibrationOfflineService::isDeadColumn | ( | const uint32_t & | detID, | |
const int & | col, | |||
const int & | row | |||
) | [virtual] |
Definition at line 50 of file SiPixelGainCalibrationOfflineService.cc.
References SiPixelGainCalibrationServicePayloadGetter< SiPixelGainCalibrationOffline, SiPixelGainCalibrationOfflineRcd >::getGainByColumn(), and isDead().
00051 { 00052 bool isDead = false; 00053 this->getGainByColumn(detID, col, row, isDead); // the gain column average can flag a whole column as bad 00054 return isDead; 00055 }