CMS 3D CMS Logo

SiPixelGainCalibrationOfflineService Class Reference

#include <CondTools/SiPixel/interface/SiPixelGainCalibrationOfflineService.h>

Inheritance diagram for SiPixelGainCalibrationOfflineService:

SiPixelGainCalibrationServicePayloadGetter< SiPixelGainCalibrationOffline, SiPixelGainCalibrationOfflineRcd > 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)
 SiPixelGainCalibrationOfflineService (const edm::ParameterSet &conf)
 ~SiPixelGainCalibrationOfflineService ()


Detailed Description

Definition at line 21 of file SiPixelGainCalibrationOfflineService.h.


Constructor & Destructor Documentation

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

Definition at line 25 of file SiPixelGainCalibrationOfflineService.h.

SiPixelGainCalibrationOfflineService::~SiPixelGainCalibrationOfflineService (  )  [inline]

Definition at line 26 of file SiPixelGainCalibrationOfflineService.h.

00026 {};


Member Function Documentation

float SiPixelGainCalibrationOfflineService::getGain ( const uint32_t &  detID,
const int col,
const int row 
) [virtual]

Implements SiPixelGainCalibrationServicePayloadGetter< SiPixelGainCalibrationOffline, SiPixelGainCalibrationOfflineRcd >.

Definition at line 31 of file SiPixelGainCalibrationOfflineService.cc.

References SiPixelGainCalibrationServicePayloadGetter< SiPixelGainCalibrationOffline, SiPixelGainCalibrationOfflineRcd >::getGainByColumn(), isDead(), and SiPixelGainCalibrationServicePayloadGetter< SiPixelGainCalibrationOffline, SiPixelGainCalibrationOfflineRcd >::throwExepctionForBadRead().

00032 {
00033    bool isDead = false;
00034    float gainValue = this->getGainByColumn(detID, col, row, isDead);
00035    if (isDead)
00036    {
00037       this->throwExepctionForBadRead("Offline getGain()", detID, col, row, gainValue);
00038       return 0.0;
00039    }
00040    return gainValue;
00041 }

float SiPixelGainCalibrationOfflineService::getPedestal ( const uint32_t &  detID,
const int col,
const int row 
) [virtual]

Implements SiPixelGainCalibrationServicePayloadGetter< SiPixelGainCalibrationOffline, SiPixelGainCalibrationOfflineRcd >.

Definition at line 19 of file SiPixelGainCalibrationOfflineService.cc.

References SiPixelGainCalibrationServicePayloadGetter< SiPixelGainCalibrationOffline, SiPixelGainCalibrationOfflineRcd >::getPedestalByPixel(), isDead(), and SiPixelGainCalibrationServicePayloadGetter< SiPixelGainCalibrationOffline, SiPixelGainCalibrationOfflineRcd >::throwExepctionForBadRead().

00020 {
00021    bool isDead = false;
00022    float pedestalValue = this->getPedestalByPixel(detID, col, row, isDead);
00023    if (isDead)
00024    {
00025       this->throwExepctionForBadRead("Offline getPedestal()", detID, col, row, pedestalValue);
00026       return 0.0;
00027    }
00028    return pedestalValue;
00029 }

bool SiPixelGainCalibrationOfflineService::isDead ( const uint32_t &  detID,
const int col,
const int row 
) [virtual]

Implements SiPixelGainCalibrationServicePayloadGetter< SiPixelGainCalibrationOffline, SiPixelGainCalibrationOfflineRcd >.

Definition at line 43 of file SiPixelGainCalibrationOfflineService.cc.

References SiPixelGainCalibrationServicePayloadGetter< SiPixelGainCalibrationOffline, SiPixelGainCalibrationOfflineRcd >::getPedestalByPixel().

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

00044 {
00045    bool isDead = false;
00046    this->getPedestalByPixel(detID, col, row, isDead); 
00047    return isDead;
00048 }

bool SiPixelGainCalibrationOfflineService::isDeadColumn ( const uint32_t &  detID,
const int col,
const int row 
) [virtual]

Implements SiPixelGainCalibrationServicePayloadGetter< SiPixelGainCalibrationOffline, SiPixelGainCalibrationOfflineRcd >.

Definition at line 50 of file SiPixelGainCalibrationOfflineService.cc.

References SiPixelGainCalibrationServicePayloadGetter< SiPixelGainCalibrationOffline, SiPixelGainCalibrationOfflineRcd >::getGainByColumn(), and isDead().

00051 {
00052    bool isDead = false;
00053    this->getGainByColumn(detID, col, row, isDead); // the gain column average can flag a whole column as bad
00054    return isDead;
00055 }


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:32:00 2009 for CMSSW by  doxygen 1.5.4