40 : GenErrorCalibrations_(conf_.getParameter<
vstring>(
"siPixelGenErrorCalibrations")),
41 version_(conf_.getParameter<double>(
"Version")) {
42 edm::LogInfo(
"SiPixelFakeGenErrorDBObjectESSource::SiPixelFakeGenErrorDBObjectESSource");
46 findingRecord<SiPixelGenErrorDBObjectRcd>();
67 for (
m = 0;
m <
obj->numOfTempl(); ++
m) {
73 <<
"Opened GenError File: " <<
file.fullPath().c_str() << std::endl;
76 char title_char[80],
c;
82 for (iter = 0; (
c =
in_file.get()) !=
'\n' && iter < 79; ++iter) {
86 title_char[iter] =
'\n';
88 unsigned int ilast = 3 - (iter % 4);
89 for (
unsigned int it = 0;
it != ilast;
it++) {
90 title_char[iter] =
' ';
93 title_char[iter] =
'\n';
96 for (
unsigned int j = 0;
j <= iter;
j += 4) {
97 temp.c[0] = title_char[
j];
98 temp.c[1] = title_char[
j + 1];
99 temp.c[2] = title_char[
j + 2];
100 temp.c[3] = title_char[
j + 3];
102 obj->setMaxIndex(
obj->maxIndex() + 1);
108 obj->setMaxIndex(
obj->maxIndex() + 1);
109 obj->push_back(tempstore);
116 edm::LogError(
"SiPixeFakelGenErrorDBObjectESSource") <<
"Error opening File" <<
file.fullPath() << std::endl;
121 return std::unique_ptr<SiPixelGenErrorDBObject>(
obj);
134 "siPixelGenErrorCalibrations",
135 {
"CalibTracker/SiPixelESProducers/data/SiPixelTemplateDBObject_0T_phase1_BoR3_v1/generror_summary_zp0310.out",
136 "CalibTracker/SiPixelESProducers/data/SiPixelTemplateDBObject_0T_phase1_BoR3_v1/generror_summary_zp0311.out",
137 "CalibTracker/SiPixelESProducers/data/SiPixelTemplateDBObject_0T_phase1_BoR3_v1/generror_summary_zp0312.out",
138 "CalibTracker/SiPixelESProducers/data/SiPixelTemplateDBObject_0T_phase1_BoR3_v1/generror_summary_zp0313.out",
139 "CalibTracker/SiPixelESProducers/data/SiPixelTemplateDBObject_0T_phase1_BoR3_v1/generror_summary_zp0314.out",
140 "CalibTracker/SiPixelESProducers/data/SiPixelTemplateDBObject_0T_phase1_BoR3_v1/generror_summary_zp0315.out"});
141 desc.add<
double>(
"Version", 1.0);
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
void addWithDefaultLabel(ParameterSetDescription const &psetDescription)
vstring GenErrorCalibrations_
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::Warning, true > LogPrint
Log< level::Info, false > LogInfo
#define DEFINE_FWK_EVENTSETUP_SOURCE(type)
~SiPixelFakeGenErrorDBObjectESSource() override=default
std::vector< std::string > vstring
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)