Go to the documentation of this file.
56 #include "CLHEP/Random/RandGauss.h"
59 inline void printLog(
const uint32_t detId,
const unsigned short strip,
const double&
noise) {
60 edm::LogInfo(
"SiStripNoisesDummyCalculator") <<
"detid: " << detId <<
" strip: " <<
strip <<
" noise: " <<
noise;
66 findingRecord<SiStripNoisesRcd>();
102 auto noises = std::make_unique<SiStripNoises>();
114 const double stripLength{elm.second.stripLength};
115 for (
unsigned short j{0};
j < 128 * elm.second.nApvs; ++
j) {
116 const float noise = (linearSlope * stripLength + linearQuote) /
m_noisePar0;
118 printLog(elm.first,
j,
noise);
125 for (
unsigned short j{0};
j < 128 * elm.second.nApvs; ++
j) {
128 printLog(elm.first,
j,
noise);
134 if (!
noises->put(elm.first, theSiStripVector)) {
135 edm::LogError(
"SiStripNoisesFakeESSource::produce ") <<
" detid already exists";
void setIntervalFor(const edm::eventsetup::EventSetupRecordKey &, const edm::IOVSyncValue &iov, edm::ValidityInterval &iValidity) override
static index getIndex(const TrackerTopology *tTopo, DetId id)
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
edm::ESGetToken< TrackerTopology, TrackerTopologyRcd > m_tTopoToken
T getUntrackedParameter(std::string const &, T const &) const
ReturnType produce(const SiStripNoisesRcd &)
SiStripFakeAPVParameters m_noisePar2
SiStripDetInfoFileReader m_detInfoFileReader
ProductT const & get(ESGetToken< ProductT, DepRecordT > const &iToken) const
SiStripFakeAPVParameters m_noisePar1
#define DEFINE_FWK_EVENTSETUP_SOURCE(type)
std::pair< int, int > index
static const IOVSyncValue & endOfTime()
double get(const index &idx) const
std::unique_ptr< SiStripNoises > ReturnType
SiStripNoisesFakeESSource(const edm::ParameterSet &)
T getParameter(std::string const &) const
const std::map< uint32_t, DetInfo > & getAllData() const
static const IOVSyncValue & beginOfTime()
std::vector< uint16_t > InputVector
~SiStripNoisesFakeESSource() override