Skip to content

Commit

Permalink
Merge pull request #34167 from ianna/dd4hep-detector-fromDB
Browse files Browse the repository at this point in the history
[DD4hep] DDDetector ES producer from DB
  • Loading branch information
cmsbuild committed Jun 23, 2021
2 parents 5adce1b + e8c5905 commit 39a5001
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion DetectorDescription/DDCMS/plugins/DDDetectorESProducer.cc
Expand Up @@ -66,7 +66,7 @@ class DDDetectorESProducer : public ESProducer, public EventSetupRecordIntervalF
DDDetectorESProducer::DDDetectorESProducer(const ParameterSet& iConfig)
: fromDB_(iConfig.getParameter<bool>("fromDB")),
appendToDataLabel_(iConfig.getParameter<string>("appendToDataLabel")),
confGeomXMLFiles_(iConfig.getParameter<FileInPath>("confGeomXMLFiles").fullPath()),
confGeomXMLFiles_(fromDB_ ? "none" : iConfig.getParameter<FileInPath>("confGeomXMLFiles").fullPath()),
rootDDName_(iConfig.getParameter<string>("rootDDName")),
label_(iConfig.getParameter<string>("label")) {
usesResources({edm::ESSharedResourceNames::kDD4Hep});
Expand Down
Expand Up @@ -12,7 +12,6 @@
)

process.DDDetectorESProducer = cms.ESSource("DDDetectorESProducer",
confGeomXMLFiles = cms.FileInPath('Geometry/CMSCommonData/data/dd4hep/cmsExtendedGeometry2021.xml'),
rootDDName = cms.string('cms:OCMS'),
label = cms.string('Extended'),
fromDB = cms.bool(True),
Expand Down

0 comments on commit 39a5001

Please sign in to comment.