#include <SiPixelGainCalibrationForHLTService.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) |
SiPixelGainCalibrationForHLTService (const edm::ParameterSet &conf) | |
~SiPixelGainCalibrationForHLTService () |
Definition at line 21 of file SiPixelGainCalibrationForHLTService.h.
SiPixelGainCalibrationForHLTService::SiPixelGainCalibrationForHLTService | ( | const edm::ParameterSet & | conf | ) | [inline, explicit] |
Definition at line 25 of file SiPixelGainCalibrationForHLTService.h.
SiPixelGainCalibrationForHLTService::~SiPixelGainCalibrationForHLTService | ( | ) | [inline] |
Definition at line 26 of file SiPixelGainCalibrationForHLTService.h.
{};
float SiPixelGainCalibrationForHLTService::getGain | ( | const uint32_t & | detID, |
const int & | col, | ||
const int & | row | ||
) | [virtual] |
Implements SiPixelGainCalibrationServicePayloadGetter< SiPixelGainCalibrationForHLT, SiPixelGainCalibrationForHLTRcd >.
Definition at line 32 of file SiPixelGainCalibrationForHLTService.cc.
References SiPixelGainCalibrationServicePayloadGetter< SiPixelGainCalibrationForHLT, SiPixelGainCalibrationForHLTRcd >::getGainByColumn(), isDead(), isNoisy(), and SiPixelGainCalibrationServicePayloadGetter< SiPixelGainCalibrationForHLT, SiPixelGainCalibrationForHLTRcd >::throwExepctionForBadRead().
{ bool isDead = false; bool isNoisy = false; float gainValue = this->getGainByColumn(detID, col, row, isDead, isNoisy); if (isDead || isNoisy) { this->throwExepctionForBadRead("HLT getGain()", detID, col, row, gainValue); return 0.0; } return gainValue; }
float SiPixelGainCalibrationForHLTService::getPedestal | ( | const uint32_t & | detID, |
const int & | col, | ||
const int & | row | ||
) | [virtual] |
Implements SiPixelGainCalibrationServicePayloadGetter< SiPixelGainCalibrationForHLT, SiPixelGainCalibrationForHLTRcd >.
Definition at line 19 of file SiPixelGainCalibrationForHLTService.cc.
References SiPixelGainCalibrationServicePayloadGetter< SiPixelGainCalibrationForHLT, SiPixelGainCalibrationForHLTRcd >::getPedestalByColumn(), isDead(), isNoisy(), and SiPixelGainCalibrationServicePayloadGetter< SiPixelGainCalibrationForHLT, SiPixelGainCalibrationForHLTRcd >::throwExepctionForBadRead().
{ bool isDead = false; bool isNoisy = false; float pedestalValue = this->getPedestalByColumn(detID, col, row, isDead, isNoisy); if (isDead || isNoisy) { this->throwExepctionForBadRead("HLT getPedestal()", detID, col, row, pedestalValue); return 0.0; } return pedestalValue; }
bool SiPixelGainCalibrationForHLTService::isDead | ( | const uint32_t & | detID, |
const int & | col, | ||
const int & | row | ||
) | [virtual] |
Implements SiPixelGainCalibrationServicePayloadGetter< SiPixelGainCalibrationForHLT, SiPixelGainCalibrationForHLTRcd >.
Definition at line 45 of file SiPixelGainCalibrationForHLTService.cc.
References ExpressReco_HICollisions_FallBack::e, SiPixelGainCalibrationServicePayloadGetter< SiPixelGainCalibrationForHLT, SiPixelGainCalibrationForHLTRcd >::getPedestalByColumn(), isNoisy(), and cms::Exception::what().
Referenced by getGain(), getPedestal(), isDeadColumn(), isNoisy(), and isNoisyColumn().
{ bool isDead = false; bool isNoisy = false; try { this->getPedestalByColumn(detID, col, row, isDead, isNoisy); //pedestal stores dead column value as well } catch (cms::Exception& e) { // Do not stop processing if you check if a nonexistant pixel is dead edm::LogInfo("SiPixelGainCalibrationForHLTService") << "Attempting to check if nonexistant pixel is dead. Exception message: " << e.what(); isDead = false; } return isDead; }
bool SiPixelGainCalibrationForHLTService::isDeadColumn | ( | const uint32_t & | detID, |
const int & | col, | ||
const int & | row | ||
) | [virtual] |
Implements SiPixelGainCalibrationServicePayloadGetter< SiPixelGainCalibrationForHLT, SiPixelGainCalibrationForHLTRcd >.
Definition at line 79 of file SiPixelGainCalibrationForHLTService.cc.
References ExpressReco_HICollisions_FallBack::e, SiPixelGainCalibrationServicePayloadGetter< SiPixelGainCalibrationForHLT, SiPixelGainCalibrationForHLTRcd >::getGainByColumn(), isDead(), isNoisy(), and cms::Exception::what().
{ bool isDead = false; bool isNoisy = false; try { this->getGainByColumn(detID, col, row, isDead, isNoisy); } catch (cms::Exception& e) { // Do not stop processing if you check if a nonexistant pixel is dead edm::LogInfo("SiPixelGainCalibrationForHLTService") << "Attempting to check if nonexistant pixel is dead. Exception message: " << e.what(); isDead = false; } return isDead; }
bool SiPixelGainCalibrationForHLTService::isNoisy | ( | const uint32_t & | detID, |
const int & | col, | ||
const int & | row | ||
) | [virtual] |
Implements SiPixelGainCalibrationServicePayloadGetter< SiPixelGainCalibrationForHLT, SiPixelGainCalibrationForHLTRcd >.
Definition at line 62 of file SiPixelGainCalibrationForHLTService.cc.
References ExpressReco_HICollisions_FallBack::e, SiPixelGainCalibrationServicePayloadGetter< SiPixelGainCalibrationForHLT, SiPixelGainCalibrationForHLTRcd >::getPedestalByColumn(), isDead(), and cms::Exception::what().
Referenced by getGain(), getPedestal(), isDead(), isDeadColumn(), and isNoisyColumn().
{ bool isDead = false; bool isNoisy = false; try { this->getPedestalByColumn(detID, col, row, isDead, isNoisy); //pedestal stores noisy column value as well } catch (cms::Exception& e) { // Do not stop processing if you check if a nonexistant pixel is noisy edm::LogInfo("SiPixelGainCalibrationForHLTService") << "Attempting to check if nonexistant pixel is noisy. Exception message: " << e.what(); isNoisy = false; } return isNoisy; }
bool SiPixelGainCalibrationForHLTService::isNoisyColumn | ( | const uint32_t & | detID, |
const int & | col, | ||
const int & | row | ||
) | [virtual] |
Implements SiPixelGainCalibrationServicePayloadGetter< SiPixelGainCalibrationForHLT, SiPixelGainCalibrationForHLTRcd >.
Definition at line 96 of file SiPixelGainCalibrationForHLTService.cc.
References ExpressReco_HICollisions_FallBack::e, SiPixelGainCalibrationServicePayloadGetter< SiPixelGainCalibrationForHLT, SiPixelGainCalibrationForHLTRcd >::getGainByColumn(), isDead(), isNoisy(), and cms::Exception::what().
{ bool isDead = false; bool isNoisy = false; try { this->getGainByColumn(detID, col, row, isDead, isNoisy); } catch (cms::Exception& e) { // Do not stop processing if you check if a nonexistant pixel is noisy edm::LogInfo("SiPixelGainCalibrationForHLTService") << "Attempting to check if nonexistant pixel is noisy. Exception message: " << e.what(); isNoisy = false; } return isNoisy; }