00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #include "CondTools/SiPixel/interface/SiPixelGainCalibrationForHLTService.h"
00018
00019 float SiPixelGainCalibrationForHLTService::getPedestal( const uint32_t& detID,const int& col, const int& row)
00020 {
00021 bool isDead = false;
00022 float pedestalValue = this->getPedestalByColumn(detID, col, row, isDead);
00023 if (isDead)
00024 {
00025 this->throwExepctionForBadRead("HLT getPedestal()", detID, col, row, pedestalValue);
00026 return 0.0;
00027 }
00028 return pedestalValue;
00029 }
00030
00031 float SiPixelGainCalibrationForHLTService::getGain( const uint32_t& detID,const int& col, const int& row)
00032 {
00033 bool isDead = false;
00034 float gainValue = this->getGainByColumn(detID, col, row, isDead);
00035 if (isDead)
00036 {
00037 this->throwExepctionForBadRead("HLT getGain()", detID, col, row, gainValue);
00038 return 0.0;
00039 }
00040 return gainValue;
00041 }
00042
00043 bool SiPixelGainCalibrationForHLTService::isDead( const uint32_t& detID,const int& col, const int& row)
00044 {
00045 bool isDead = false;
00046 this->getPedestalByColumn(detID, col, row, isDead);
00047 return isDead;
00048 }
00049
00050 bool SiPixelGainCalibrationForHLTService::isDeadColumn( const uint32_t& detID,const int& col, const int& row)
00051 {
00052 bool isDead = false;
00053 this->getGainByColumn(detID, col, row, isDead);
00054 return isDead;
00055 }
00056