Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-05-01 06:56:47

0001 #ifndef CalibTracker_SiPixelESProducers_SiPixelGainCalibrationOfflineService_H
0002 #define CalibTracker_SiPixelESProducers_SiPixelGainCalibrationOfflineService_H
0003 
0004 // ************************************************************************
0005 // ************************************************************************
0006 // *******     SiPixelOfflineCalibrationOfflineService              *******
0007 // *******     Author:   Evan Friis (evan.friis@cern.ch)            *******
0008 // *******                                                          *******
0009 // *******     Retrives gain calibration data from offline DB       *******
0010 // *******     at medium  (gain:column,pedestal:pixel) granularity  *******
0011 // *******                                                          *******
0012 // ************************************************************************
0013 // ************************************************************************
0014 
0015 // Gain CalibrationOffline base class
0016 #include "CalibTracker/SiPixelESProducers/interface/SiPixelGainCalibrationServiceBase.h"
0017 
0018 #include "CondFormats/SiPixelObjects/interface/SiPixelGainCalibrationOffline.h"
0019 #include "CondFormats/DataRecord/interface/SiPixelGainCalibrationOfflineRcd.h"
0020 
0021 class SiPixelGainCalibrationOfflineService
0022     : public SiPixelGainCalibrationServicePayloadGetter<SiPixelGainCalibrationOffline, SiPixelGainCalibrationOfflineRcd> {
0023 public:
0024   explicit SiPixelGainCalibrationOfflineService(const edm::ParameterSet& conf, edm::ConsumesCollector iC)
0025       : SiPixelGainCalibrationServicePayloadGetter<SiPixelGainCalibrationOffline, SiPixelGainCalibrationOfflineRcd>(
0026             conf, std::move(iC)){};
0027 
0028   // pixel granularity
0029   float getPedestal(const uint32_t& detID, const int& col, const int& row) override;
0030   float getGain(const uint32_t& detID, const int& col, const int& row) override;
0031   bool isDead(const uint32_t& detID, const int& col, const int& row) override;
0032   bool isDeadColumn(const uint32_t& detID, const int& col, const int& row) override;
0033   bool isNoisy(const uint32_t& detID, const int& col, const int& row) override;
0034   bool isNoisyColumn(const uint32_t& detID, const int& col, const int& row) override;
0035 };
0036 #endif