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(); 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 }
GeometryConfiguration::files_
std::vector< std::string > files_
Definition: GeometryConfiguration.h:50
GeometryConfiguration.h
GeometryConfiguration::~GeometryConfiguration
~GeometryConfiguration() override
Definition: GeometryConfiguration.cc:22
MessageLogger.h
GeometryConfiguration::getSchemaLocation
std::string getSchemaLocation() const override
Return the Schema Location.
Definition: GeometryConfiguration.cc:25
gather_cfg.cout
cout
Definition: gather_cfg.py:144
GeometryConfiguration::getURLList
const std::vector< std::string > & getURLList(void) const override
Return a list of urls as a vector of strings.
Definition: GeometryConfiguration.cc:45
personalPlayback.fp
fp
Definition: personalPlayback.py:523
GeometryConfiguration::GeometryConfiguration
GeometryConfiguration(const edm::ParameterSet &p)
Definition: GeometryConfiguration.cc:12
DDLParser.h
edm::LogWarning
Log< level::Warning, false > LogWarning
Definition: MessageLogger.h:122
GeometryConfiguration::emptyStrings_
std::vector< std::string > emptyStrings_
Definition: GeometryConfiguration.h:52
FileInPath.h
edm::FileInPath
Definition: FileInPath.h:64
GeometryConfiguration::doValidation
bool doValidation() const override
Return a flag whether to do xml validation or not.
Definition: GeometryConfiguration.cc:32
GeometryConfiguration::getFileList
const std::vector< std::string > & getFileList(void) const override
Return a list of files as a vector of strings.
Definition: GeometryConfiguration.cc:38
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
GeometryConfiguration::readConfig
int readConfig(const std::string &filename) override
Reads in a configuration file and parses it.
Definition: GeometryConfiguration.cc:59
LogDebug
#define LogDebug(id)
Definition: MessageLogger.h:233
edm::ParameterSet
Definition: ParameterSet.h:47
FrontierConditions_GlobalTag_cff.file
file
Definition: FrontierConditions_GlobalTag_cff.py:13
GeometryConfiguration::relFiles_
std::vector< std::string > relFiles_
Definition: GeometryConfiguration.h:51
GeometryConfiguration::dumpFileList
void dumpFileList(void) const override
Print out the list of files.
Definition: GeometryConfiguration.cc:52
edm::LogError
Log< level::Error, false > LogError
Definition: MessageLogger.h:123
alignmentValidation.fname
string fname
main script
Definition: alignmentValidation.py:959
GeometryConfiguration::dummyLocation_
std::string dummyLocation_
Definition: GeometryConfiguration.h:53
ParameterSet.h
muonDTDigis_cfi.pset
pset
Definition: muonDTDigis_cfi.py:27