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 {
19  return 1000.f*hit.energyLoss()*MIPPerMeV_;
20  }
21 
22  private:
23  float MIPPerMeV_;
24 };
25 
26 #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)