Back to home page

Project CMSSW displayed by LXR

 
 

    


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

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