CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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(); rit != ritEnd;
15  ++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!!!"
27  << std::endl;
28  return dummyLocation_;
29 }
30 
33  LogDebug("GeometryConfiguration") << " the doValidation() method not valid for this DDLDocumentProvider" << std::endl;
34  return false;
35 }
36 
38 const std::vector<std::string>& GeometryConfiguration::getFileList(void) const { return files_; }
39 
41 
45 const std::vector<std::string>& GeometryConfiguration::getURLList(void) const {
46  LogDebug("GeometryConfiguration") << " the getURLList of this DDLDocumentProvider empty strings" << std::endl;
47  // return relFiles_;
48  return emptyStrings_;
49 }
50 
53  std::cout << "File List:" << std::endl;
54  std::cout << " number of files=" << files_.size() << std::endl;
55  for (const auto& file : files_)
56  std::cout << file << std::endl;
57 }
58 
60  edm::LogWarning("GeometryConfiguration") << " The readConfig of this DDLDocumentProvider is not valid!" << std::endl;
61  return 0;
62 }
Log< level::Error, false > LogError
const std::vector< std::string > & getURLList(void) const override
Return a list of urls as a vector of strings.
std::vector< std::string > relFiles_
int readConfig(const std::string &filename) override
Reads in a configuration file and parses it.
const std::vector< std::string > & getFileList(void) const override
Return a list of files as a vector of strings.
std::vector< std::string > files_
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
bool doValidation() const override
Return a flag whether to do xml validation or not.
string fname
main script
GeometryConfiguration(const edm::ParameterSet &p)
std::string fullPath() const
Definition: FileInPath.cc:161
tuple cout
Definition: gather_cfg.py:144
void dumpFileList(void) const override
Print out the list of files.
std::string getSchemaLocation() const override
Return the Schema Location.
Log< level::Warning, false > LogWarning
std::vector< std::string > emptyStrings_
#define LogDebug(id)