6 version_(conf_.getParameter<double>(
"Version"))
8 edm::LogInfo(
"SiPixelFakeGenErrorDBObjectESSource::SiPixelFakeGenErrorDBObjectESSource");
12 findingRecord<SiPixelGenErrorDBObjectRcd>();
41 tempfile = (file.
fullPath()).c_str();
45 if(in_file.is_open()){
46 edm::LogInfo(
"SiPixelFakeGenErrorDBObjectESSource") <<
"Opened GenError File: " << file.
fullPath().c_str() << std::endl;
49 char title_char[80],
c;
55 for (iter = 0; (c=in_file.get()) !=
'\n'; ++iter) {
56 if(iter < 79) {title_char[iter] =
c;}
58 if(iter > 78) {iter=78;}
59 title_char[iter+1] =
'\n';
61 for(j=0; j<80; j+=4) {
62 temp.
c[0] = title_char[j];
63 temp.
c[1] = title_char[j+1];
64 temp.
c[2] = title_char[j+2];
65 temp.
c[3] = title_char[j+3];
72 while(!in_file.eof()) {
82 edm::LogError(
"SiPixeFakelGenErrorDBObjectESSource") <<
"Error opening File" << tempfile << std::endl;
87 return std::unique_ptr<SiPixelGenErrorDBObject>(
obj);
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
void setNumOfTempl(int numOfTempl)
vstring GenErrorCalibrations_
~SiPixelFakeGenErrorDBObjectESSource() override
static const IOVSyncValue & endOfTime()
virtual std::unique_ptr< SiPixelGenErrorDBObject > produce(const SiPixelGenErrorDBObjectRcd &)
SiPixelFakeGenErrorDBObjectESSource(const edm::ParameterSet &)
void setIntervalFor(const edm::eventsetup::EventSetupRecordKey &, const edm::IOVSyncValue &, edm::ValidityInterval &) override
static const IOVSyncValue & beginOfTime()
void push_back(float entry)
std::vector< std::string > vstring
void setVersion(float version)
std::string fullPath() const
void setMaxIndex(int maxIndex)