Go to the documentation of this file.
49 #include "CLHEP/Random/RandGauss.h"
53 findingRecord<SiStripApvGainRcd>();
76 auto apvGain = std::make_unique<SiStripApvGain>();
80 std::vector<float> theSiStripVector;
81 for (
unsigned short j = 0;
j < elm.second.nApvs; ++
j) {
92 <<
", please select one of \"default\" or \"gaussian\"";
97 edm::LogInfo(
"SiStripApvGainGenerator") <<
"detid: " << elm.first <<
" Apv: " <<
j <<
" gain: " << gainValue;
99 theSiStripVector.push_back(gainValue);
103 if (!apvGain->put(elm.first,
SiStripApvGain::Range{theSiStripVector.begin(), theSiStripVector.end()})) {
104 edm::LogError(
"SiStripApvGainGenerator") <<
" detid already exists";
~SiStripApvGainFakeESSource() override
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
T getUntrackedParameter(std::string const &, T const &) const
Log< level::Info, false > LogInfo
std::unique_ptr< SiStripApvGain > ReturnType
void setIntervalFor(const edm::eventsetup::EventSetupRecordKey &, const edm::IOVSyncValue &iov, edm::ValidityInterval &iValidity) override
#define DEFINE_FWK_EVENTSETUP_SOURCE(type)
ReturnType produce(const SiStripApvGainRcd &)
static const IOVSyncValue & endOfTime()
Log< level::Error, false > LogError
std::pair< ContainerIterator, ContainerIterator > Range
const std::map< uint32_t, DetInfo > & getAllData() const
static const IOVSyncValue & beginOfTime()
T getParameter(std::string const &) const
SiStripApvGainFakeESSource(const edm::ParameterSet &)
SiStripDetInfoFileReader m_detInfoFileReader