CMS 3D CMS Logo

Public Member Functions

SiPixelGainCalibrationOfflineSimService Class Reference

#include <SiPixelGainCalibrationOfflineSimService.h>

Inheritance diagram for SiPixelGainCalibrationOfflineSimService:
SiPixelGainCalibrationServicePayloadGetter< SiPixelGainCalibrationOffline, SiPixelGainCalibrationOfflineSimRcd > 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)
 SiPixelGainCalibrationOfflineSimService (const edm::ParameterSet &conf)
 ~SiPixelGainCalibrationOfflineSimService ()

Detailed Description

Definition at line 22 of file SiPixelGainCalibrationOfflineSimService.h.


Constructor & Destructor Documentation

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

Definition at line 27 of file SiPixelGainCalibrationOfflineSimService.h.

{};

Member Function Documentation

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

Implements SiPixelGainCalibrationServicePayloadGetter< SiPixelGainCalibrationOffline, SiPixelGainCalibrationOfflineSimRcd >.

Definition at line 45 of file SiPixelGainCalibrationOfflineSimService.cc.

References alignCSCRings::e, SiPixelGainCalibrationServicePayloadGetter< SiPixelGainCalibrationOffline, SiPixelGainCalibrationOfflineSimRcd >::getPedestalByPixel(), isNoisy(), and cms::Exception::what().

Referenced by getGain(), getPedestal(), isDeadColumn(), isNoisy(), isNoisyColumn(), and SiPixelDigitizerAlgorithm::pixel_inefficiency_db().

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

Implements SiPixelGainCalibrationServicePayloadGetter< SiPixelGainCalibrationOffline, SiPixelGainCalibrationOfflineSimRcd >.

Definition at line 79 of file SiPixelGainCalibrationOfflineSimService.cc.

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

Implements SiPixelGainCalibrationServicePayloadGetter< SiPixelGainCalibrationOffline, SiPixelGainCalibrationOfflineSimRcd >.

Definition at line 62 of file SiPixelGainCalibrationOfflineSimService.cc.

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

Implements SiPixelGainCalibrationServicePayloadGetter< SiPixelGainCalibrationOffline, SiPixelGainCalibrationOfflineSimRcd >.

Definition at line 96 of file SiPixelGainCalibrationOfflineSimService.cc.

References alignCSCRings::e, SiPixelGainCalibrationServicePayloadGetter< SiPixelGainCalibrationOffline, SiPixelGainCalibrationOfflineSimRcd >::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("SiPixelGainCalibrationOfflineSimService") << "Attempting to check if nonexistant pixel is Noisy.  Exception message: " << e.what();
      isNoisy = false; 
   }
   return isNoisy;
}