CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
GeometryConfiguration.cc
Go to the documentation of this file.
1 
6 
8 
13 
14 #include <string>
15 #include <vector>
16 
18  relFiles_ = pset.getParameter<std::vector<std::string> >("geomXMLFiles");
19  for (std::vector<std::string>::const_iterator rit = relFiles_.begin(), ritEnd = relFiles_.end();
20  rit != ritEnd; ++rit ) {
21  edm::FileInPath fp(*rit);
22  files_.push_back(fp.fullPath());
23  emptyStrings_.push_back("");
24  }
25 }
26 
28 
31  edm::LogError("GeometryConfiguration") << " This sub-class of DDLDocumentProvider does not USE XML parsing!!!" << std::endl;
32  return dummyLocation_;
33 }
34 
37  LogDebug("GeometryConfiguration") << " the doValidation() method not valid for this DDLDocumentProvider" << std::endl;
38  return false;
39 }
40 
42 const std::vector < std::string > & GeometryConfiguration::getFileList(void) const {
43  return files_;
44 }
45 
47 
51 const std::vector < std::string > & GeometryConfiguration::getURLList(void) const
52 {
53  LogDebug("GeometryConfiguration") << " the getURLList of this DDLDocumentProvider empty strings" << std::endl;
54  // return relFiles_;
55  return emptyStrings_;
56 }
57 
60  std::cout << "File List:" << std::endl;
61  std::cout << " number of files=" << files_.size() << std::endl;
62  for (std::vector<std::string>::const_iterator it = files_.begin(), itEnd = files_.end(); it != itEnd; ++it)
63  std::cout << *it << std::endl;
64 }
65 
67  edm::LogWarning("GeometryConfiguration") << " The readConfig of this DDLDocumentProvider is not valid!" << std::endl;
68  return 0;
69 }
70 
#define LogDebug(id)
T getParameter(std::string const &) const
virtual const std::vector< std::string > & getURLList(void) const
Return a list of urls as a vector of strings.
virtual const std::vector< std::string > & getFileList(void) const
Return a list of files as a vector of strings.
std::vector< std::string > relFiles_
virtual std::string getSchemaLocation() const
Return the Schema Location.
std::vector< std::string > emptyStrings_
virtual void dumpFileList(void) const
Print out the list of files.
int readConfig(const std::string &filename)
Reads in a configuration file and parses it.
string fname
main script
GeometryConfiguration(const edm::ParameterSet &p)
std::vector< std::string > files_
tuple cout
Definition: gather_cfg.py:121
std::string fullPath() const
Definition: FileInPath.cc:165
virtual bool doValidation() const
Return a flag whether to do xml validation or not.