Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-08-23 03:25:35

0001 #ifndef CastorSim_CastorSimParameters_h
0002 #define CastorSim_CastorSimParameters_h
0003 
0004 #include "CalibFormats/CastorObjects/interface/CastorDbService.h"
0005 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0006 #include "SimCalorimetry/CaloSimAlgos/interface/CaloSimParameters.h"
0007 
0008 class CastorSimParameters : public CaloSimParameters {
0009 public:
0010   CastorSimParameters(double simHitToPhotoelectrons,
0011                       double photoelectronsToAnalog,
0012                       double samplingFactor,
0013                       double timePhase,
0014                       bool syncPhase);
0015   CastorSimParameters(const edm::ParameterSet &p);
0016 
0017   ~CastorSimParameters() override {}
0018 
0019   void setDbService(const CastorDbService *service) { theDbService = service; }
0020 
0021   double getNominalfCperPE() const;
0022 
0023   double photoelectronsToAnalog(const DetId &detId) const override;
0024 
0025   double fCtoGeV(const DetId &detId) const;
0026 
0027 private:
0028   const CastorDbService *theDbService;
0029   double theSamplingFactor;
0030   double nominalfCperPE;
0031 };
0032 
0033 #endif