6 : GenErrorCalibrations_(conf_.getParameter<
vstring>(
"siPixelGenErrorCalibrations")),
7 version_(conf_.getParameter<double>(
"Version")) {
8 edm::LogInfo(
"SiPixelFakeGenErrorDBObjectESSource::SiPixelFakeGenErrorDBObjectESSource");
12 findingRecord<SiPixelGenErrorDBObjectRcd>();
19 using namespace edm::es;
36 for (
m = 0;
m <
obj->numOfTempl(); ++
m) {
38 tempfile = (file.
fullPath()).c_str();
42 if (in_file.is_open()) {
44 <<
"Opened GenError File: " << file.
fullPath().c_str() << std::endl;
47 char title_char[80],
c;
53 for (iter = 0; (c = in_file.get()) !=
'\n' && iter < 79; ++iter) {
57 title_char[iter] =
'\n';
59 unsigned int ilast = 3 - (iter % 4);
60 for (
unsigned int it = 0; it != ilast; it++) {
61 title_char[iter] =
' ';
64 title_char[iter] =
'\n';
67 for (
unsigned int j = 0;
j <= iter;
j += 4) {
68 temp.
c[0] = title_char[
j];
69 temp.
c[1] = title_char[
j + 1];
70 temp.
c[2] = title_char[
j + 2];
71 temp.
c[3] = title_char[
j + 3];
72 obj->push_back(temp.
f);
73 obj->setMaxIndex(
obj->maxIndex() + 1);
78 while (!in_file.eof()) {
79 obj->setMaxIndex(
obj->maxIndex() + 1);
80 obj->push_back(tempstore);
87 edm::LogError(
"SiPixeFakelGenErrorDBObjectESSource") <<
"Error opening File" << tempfile << std::endl;
92 return std::unique_ptr<SiPixelGenErrorDBObject>(
obj);
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
const edm::EventSetup & c
vstring GenErrorCalibrations_
~SiPixelFakeGenErrorDBObjectESSource() override
static const IOVSyncValue & endOfTime()
virtual std::unique_ptr< SiPixelGenErrorDBObject > produce(const SiPixelGenErrorDBObjectRcd &)
SiPixelFakeGenErrorDBObjectESSource(const edm::ParameterSet &)
Log< level::Error, false > LogError
void setIntervalFor(const edm::eventsetup::EventSetupRecordKey &, const edm::IOVSyncValue &, edm::ValidityInterval &) override
static const IOVSyncValue & beginOfTime()
Log< level::Info, false > LogInfo
std::vector< std::string > vstring
std::string fullPath() const