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_.emplace_back(fp.fullPath());
18  emptyStrings_.emplace_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 (const auto & file : files_)
58  std::cout << file << 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
bool doValidation() const override
Return a flag whether to do xml validation or not.
const std::vector< std::string > & getURLList(void) const override
Return a list of urls as a vector of strings.
std::vector< std::string > relFiles_
std::vector< std::string > emptyStrings_
int readConfig(const std::string &filename) override
Reads in a configuration file and parses it.
std::string getSchemaLocation() const override
Return the Schema Location.
void dumpFileList(void) const override
Print out the list of files.
string fname
main script
GeometryConfiguration(const edm::ParameterSet &p)
std::vector< std::string > files_
const std::vector< std::string > & getFileList(void) const override
Return a list of files as a vector of strings.
std::string fullPath() const
Definition: FileInPath.cc:197