46 findingRecord<SiStripPedestalsRcd>();
65 auto pedestals = std::make_unique<SiStripPedestals>();
69 for (
const auto& elm : reader->getAllData() ) {
72 for (
unsigned short j{0}; j < 128*elm.second.nApvs; ++j ) {
74 edm::LogInfo(
"SiStripPedestalsFakeESSource::makePedestals(): ") <<
"detid: " << elm.first <<
" strip: " << j <<
" ped: " <<
m_pedestalValue;
79 if ( ! pedestals->put(elm.first, theSiStripVector) ) {
80 edm::LogError(
"SiStripPedestalsFakeESSource::produce ") <<
" detid already exists";
T getParameter(std::string const &) const
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
T getUntrackedParameter(std::string const &, T const &) const
static const IOVSyncValue & endOfTime()
ReturnType produce(const SiStripPedestalsRcd &)
std::vector< uint16_t > InputVector
static const IOVSyncValue & beginOfTime()
~SiStripPedestalsFakeESSource() override
void setIntervalFor(const edm::eventsetup::EventSetupRecordKey &, const edm::IOVSyncValue &iov, edm::ValidityInterval &iValidity) override
SiStripPedestalsFakeESSource(const edm::ParameterSet &)
std::unique_ptr< SiStripPedestals > ReturnType
#define DEFINE_FWK_EVENTSETUP_SOURCE(type)