CMS 3D CMS Logo

SimpleDeviceSimInMIPs.h
Go to the documentation of this file.
1 #ifndef __SimFastTiming_FastTimingCommon_SimpleDeviceSimInMIPs_h__
2 #define __SimFastTiming_FastTimingCommon_SimpleDeviceSimInMIPs_h__
3 
6 
9 
11 public:
13 
14  void getEvent(const edm::Event& evt) {}
15 
16  void getEventSetup(const edm::EventSetup& evt) {}
17 
18  float getChargeForHit(const PSimHit& hit) const { return 1000.f * hit.energyLoss() * MIPPerMeV_; }
19 
20 private:
21  float MIPPerMeV_;
22 };
23 
24 #endif
void getEventSetup(const edm::EventSetup &evt)
float getChargeForHit(const PSimHit &hit) const
float energyLoss() const
The energy deposit in the PSimHit, in ???.
Definition: PSimHit.h:79
void getEvent(const edm::Event &evt)
SimpleDeviceSimInMIPs(const edm::ParameterSet &pset)