CMS 3D CMS Logo

Public Member Functions

SiPixelGainCalibrationForHLTSimService Class Reference

#include <SiPixelGainCalibrationForHLTSimService.h>

Inheritance diagram for SiPixelGainCalibrationForHLTSimService:
SiPixelGainCalibrationServicePayloadGetter< SiPixelGainCalibrationForHLT, SiPixelGainCalibrationForHLTSimRcd > SiPixelGainCalibrationServiceBase

List of all members.

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)
 SiPixelGainCalibrationForHLTSimService (const edm::ParameterSet &conf)
 ~SiPixelGainCalibrationForHLTSimService ()

Detailed Description

Definition at line 22 of file SiPixelGainCalibrationForHLTSimService.h.


Constructor & Destructor Documentation

SiPixelGainCalibrationForHLTSimService::SiPixelGainCalibrationForHLTSimService ( const edm::ParameterSet conf) [inline, explicit]
SiPixelGainCalibrationForHLTSimService::~SiPixelGainCalibrationForHLTSimService ( ) [inline]

Definition at line 27 of file SiPixelGainCalibrationForHLTSimService.h.

{};

Member Function Documentation

float SiPixelGainCalibrationForHLTSimService::getGain ( const uint32_t &  detID,
const int &  col,
const int &  row 
) [virtual]
float SiPixelGainCalibrationForHLTSimService::getPedestal ( const uint32_t &  detID,
const int &  col,
const int &  row 
) [virtual]
bool SiPixelGainCalibrationForHLTSimService::isDead ( const uint32_t &  detID,
const int &  col,
const int &  row 
) [virtual]

Implements SiPixelGainCalibrationServicePayloadGetter< SiPixelGainCalibrationForHLT, SiPixelGainCalibrationForHLTSimRcd >.

Definition at line 45 of file SiPixelGainCalibrationForHLTSimService.cc.

References SiPixelGainCalibrationServicePayloadGetter< SiPixelGainCalibrationForHLT, SiPixelGainCalibrationForHLTSimRcd >::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("SiPixelGainCalibrationForHLTSimService") << "Attempting to check if nonexistant pixel is dead.  Exception message: " << e.what();
      isDead = false; 
   }
   return isDead;
}
bool SiPixelGainCalibrationForHLTSimService::isDeadColumn ( const uint32_t &  detID,
const int &  col,
const int &  row 
) [virtual]

Implements SiPixelGainCalibrationServicePayloadGetter< SiPixelGainCalibrationForHLT, SiPixelGainCalibrationForHLTSimRcd >.

Definition at line 79 of file SiPixelGainCalibrationForHLTSimService.cc.

References SiPixelGainCalibrationServicePayloadGetter< SiPixelGainCalibrationForHLT, SiPixelGainCalibrationForHLTSimRcd >::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("SiPixelGainCalibrationForHLTSimService") << "Attempting to check if nonexistant pixel is dead.  Exception message: " << e.what();
      isDead = false; 
   }
   return isDead;
}
bool SiPixelGainCalibrationForHLTSimService::isNoisy ( const uint32_t &  detID,
const int &  col,
const int &  row 
) [virtual]

Implements SiPixelGainCalibrationServicePayloadGetter< SiPixelGainCalibrationForHLT, SiPixelGainCalibrationForHLTSimRcd >.

Definition at line 62 of file SiPixelGainCalibrationForHLTSimService.cc.

References SiPixelGainCalibrationServicePayloadGetter< SiPixelGainCalibrationForHLT, SiPixelGainCalibrationForHLTSimRcd >::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("SiPixelGainCalibrationForHLTSimService") << "Attempting to check if nonexistant pixel is noisy.  Exception message: " << e.what();
      isNoisy = false; 
   }
   return isNoisy;
}
bool SiPixelGainCalibrationForHLTSimService::isNoisyColumn ( const uint32_t &  detID,
const int &  col,
const int &  row 
) [virtual]

Implements SiPixelGainCalibrationServicePayloadGetter< SiPixelGainCalibrationForHLT, SiPixelGainCalibrationForHLTSimRcd >.

Definition at line 96 of file SiPixelGainCalibrationForHLTSimService.cc.

References SiPixelGainCalibrationServicePayloadGetter< SiPixelGainCalibrationForHLT, SiPixelGainCalibrationForHLTSimRcd >::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("SiPixelGainCalibrationForHLTSimService") << "Attempting to check if nonexistant pixel is noisy.  Exception message: " << e.what();
      isNoisy = false; 
   }
   return isNoisy;
}