Main Page
Namespaces
Classes
Package Documentation
SimMuon
GEMDigitizer
src
ME0PreRecoNoSmearModel.cc
Go to the documentation of this file.
1
#include "
SimMuon/GEMDigitizer/interface/ME0PreRecoNoSmearModel.h
"
2
3
#include <cmath>
4
#include <utility>
5
#include <map>
6
7
8
ME0PreRecoNoSmearModel::ME0PreRecoNoSmearModel
(
const
edm::ParameterSet
&
config
)
9
:
ME0DigiPreRecoModel
(config)
10
{
11
}
12
13
void
14
ME0PreRecoNoSmearModel::simulateSignal
(
const
ME0EtaPartition
* roll,
15
const
edm::PSimHitContainer
&
simHits
, CLHEP::HepRandomEngine* engine)
16
{
17
18
for
(
const
auto
&
hit
: simHits)
19
{
20
if
(
std::abs
(
hit
.particleType()) != 13)
continue
;
21
const
auto
&
entry
=
hit
.entryPoint();
22
float
x
=
entry
.x();
23
float
y
=
entry
.y();
24
float
ex=0.001;
25
float
ey=0.001;
26
float
corr
=0.;
27
float
t
=
hit
.timeOfFlight();
28
int
pdgid
=
hit
.particleType();
29
digi_
.emplace(x,y,ex,ey,corr,t,pdgid,1);
30
}
31
}
32
33
void
34
ME0PreRecoNoSmearModel::simulateNoise
(
const
ME0EtaPartition
* roll, CLHEP::HepRandomEngine* engine)
35
{
36
}
37
38
39
trackerHits.simHits
simHits
Definition:
trackerHits.py:16
ME0EtaPartition
Definition:
ME0EtaPartition.h:12
config
Definition:
config.py:1
ME0PreRecoNoSmearModel::simulateNoise
void simulateNoise(const ME0EtaPartition *, CLHEP::HepRandomEngine *) override
Definition:
ME0PreRecoNoSmearModel.cc:34
mps_splice.entry
entry
Definition:
mps_splice.py:67
ME0PreRecoNoSmearModel::ME0PreRecoNoSmearModel
ME0PreRecoNoSmearModel(const edm::ParameterSet &)
Definition:
ME0PreRecoNoSmearModel.cc:8
ME0PreRecoNoSmearModel::simulateSignal
void simulateSignal(const ME0EtaPartition *, const edm::PSimHitContainer &, CLHEP::HepRandomEngine *) override
Definition:
ME0PreRecoNoSmearModel.cc:14
funct::abs
Abs< T >::type abs(const T &t)
Definition:
Abs.h:22
BPhysicsValidation_cfi.pdgid
pdgid
Definition:
BPhysicsValidation_cfi.py:8
ME0PreRecoNoSmearModel.h
corr
JetCorrectorParameters corr
Definition:
classes.h:5
ME0DigiPreRecoModel::digi_
std::set< ME0DigiPreReco > digi_
Definition:
ME0DigiPreRecoModel.h:50
hit
Definition:
SiStripHitEffFromCalibTree.cc:87
ME0DigiPreRecoModel
Definition:
ME0DigiPreRecoModel.h:28
DDAxes::y
lumiQTWidget.t
t
Definition:
lumiQTWidget.py:50
edm::ParameterSet
Definition:
ParameterSet.h:36
edm::PSimHitContainer
std::vector< PSimHit > PSimHitContainer
Definition:
PSimHitContainer.h:11
DDAxes::x
Generated for CMSSW Reference Manual by
1.8.11