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={})
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 &)
bool isValid() const
true, if the wrapped pointer is valid
static value_type & instance()
static const IOVSyncValue & beginOfTime()
static const std::string kDDGeometry
A DDLogicalPart aggregates information concerning material, solid and sensitveness ...
GeometryConfiguration geoConfig_
~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 &)
void setIntervalFor(const edm::eventsetup::EventSetupRecordKey &, const edm::IOVSyncValue &, edm::ValidityInterval &) override
std::unique_ptr< DDCompactView > produceMagField(const IdealMagneticFieldRecord &)