13 : printdebug_(iConfig.getUntrackedParameter<uint32_t>(
"printDebug", 1)),
17 stripLengthMode_(
true),
19 tTopoToken_ = esConsumes<TrackerTopology, TrackerTopologyRcd>();
20 tGeomToken_ = esConsumes<TrackerGeometry, TrackerDigiGeometryRecord>();
29 std::vector<uint32_t> inputDetIds;
30 inputApvGain.getDetIds(inputDetIds);
49 unsigned int count = 0;
50 for (
const auto det : tGeom.detUnits()) {
51 const StripGeomDetUnit* stripDet = dynamic_cast<const StripGeomDetUnit*>(det);
52 if (stripDet !=
nullptr) {
65 double linearSlope = noiseStripLengthLinearSlope.get(sl);
66 double linearQuote = noiseStripLengthLinearQuote.get(sl);
68 for (
unsigned short j = 0;
j < nApvs; ++
j) {
71 for (
unsigned short stripId = 0; stripId < 128; ++stripId) {
75 obj->setData(
noise, theSiStripVector);
80 double meanN = meanNoise.get(sl);
81 double sigmaN = sigmaNoise.get(sl);
82 for (
unsigned short j = 0;
j < nApvs; ++
j) {
85 for (
unsigned short stripId = 0; stripId < 128; ++stripId) {
86 noise = (CLHEP::RandGauss::shoot(meanN, sigmaN)) *
gain;
91 obj->setData(
noise, theSiStripVector);
97 if (!
obj->put(detId, theSiStripVector)) {
98 edm::LogError(
"SiStripNoisesFakeESSource::produce ") <<
" detid already exists" << std::endl;
114 edm::LogError(
"SiStripNoiseNormalizedWithApvGainBuilder") <<
"Service is unavailable" << std::endl;