CMS 3D CMS Logo

CMSSW_4_4_3_patch1/src/CalibTracker/SiPixelESProducers/interface/SiPixelGainCalibrationForHLTService.h

Go to the documentation of this file.
00001 #ifndef CalibTracker_SiPixelESProducers_SiPixelGainCalibrationForHLTService_H
00002 #define CalibTracker_SiPixelESProducers_SiPixelGainCalibrationForHLTService_H
00003 
00004 // ************************************************************************
00005 // ************************************************************************
00006 // *******     SiPixelOfflineCalibrationForHLTService               *******
00007 // *******     Author:   Evan Friis (evan.friis@cern.ch)            *******
00008 // *******                                                          *******
00009 // *******     Retrives gain calibration data from offline DB       *******
00010 // *******     at lowest  (gain:column,pedestal:column) granularity *******
00011 // *******                                                          *******
00012 // ************************************************************************
00013 // ************************************************************************
00014 //
00015 // Gain Calibration base class
00016 #include "CalibTracker/SiPixelESProducers/interface/SiPixelGainCalibrationServiceBase.h"
00017 
00018 #include "CondFormats/SiPixelObjects/interface/SiPixelGainCalibrationForHLT.h" 
00019 #include "CondFormats/DataRecord/interface/SiPixelGainCalibrationForHLTRcd.h"
00020 
00021 class SiPixelGainCalibrationForHLTService : public SiPixelGainCalibrationServicePayloadGetter<SiPixelGainCalibrationForHLT,SiPixelGainCalibrationForHLTRcd>
00022 {
00023 
00024  public:
00025   explicit SiPixelGainCalibrationForHLTService(const edm::ParameterSet& conf) : SiPixelGainCalibrationServicePayloadGetter<SiPixelGainCalibrationForHLT,SiPixelGainCalibrationForHLTRcd>(conf){};
00026   ~SiPixelGainCalibrationForHLTService(){};
00027 
00028   // column granularity
00029   float   getPedestal  ( const uint32_t& detID,const int& col, const int& row);
00030   float   getGain      ( const uint32_t& detID,const int& col, const int& row);
00031   bool    isDead       ( const uint32_t& detID,const int& col, const int& row); //also return dead by column.
00032   bool    isDeadColumn ( const uint32_t& detID,const int& col, const int& row);
00033   bool    isNoisy       ( const uint32_t& detID,const int& col, const int& row);
00034   bool    isNoisyColumn ( const uint32_t& detID,const int& col, const int& row);
00035 
00036 };
00037 #endif