#include <GEMNoiseModel.h>
Definition at line 23 of file GEMNoiseModel.h.
Definition at line 13 of file GEMNoiseModel.cc.
GEMDigiModel(const edm::ParameterSet &)
T getParameter(std::string const &) const
GEMNoiseModel::~GEMNoiseModel |
( |
| ) |
|
|
override |
Implements GEMDigiModel.
Definition at line 22 of file GEMNoiseModel.cc.
References averageNoiseRate_, bxWidth_, Exception, GEMEtaPartition::id(), isotrackApplyRegressor::k, maxBunch_, minBunch_, GEMEtaPartition::nstrips(), GEMEtaPartition::pitch(), and GEMEtaPartition::topology().
28 const int nstrips(roll->
nstrips());
29 double trStripArea(0.0);
30 if (gemId.region() == 0) {
31 throw cms::Exception(
"Geometry") <<
"GEMNoiseModel::simulate() - this GEM id is from barrel, which cannot happen.";
34 const float striplength(top_->stripLength());
35 trStripArea = (roll->
pitch()) * striplength;
36 float trArea(trStripArea * nstrips);
40 CLHEP::RandPoissonQ randPoissonQ(*engine, aveIntrinsicNoise);
41 const int n_intrHits(randPoissonQ.fire());
43 for (
int k = 0;
k < n_intrHits;
k++) {
44 const int centralStrip(static_cast<int>(CLHEP::RandFlat::shoot(engine, 1, nstrips)));
45 const int time_hit(static_cast<int>(CLHEP::RandFlat::shoot(engine, nBxing)) +
minBunch_);
46 strips_.emplace(centralStrip, time_hit);
double GEMNoiseModel::averageNoiseRate_ |
|
private |
double GEMNoiseModel::bxWidth_ |
|
private |
int GEMNoiseModel::maxBunch_ |
|
private |
int GEMNoiseModel::minBunch_ |
|
private |