CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
GeometryConfiguration Class Reference

#include <GeometryConfiguration.h>

Inheritance diagram for GeometryConfiguration:
DDLDocumentProvider

Public Member Functions

bool doValidation () const override
 Return a flag whether to do xml validation or not. More...
 
void dumpFileList (void) const override
 Print out the list of files. More...
 
 GeometryConfiguration (const edm::ParameterSet &p)
 
const std::vector< std::string > & getFileList (void) const override
 Return a list of files as a vector of strings. More...
 
std::string getSchemaLocation () const override
 Return the Schema Location. More...
 
const std::vector< std::string > & getURLList (void) const override
 Return a list of urls as a vector of strings. More...
 
int readConfig (const std::string &filename) override
 Reads in a configuration file and parses it. More...
 
 ~GeometryConfiguration () override
 
- Public Member Functions inherited from DDLDocumentProvider
virtual ~DDLDocumentProvider ()
 

Private Attributes

std::string dummyLocation_
 
std::vector< std::string > emptyStrings_
 
std::vector< std::string > files_
 
std::vector< std::string > relFiles_
 

Detailed Description

May 23, 2006: Michael Case: This class provides the filenames to the DDLParser from the parameter-set passed by XMLIdealGeometryESSource. This removes the dependency on the Configuration Language of the DDD and moves the list of XML files to the parameter-set for provenance.

Definition at line 20 of file GeometryConfiguration.h.

Constructor & Destructor Documentation

◆ GeometryConfiguration()

GeometryConfiguration::GeometryConfiguration ( const edm::ParameterSet p)

Definition at line 12 of file GeometryConfiguration.cc.

12  : dummyLocation_("") {
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 }

References emptyStrings_, files_, personalPlayback::fp, muonDTDigis_cfi::pset, and relFiles_.

◆ ~GeometryConfiguration()

GeometryConfiguration::~GeometryConfiguration ( )
override

Definition at line 22 of file GeometryConfiguration.cc.

22 {}

Member Function Documentation

◆ doValidation()

bool GeometryConfiguration::doValidation ( void  ) const
overridevirtual

Return a flag whether to do xml validation or not.

Implements DDLDocumentProvider.

Definition at line 32 of file GeometryConfiguration.cc.

32  {
33  LogDebug("GeometryConfiguration") << " the doValidation() method not valid for this DDLDocumentProvider" << std::endl;
34  return false;
35 }

References LogDebug.

◆ dumpFileList()

void GeometryConfiguration::dumpFileList ( void  ) const
overridevirtual

Print out the list of files.

Implements DDLDocumentProvider.

Definition at line 52 of file GeometryConfiguration.cc.

52  {
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 }

References gather_cfg::cout, FrontierConditions_GlobalTag_cff::file, and files_.

◆ getFileList()

const std::vector< std::string > & GeometryConfiguration::getFileList ( void  ) const
overridevirtual

Return a list of files as a vector of strings.

Implements DDLDocumentProvider.

Definition at line 38 of file GeometryConfiguration.cc.

38 { return files_; }

References files_.

◆ getSchemaLocation()

std::string GeometryConfiguration::getSchemaLocation ( void  ) const
overridevirtual

Return the Schema Location.

Implements DDLDocumentProvider.

Definition at line 25 of file GeometryConfiguration.cc.

25  {
26  edm::LogError("GeometryConfiguration") << " This sub-class of DDLDocumentProvider does not USE XML parsing!!!"
27  << std::endl;
28  return dummyLocation_;
29 }

References dummyLocation_.

◆ getURLList()

const std::vector< std::string > & GeometryConfiguration::getURLList ( void  ) const
overridevirtual

Return a list of urls as a vector of strings.

The EDM should not allow URLs because of provenance. This vector will always be empty.

Implements DDLDocumentProvider.

Definition at line 45 of file GeometryConfiguration.cc.

45  {
46  LogDebug("GeometryConfiguration") << " the getURLList of this DDLDocumentProvider empty strings" << std::endl;
47  // return relFiles_;
48  return emptyStrings_;
49 }

References emptyStrings_, and LogDebug.

◆ readConfig()

int GeometryConfiguration::readConfig ( const std::string &  filename)
overridevirtual

Reads in a configuration file and parses it.

Implements DDLDocumentProvider.

Definition at line 59 of file GeometryConfiguration.cc.

59  {
60  edm::LogWarning("GeometryConfiguration") << " The readConfig of this DDLDocumentProvider is not valid!" << std::endl;
61  return 0;
62 }

Member Data Documentation

◆ dummyLocation_

std::string GeometryConfiguration::dummyLocation_
private

Definition at line 53 of file GeometryConfiguration.h.

Referenced by getSchemaLocation().

◆ emptyStrings_

std::vector<std::string> GeometryConfiguration::emptyStrings_
private

Definition at line 52 of file GeometryConfiguration.h.

Referenced by GeometryConfiguration(), and getURLList().

◆ files_

std::vector<std::string> GeometryConfiguration::files_
private

Definition at line 50 of file GeometryConfiguration.h.

Referenced by dumpFileList(), GeometryConfiguration(), and getFileList().

◆ relFiles_

std::vector<std::string> GeometryConfiguration::relFiles_
private

Definition at line 51 of file GeometryConfiguration.h.

Referenced by GeometryConfiguration().

GeometryConfiguration::files_
std::vector< std::string > files_
Definition: GeometryConfiguration.h:50
gather_cfg.cout
cout
Definition: gather_cfg.py:144
personalPlayback.fp
fp
Definition: personalPlayback.py:523
GeometryConfiguration::emptyStrings_
std::vector< std::string > emptyStrings_
Definition: GeometryConfiguration.h:52
edm::FileInPath
Definition: FileInPath.h:64
edm::LogWarning
Definition: MessageLogger.h:141
LogDebug
#define LogDebug(id)
Definition: MessageLogger.h:670
edm::LogError
Definition: MessageLogger.h:183
FrontierConditions_GlobalTag_cff.file
file
Definition: FrontierConditions_GlobalTag_cff.py:13
GeometryConfiguration::relFiles_
std::vector< std::string > relFiles_
Definition: GeometryConfiguration.h:51
GeometryConfiguration::dummyLocation_
std::string dummyLocation_
Definition: GeometryConfiguration.h:53
muonDTDigis_cfi.pset
pset
Definition: muonDTDigis_cfi.py:27