Main Page
Namespaces
Classes
Package Documentation
SimFastTiming
FastTimingCommon
interface
SimpleDeviceSimInMIPs.h
Go to the documentation of this file.
1
#ifndef __SimFastTiming_FastTimingCommon_SimpleDeviceSimInMIPs_h__
2
#define __SimFastTiming_FastTimingCommon_SimpleDeviceSimInMIPs_h__
3
4
#include "
FWCore/Framework/interface/Event.h
"
5
#include "
FWCore/Framework/interface/EventSetup.h
"
6
7
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
8
#include "
SimDataFormats/TrackingHit/interface/PSimHit.h
"
9
10
class
SimpleDeviceSimInMIPs
{
11
public
:
12
SimpleDeviceSimInMIPs
(
const
edm::ParameterSet
&
pset
);
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
SimpleDeviceSimInMIPs::getEventSetup
void getEventSetup(const edm::EventSetup &evt)
Definition:
SimpleDeviceSimInMIPs.h:16
Event.h
EventSetup.h
muonDTDigis_cfi.pset
pset
Definition:
muonDTDigis_cfi.py:27
ParameterSet.h
SimpleDeviceSimInMIPs::getChargeForHit
float getChargeForHit(const PSimHit &hit) const
Definition:
SimpleDeviceSimInMIPs.h:18
edm::EventSetup
Definition:
EventSetup.h:48
PSimHit.h
SimpleDeviceSimInMIPs
Definition:
SimpleDeviceSimInMIPs.h:10
hit
Definition:
SiStripHitEffFromCalibTree.cc:85
PSimHit::energyLoss
float energyLoss() const
The energy deposit in the PSimHit, in ???.
Definition:
PSimHit.h:75
SimpleDeviceSimInMIPs::getEvent
void getEvent(const edm::Event &evt)
Definition:
SimpleDeviceSimInMIPs.h:14
PSimHit
Definition:
PSimHit.h:15
edm::ParameterSet
Definition:
ParameterSet.h:36
edm::Event
Definition:
Event.h:69
SimpleDeviceSimInMIPs::SimpleDeviceSimInMIPs
SimpleDeviceSimInMIPs(const edm::ParameterSet &pset)
Definition:
SimpleDeviceSimInMIPs.cc:3
SimpleDeviceSimInMIPs::MIPPerMeV_
float MIPPerMeV_
Definition:
SimpleDeviceSimInMIPs.h:23
Generated for CMSSW Reference Manual by
1.8.11