CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
GeometryConfiguration Class Reference

#include <GeometryConfiguration.h>

Inheritance diagram for GeometryConfiguration:
DDLDocumentProvider

Public Member Functions

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

Editted By On Michael Case Sun Nov 13 2005

Definition at line 17 of file GeometryConfiguration.cc.

References emptyStrings_, files_, personalPlayback::fp, edm::FileInPath::fullPath(), edm::ParameterSet::getParameter(), and relFiles_.

17  : dummyLocation_("") {
18  relFiles_ = pset.getParameter<std::vector<std::string> >("geomXMLFiles");
19  for (std::vector<std::string>::const_iterator rit = relFiles_.begin(), ritEnd = relFiles_.end();
20  rit != ritEnd; ++rit ) {
21  edm::FileInPath fp(*rit);
22  files_.push_back(fp.fullPath());
23  emptyStrings_.push_back("");
24  }
25 }
T getParameter(std::string const &) const
std::vector< std::string > relFiles_
std::vector< std::string > emptyStrings_
std::vector< std::string > files_
GeometryConfiguration::~GeometryConfiguration ( )
virtual

Definition at line 27 of file GeometryConfiguration.cc.

27 { }

Member Function Documentation

bool GeometryConfiguration::doValidation ( void  ) const
virtual

Return a flag whether to do xml validation or not.

Implements DDLDocumentProvider.

Definition at line 36 of file GeometryConfiguration.cc.

References LogDebug.

36  {
37  LogDebug("GeometryConfiguration") << " the doValidation() method not valid for this DDLDocumentProvider" << std::endl;
38  return false;
39 }
#define LogDebug(id)
void GeometryConfiguration::dumpFileList ( void  ) const
virtual

Print out the list of files.

Implements DDLDocumentProvider.

Definition at line 59 of file GeometryConfiguration.cc.

References gather_cfg::cout, and files_.

59  {
60  std::cout << "File List:" << std::endl;
61  std::cout << " number of files=" << files_.size() << std::endl;
62  for (std::vector<std::string>::const_iterator it = files_.begin(), itEnd = files_.end(); it != itEnd; ++it)
63  std::cout << *it << std::endl;
64 }
std::vector< std::string > files_
tuple cout
Definition: gather_cfg.py:121
const std::vector< std::string > & GeometryConfiguration::getFileList ( void  ) const
virtual

Return a list of files as a vector of strings.

Implements DDLDocumentProvider.

Definition at line 42 of file GeometryConfiguration.cc.

References files_.

42  {
43  return files_;
44 }
std::vector< std::string > files_
std::string GeometryConfiguration::getSchemaLocation ( void  ) const
virtual

Return the Schema Location.

Implements DDLDocumentProvider.

Definition at line 30 of file GeometryConfiguration.cc.

References dummyLocation_.

30  {
31  edm::LogError("GeometryConfiguration") << " This sub-class of DDLDocumentProvider does not USE XML parsing!!!" << std::endl;
32  return dummyLocation_;
33 }
const std::vector< std::string > & GeometryConfiguration::getURLList ( void  ) const
virtual

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 51 of file GeometryConfiguration.cc.

References emptyStrings_, and LogDebug.

52 {
53  LogDebug("GeometryConfiguration") << " the getURLList of this DDLDocumentProvider empty strings" << std::endl;
54  // return relFiles_;
55  return emptyStrings_;
56 }
#define LogDebug(id)
std::vector< std::string > emptyStrings_
int GeometryConfiguration::readConfig ( const std::string &  filename)
virtual

Reads in a configuration file and parses it.

Implements DDLDocumentProvider.

Definition at line 66 of file GeometryConfiguration.cc.

66  {
67  edm::LogWarning("GeometryConfiguration") << " The readConfig of this DDLDocumentProvider is not valid!" << std::endl;
68  return 0;
69 }

Member Data Documentation

std::string GeometryConfiguration::dummyLocation_
private

Definition at line 55 of file GeometryConfiguration.h.

Referenced by getSchemaLocation().

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

Definition at line 54 of file GeometryConfiguration.h.

Referenced by GeometryConfiguration(), and getURLList().

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

Definition at line 52 of file GeometryConfiguration.h.

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

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

Definition at line 53 of file GeometryConfiguration.h.

Referenced by GeometryConfiguration().