CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
SimpleDeviceSimInMIPs Class Reference

#include <SimpleDeviceSimInMIPs.h>

Public Member Functions

float getChargeForHit (const PSimHit &hit) const
 
void getEvent (const edm::Event &evt)
 
void getEventSetup (const edm::EventSetup &evt)
 
 SimpleDeviceSimInMIPs (const edm::ParameterSet &pset)
 

Private Attributes

float MIPPerMeV_
 

Detailed Description

Definition at line 10 of file SimpleDeviceSimInMIPs.h.

Constructor & Destructor Documentation

SimpleDeviceSimInMIPs::SimpleDeviceSimInMIPs ( const edm::ParameterSet pset)

Definition at line 3 of file SimpleDeviceSimInMIPs.cc.

3  :
4  MIPPerMeV_( 1.0/pset.getParameter<double>("meVPerMIP") ) {
5 }
T getParameter(std::string const &) const

Member Function Documentation

float SimpleDeviceSimInMIPs::getChargeForHit ( const PSimHit hit) const
inline

Definition at line 18 of file SimpleDeviceSimInMIPs.h.

References PSimHit::energyLoss(), and MIPPerMeV_.

18  {
19  return 1000.f*hit.energyLoss()*MIPPerMeV_;
20  }
float energyLoss() const
The energy deposit in the PSimHit, in ???.
Definition: PSimHit.h:75
void SimpleDeviceSimInMIPs::getEvent ( const edm::Event evt)
inline

Definition at line 14 of file SimpleDeviceSimInMIPs.h.

14 { }
void SimpleDeviceSimInMIPs::getEventSetup ( const edm::EventSetup evt)
inline

Definition at line 16 of file SimpleDeviceSimInMIPs.h.

16 { }

Member Data Documentation

float SimpleDeviceSimInMIPs::MIPPerMeV_
private

Definition at line 23 of file SimpleDeviceSimInMIPs.h.

Referenced by getChargeForHit().