6 version_(conf_.getParameter<double>(
"Version"))
8 edm::LogInfo(
"SiPixelFakeTemplateDBObjectESSource::SiPixelFakeTemplateDBObjectESSource");
12 findingRecord<SiPixelTemplateDBObjectRcd>();
21 using namespace edm::es;
38 for(
m=0;
m<
obj->numOfTempl(); ++
m){
41 tempfile = (file.
fullPath()).c_str();
45 if(in_file.is_open()){
46 edm::LogInfo(
"SiPixelFakeTemplateDBObjectESSource") <<
"Opened Template 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];
66 obj->push_back(temp.
f);
67 obj->setMaxIndex(
obj->maxIndex()+1);
72 while(!in_file.eof()) {
73 obj->setMaxIndex(
obj->maxIndex()+1);
74 obj->push_back(tempstore);
82 edm::LogError(
"SiPixeFakelTemplateDBObjectESSource") <<
"Error opening File" << tempfile << std::endl;
87 return std::auto_ptr<SiPixelTemplateDBObject>(
obj);
std::vector< std::string > vstring
static const IOVSyncValue & endOfTime()
~SiPixelFakeTemplateDBObjectESSource()
virtual void setIntervalFor(const edm::eventsetup::EventSetupRecordKey &, const edm::IOVSyncValue &, edm::ValidityInterval &)
void setWhatProduced(T *iThis, const es::Label &iLabel=es::Label())
static const IOVSyncValue & beginOfTime()
SiPixelFakeTemplateDBObjectESSource(const edm::ParameterSet &)
virtual std::auto_ptr< SiPixelTemplateDBObject > produce(const SiPixelTemplateDBObjectRcd &)
vstring templateCalibrations_
std::string fullPath() const