Go to the documentation of this file.
22 : rootNodeName_(
p.getParameter<
std::
string>(
"rootNodeName")),
23 userNS_(
p.getUntrackedParameter<
bool>(
"userControlledNamespace",
false)),
26 throw cms::Exception(
"DDException") <<
"XMLIdealGeometryESSource must have a root node name.";
32 findingRecord<IdealMagneticFieldRecord>();
36 findingRecord<IdealGeometryRecord>();
52 std::unique_ptr<DDCompactView> returnValue(
new DDCompactView(rootNode));
57 throw cms::Exception(
"DDException") <<
"DDD-Parser: parsing failed!";
64 returnValue->lockdown();
DDName is used to identify DDD entities uniquely.
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
void setIntervalFor(const edm::eventsetup::EventSetupRecordKey &, const edm::IOVSyncValue &, edm::ValidityInterval &) override
std::unique_ptr< DDCompactView > produceGeom(const IdealGeometryRecord &)
Compact representation of the geometrical detector hierarchy.
#define DEFINE_FWK_EVENTSETUP_SOURCE(type)
bool isValid() const
true, if the wrapped pointer is valid
static const IOVSyncValue & endOfTime()
static value_type & instance()
DDLParser is the main class of Detector Description Language Parser.
A DDLogicalPart aggregates information concerning material, solid and sensitveness ....
std::unique_ptr< DDCompactView > produce()
GeometryConfiguration geoConfig_
XMLIdealGeometryESSource(const edm::ParameterSet &p)
std::string rootNodeName_
std::unique_ptr< DDCompactView > produceMagField(const IdealMagneticFieldRecord &)
static const IOVSyncValue & beginOfTime()
~XMLIdealGeometryESSource() override