00001 #ifndef HcalSimAlgos_HFSimParameters_h 00002 #define HcalSimAlgos_HFSimParameters_h 00003 00004 #include "SimCalorimetry/CaloSimAlgos/interface/CaloSimParameters.h" 00005 #include "FWCore/ParameterSet/interface/ParameterSet.h" 00006 #include "CalibFormats/HcalObjects/interface/HcalDbService.h" 00007 00008 class HFSimParameters : public CaloSimParameters 00009 { 00010 public: 00011 HFSimParameters(double simHitToPhotoelectrons, double photoelectronsToAnalog, double samplingFactor, 00012 double timePhase, bool syncPhase); 00013 HFSimParameters(const edm::ParameterSet & p); 00014 00015 virtual ~HFSimParameters() {} 00016 00017 void setDbService(const HcalDbService * service) {theDbService = service;} 00018 00019 virtual double photoelectronsToAnalog(const DetId & detId) const; 00020 00021 double fCtoGeV(const DetId & detId) const; 00022 00023 private: 00024 const HcalDbService * theDbService; 00025 double theSamplingFactor; 00026 }; 00027 00028 #endif 00029