#include <GEMNoiseModel.h>
Definition at line 23 of file GEMNoiseModel.h.
◆ GEMNoiseModel()
◆ ~GEMNoiseModel()
GEMNoiseModel::~GEMNoiseModel |
( |
| ) |
|
|
override |
◆ simulate()
Implements GEMDigiModel.
Definition at line 22 of file GEMNoiseModel.cc.
References averageNoiseRate_, bxWidth_, Exception, isotrackApplyRegressor::k, maxBunch_, minBunch_, and nano_mu_digi_cff::roll.
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);
◆ averageNoiseRate_
double GEMNoiseModel::averageNoiseRate_ |
|
private |
◆ bxWidth_
double GEMNoiseModel::bxWidth_ |
|
private |
◆ maxBunch_
int GEMNoiseModel::maxBunch_ |
|
private |
◆ minBunch_
int GEMNoiseModel::minBunch_ |
|
private |