00001 #ifndef CondTools_SiPixel_SiPixelGainCalibrationService_H
00002 #define CondTools_SiPixel_SiPixelGainCalibrationService_H
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016 #include "CondTools/SiPixel/interface/SiPixelGainCalibrationServiceBase.h"
00017
00018 #include "CondFormats/SiPixelObjects/interface/SiPixelGainCalibration.h"
00019 #include "CondFormats/DataRecord/interface/SiPixelGainCalibrationRcd.h"
00020
00021 class SiPixelGainCalibrationService : public SiPixelGainCalibrationServicePayloadGetter<SiPixelGainCalibration,SiPixelGainCalibrationRcd>
00022 {
00023
00024 public:
00025 explicit SiPixelGainCalibrationService(const edm::ParameterSet& conf) : SiPixelGainCalibrationServicePayloadGetter<SiPixelGainCalibration,SiPixelGainCalibrationRcd>(conf){};
00026 ~SiPixelGainCalibrationService(){};
00027
00028
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);
00032 bool isDeadColumn ( const uint32_t& detID,const int& col, const int& row);
00033
00034
00035 };
00036 #endif