CMS 3D CMS Logo

GeometryConfiguration.cc
Go to the documentation of this file.
2 
4 
8 
9 #include <string>
10 #include <vector>
11 
13  relFiles_ = pset.getParameter<std::vector<std::string> >("geomXMLFiles");
14  for (std::vector<std::string>::const_iterator rit = relFiles_.begin(), ritEnd = relFiles_.end();
15  rit != ritEnd; ++rit ) {
16  edm::FileInPath fp(*rit);
17  files_.push_back(fp.fullPath());
18  emptyStrings_.push_back("");
19  }
20 }
21 
23 
26  edm::LogError("GeometryConfiguration") << " This sub-class of DDLDocumentProvider does not USE XML parsing!!!" << std::endl;
27  return dummyLocation_;
28 }
29 
32  LogDebug("GeometryConfiguration") << " the doValidation() method not valid for this DDLDocumentProvider" << std::endl;
33  return false;
34 }
35 
37 const std::vector < std::string > & GeometryConfiguration::getFileList(void) const {
38  return files_;
39 }
40 
42 
46 const std::vector < std::string > & GeometryConfiguration::getURLList(void) const
47 {
48  LogDebug("GeometryConfiguration") << " the getURLList of this DDLDocumentProvider empty strings" << std::endl;
49  // return relFiles_;
50  return emptyStrings_;
51 }
52 
55  std::cout << "File List:" << std::endl;
56  std::cout << " number of files=" << files_.size() << std::endl;
57  for (std::vector<std::string>::const_iterator it = files_.begin(), itEnd = files_.end(); it != itEnd; ++it)
58  std::cout << *it << std::endl;
59 }
60 
62  edm::LogWarning("GeometryConfiguration") << " The readConfig of this DDLDocumentProvider is not valid!" << std::endl;
63  return 0;
64 }
65 
#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_
std::string fullPath() const
Definition: FileInPath.cc:184
virtual bool doValidation() const
Return a flag whether to do xml validation or not.