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);