CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ME0PreRecoNoSmearModel.cc
Go to the documentation of this file.
2 
3 #include <cmath>
4 #include <utility>
5 #include <map>
6 
8 
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) {}
void simulateNoise(const ME0EtaPartition *, CLHEP::HepRandomEngine *) override
std::set< ME0DigiPreReco > digi_
ME0PreRecoNoSmearModel(const edm::ParameterSet &)
void simulateSignal(const ME0EtaPartition *, const edm::PSimHitContainer &, CLHEP::HepRandomEngine *) override
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
tuple simHits
Definition: trackerHits.py:16
tuple config
parse the configuration file
list entry
Definition: mps_splice.py:68
std::vector< PSimHit > PSimHitContainer