24 : rootNodeName_(p.getParameter<std::
string>(
"rootNodeName")),
25 userNS_(p.getUntrackedParameter<bool>(
"userControlledNamespace",
false)),
30 throw cms::Exception(
"DDException") <<
"XMLIdealGeometryESSource must have a root node name.";
36 findingRecord<IdealMagneticFieldRecord>();
40 findingRecord<IdealGeometryRecord>();
56 std::unique_ptr<DDCompactView> returnValue(
new DDCompactView(rootNode));
61 throw cms::Exception(
"DDException") <<
"DDD-Parser: parsing failed!";
68 returnValue->lockdown();
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
int parse(const DDLDocumentProvider &dp)
Parse all files. Return is meaningless.
XMLIdealGeometryESSource(const edm::ParameterSet &p)
std::unique_ptr< DDCompactView > produce()
static const IOVSyncValue & endOfTime()
DDName is used to identify DDD entities uniquely.
std::string rootNodeName_
Compact representation of the geometrical detector hierarchy.
void usesResources(std::vector< std::string > const &)
static value_type & instance()
bool isValid() const
true, if the wrapped pointer is valid
static const IOVSyncValue & beginOfTime()
virtual void setUserNS(bool userns)
static const std::string kDDGeometry
A DDLogicalPart aggregates information concerning material, solid and sensitveness ...
GeometryConfiguration geoConfig_
DDLSAX2FileHandler * getDDLSAX2FileHandler()
To get the parent this class allows access to the handler.
~XMLIdealGeometryESSource() override
DDLParser is the main class of Detector Description Language Parser.
#define DEFINE_FWK_EVENTSETUP_SOURCE(type)
std::unique_ptr< DDCompactView > produceGeom(const IdealGeometryRecord &)
T getParameter(std::string const &) const
void setIntervalFor(const edm::eventsetup::EventSetupRecordKey &, const edm::IOVSyncValue &, edm::ValidityInterval &) override
std::unique_ptr< DDCompactView > produceMagField(const IdealMagneticFieldRecord &)