CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_4_4_5_patch3/src/CalibTracker/SiPixelESProducers/interface/SiPixelGainCalibrationForHLTSimService.h

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