30 : fp_(conf_.getParameter<
edm::FileInPath>(
"file")) {
31 edm::LogInfo(
"SiPixelFakeGainESSource::SiPixelFakeGainESSource");
35 findingRecord<SiPixelGainCalibrationRcd>();
45 unsigned int nmodules = 0;
46 uint32_t nchannels = 0;
49 const std::vector<uint32_t>& DetIds =
reader.getAllDetIds();
52 for (std::vector<uint32_t>::const_iterator detit = DetIds.begin(); detit != DetIds.end(); detit++) {
54 std::vector<char> theSiPixelGainCalibration;
55 const std::pair<int, int>& detUnitDimensions =
reader.getDetUnitDimensions(*detit);
58 for (
int i = 0;
i < detUnitDimensions.first;
i++) {
59 for (
int j = 0;
j < detUnitDimensions.second;
j++) {
63 obj->setData(ped,
gain, theSiPixelGainCalibration);
70 if (!
obj->put(*detit,
range, detUnitDimensions.first))
72 <<
"[SiPixelFakeGainESSource::produce] detid already exists" << std::endl;
78 return std::unique_ptr<SiPixelGainCalibration>(
obj);
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
std::string fullPath() const
SiPixelFakeGainESSource(const edm::ParameterSet &)
static const IOVSyncValue & endOfTime()
~SiPixelFakeGainESSource() override
static const IOVSyncValue & beginOfTime()
void setIntervalFor(const edm::eventsetup::EventSetupRecordKey &, const edm::IOVSyncValue &, edm::ValidityInterval &) override
Log< level::Info, false > LogInfo
std::pair< ContainerIterator, ContainerIterator > Range
virtual std::unique_ptr< SiPixelGainCalibration > produce(const SiPixelGainCalibrationRcd &)