Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
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
ME0PreRecoNoSmearModel::ME0PreRecoNoSmearModel
(
const
edm::ParameterSet
&
config
) :
ME0DigiPreRecoModel
(config) {}
8
9
void
ME0PreRecoNoSmearModel::simulateSignal
(
const
ME0EtaPartition
* roll,
10
const
edm::PSimHitContainer
&
simHits
,
11
CLHEP::HepRandomEngine* engine) {
12
for
(
const
auto
&
hit
: simHits) {
13
if
(
std::abs
(
hit
.particleType()) != 13)
14
continue
;
15
const
auto
&
entry
=
hit
.entryPoint();
16
float
x
=
entry
.x();
17
float
y
=
entry
.y();
18
float
ex = 0.001;
19
float
ey = 0.001;
20
float
corr
= 0.;
21
float
t
=
hit
.timeOfFlight();
22
int
pdgid =
hit
.particleType();
23
digi_
.emplace(x, y, ex, ey, corr, t, pdgid, 1);
24
}
25
}
26
27
void
ME0PreRecoNoSmearModel::simulateNoise
(
const
ME0EtaPartition
* roll, CLHEP::HepRandomEngine* engine) {}
submitPVValidationJobs.t
string t
Definition:
submitPVValidationJobs.py:644
ME0EtaPartition
Definition:
ME0EtaPartition.h:12
ME0PreRecoNoSmearModel::simulateNoise
void simulateNoise(const ME0EtaPartition *, CLHEP::HepRandomEngine *) override
Definition:
ME0PreRecoNoSmearModel.cc:27
ME0DigiPreRecoModel::digi_
std::set< ME0DigiPreReco > digi_
Definition:
ME0DigiPreRecoModel.h:48
ME0PreRecoNoSmearModel::ME0PreRecoNoSmearModel
ME0PreRecoNoSmearModel(const edm::ParameterSet &)
Definition:
ME0PreRecoNoSmearModel.cc:7
ME0PreRecoNoSmearModel::simulateSignal
void simulateSignal(const ME0EtaPartition *, const edm::PSimHitContainer &, CLHEP::HepRandomEngine *) override
Definition:
ME0PreRecoNoSmearModel.cc:9
funct::abs
Abs< T >::type abs(const T &t)
Definition:
Abs.h:22
ME0PreRecoNoSmearModel.h
trackerHits.simHits
tuple simHits
Definition:
trackerHits.py:16
hit
Definition:
SiStripHitEffFromCalibTree.cc:87
submitPVResolutionJobs.config
tuple config
parse the configuration file
Definition:
submitPVResolutionJobs.py:281
ME0DigiPreRecoModel
Definition:
ME0DigiPreRecoModel.h:28
DDAxes::y
mps_splice.entry
list entry
Definition:
mps_splice.py:68
edm::ParameterSet
Definition:
ParameterSet.h:47
edm::PSimHitContainer
std::vector< PSimHit > PSimHitContainer
Definition:
PSimHitContainer.h:11
DDAxes::x
alignCSCRings.corr
list corr
Definition:
alignCSCRings.py:124
Generated for CMSSW Reference Manual by
1.8.5