23 userNS_(p.getUntrackedParameter<
bool>(
"userControlledNamespace",
false)),
27 throw cms::Exception(
"DDException") <<
"XMLIdealGeometryESSource must have a root node name.";
33 findingRecord<IdealMagneticFieldRecord>();
37 findingRecord<IdealGeometryRecord>();
43 std::unique_ptr<DDCompactView>
49 std::unique_ptr<DDCompactView>
56 std::unique_ptr<DDCompactView>
62 std::unique_ptr<DDCompactView> returnValue(
new DDCompactView(rootNode));
66 if (result2 != 0)
throw cms::Exception(
"DDException") <<
"DDD-Parser: parsing failed!";
71 throw cms::Exception(
"Geometry")<<
"There is no valid node named \"" 74 returnValue->lockdown();
T getParameter(std::string const &) const
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.
static value_type & instance()
bool isValid() const
true, if the wrapped pointer is valid
static const IOVSyncValue & beginOfTime()
virtual void setUserNS(bool userns)
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.
std::unique_ptr< DDCompactView > produceGeom(const IdealGeometryRecord &)
#define DEFINE_FWK_EVENTSETUP_SOURCE(type)
void setIntervalFor(const edm::eventsetup::EventSetupRecordKey &, const edm::IOVSyncValue &, edm::ValidityInterval &) override
std::unique_ptr< DDCompactView > produceMagField(const IdealMagneticFieldRecord &)