30 : fp_(conf_.getParameter<
edm::FileInPath>(
"file")) {
31 edm::LogInfo(
"SiPixelFakeGainESSource::SiPixelFakeGainESSource");
35 findingRecord<SiPixelGainCalibrationRcd>();
47 const std::vector<uint32_t>& DetIds =
reader.getAllDetIds();
50 for (std::vector<uint32_t>::const_iterator detit = DetIds.begin(); detit != DetIds.end(); detit++) {
51 std::vector<char> theSiPixelGainCalibration;
52 const std::pair<int, int>& detUnitDimensions =
reader.getDetUnitDimensions(*detit);
55 for (
int i = 0;
i < detUnitDimensions.first;
i++) {
56 for (
int j = 0;
j < detUnitDimensions.second;
j++) {
59 obj->setData(ped,
gain, theSiPixelGainCalibration);
66 if (!
obj->put(*detit,
range, detUnitDimensions.first))
68 <<
"[SiPixelFakeGainESSource::produce] detid already exists" << std::endl;
72 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 &)