#include <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) |
bool | isNoisy (const uint32_t &detID, const int &col, const int &row) |
bool | isNoisyColumn (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] |
SiPixelGainCalibrationOfflineService::~SiPixelGainCalibrationOfflineService | ( | ) | [inline] |
Definition at line 26 of file SiPixelGainCalibrationOfflineService.h.
{};
float SiPixelGainCalibrationOfflineService::getGain | ( | const uint32_t & | detID, |
const int & | col, | ||
const int & | row | ||
) | [virtual] |
Definition at line 32 of file SiPixelGainCalibrationOfflineService.cc.
References SiPixelGainCalibrationServicePayloadGetter< SiPixelGainCalibrationOffline, SiPixelGainCalibrationOfflineRcd >::getGainByColumn(), isDead(), isNoisy(), and SiPixelGainCalibrationServicePayloadGetter< SiPixelGainCalibrationOffline, SiPixelGainCalibrationOfflineRcd >::throwExepctionForBadRead().
{ bool isDead = false; bool isNoisy = false; float gainValue = this->getGainByColumn(detID, col, row, isDead, isNoisy); if (isDead || isNoisy) { this->throwExepctionForBadRead("Offline getGain()", detID, col, row, gainValue); return 0.0; } return gainValue; }
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(), isNoisy(), and SiPixelGainCalibrationServicePayloadGetter< SiPixelGainCalibrationOffline, SiPixelGainCalibrationOfflineRcd >::throwExepctionForBadRead().
{ bool isDead = false; bool isNoisy = false; float pedestalValue = this->getPedestalByPixel(detID, col, row, isDead, isNoisy); if (isDead || isNoisy) { this->throwExepctionForBadRead("Offline getPedestal()", detID, col, row, pedestalValue); return 0.0; } return pedestalValue; }
bool SiPixelGainCalibrationOfflineService::isDead | ( | const uint32_t & | detID, |
const int & | col, | ||
const int & | row | ||
) | [virtual] |
Definition at line 45 of file SiPixelGainCalibrationOfflineService.cc.
References ExpressReco_HICollisions_FallBack::e, SiPixelGainCalibrationServicePayloadGetter< SiPixelGainCalibrationOffline, SiPixelGainCalibrationOfflineRcd >::getPedestalByPixel(), isNoisy(), and cms::Exception::what().
Referenced by getGain(), getPedestal(), isDeadColumn(), isNoisy(), and isNoisyColumn().
{ bool isDead = false; bool isNoisy = false; try { this->getPedestalByPixel(detID, col, row, isDead, isNoisy); } catch (cms::Exception& e) { // Do not stop processing if you check if a nonexistant pixel is dead edm::LogInfo("SiPixelGainCalibrationOfflineService") << "Attempting to check if nonexistant pixel is dead. Exception message: " << e.what(); isDead = false; } return isDead; }
bool SiPixelGainCalibrationOfflineService::isDeadColumn | ( | const uint32_t & | detID, |
const int & | col, | ||
const int & | row | ||
) | [virtual] |
Definition at line 79 of file SiPixelGainCalibrationOfflineService.cc.
References ExpressReco_HICollisions_FallBack::e, SiPixelGainCalibrationServicePayloadGetter< SiPixelGainCalibrationOffline, SiPixelGainCalibrationOfflineRcd >::getGainByColumn(), isDead(), isNoisy(), and cms::Exception::what().
{ bool isDead = false; bool isNoisy = false; try { this->getGainByColumn(detID, col, row, isDead, isNoisy); // the gain column average can flag a whole column as bad } catch (cms::Exception& e) { // Do not stop processing if you check if a nonexistant pixel is dead edm::LogInfo("SiPixelGainCalibrationOfflineService") << "Attempting to check if nonexistant pixel is dead. Exception message: " << e.what(); isDead = false; } return isDead; }
bool SiPixelGainCalibrationOfflineService::isNoisy | ( | const uint32_t & | detID, |
const int & | col, | ||
const int & | row | ||
) | [virtual] |
Definition at line 62 of file SiPixelGainCalibrationOfflineService.cc.
References ExpressReco_HICollisions_FallBack::e, SiPixelGainCalibrationServicePayloadGetter< SiPixelGainCalibrationOffline, SiPixelGainCalibrationOfflineRcd >::getPedestalByPixel(), isDead(), and cms::Exception::what().
Referenced by getGain(), getPedestal(), isDead(), isDeadColumn(), and isNoisyColumn().
{ bool isDead = false; bool isNoisy = false; try { this->getPedestalByPixel(detID, col, row, isDead, isNoisy); } catch (cms::Exception& e) { // Do not stop processing if you check if a nonexistant pixel is dead edm::LogInfo("SiPixelGainCalibrationOfflineService") << "Attempting to check if nonexistant pixel is noisy. Exception message: " << e.what(); isNoisy = false; } return isNoisy; }
bool SiPixelGainCalibrationOfflineService::isNoisyColumn | ( | const uint32_t & | detID, |
const int & | col, | ||
const int & | row | ||
) | [virtual] |
Definition at line 96 of file SiPixelGainCalibrationOfflineService.cc.
References ExpressReco_HICollisions_FallBack::e, SiPixelGainCalibrationServicePayloadGetter< SiPixelGainCalibrationOffline, SiPixelGainCalibrationOfflineRcd >::getGainByColumn(), isDead(), isNoisy(), and cms::Exception::what().
{ bool isDead = false; bool isNoisy = false; try { this->getGainByColumn(detID, col, row, isDead, isNoisy); // the gain column average can flag a whole column as bad } catch (cms::Exception& e) { // Do not stop processing if you check if a nonexistant pixel is dead edm::LogInfo("SiPixelGainCalibrationOfflineService") << "Attempting to check if nonexistant pixel is Noisy. Exception message: " << e.what(); isNoisy = false; } return isNoisy; }