30 #include <DD4hep/Detector.h>
31 #include <DD4hep/SpecParRegistry.h>
53 setWhatProduced(this).consumes(edm::
ESInputTag(
"", iConfig.getParameter<std::
string>(
"appendToDataLabel")))) {
64 const dd4hep::SpecParRegistry& registry = iRecord.
get(
m_token).specpars();
65 auto product = std::make_unique<dd4hep::SpecParRegistry>();
66 product->specpars.insert(registry.specpars.begin(), registry.specpars.end());
static void fillDescriptions(edm::ConfigurationDescriptions &)
tuple DDSpecParRegistryESProducer
void addDefault(ParameterSetDescription const &psetDescription)
ProductT const & get(ESGetToken< ProductT, DepRecordT > const &iToken) const
DDSpecParRegistryESProducer(const edm::ParameterSet &)
const edm::ESGetToken< DDDetector, IdealGeometryRecord > m_token
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
ReturnType produce(const DDSpecParRegistryRcd &)
unique_ptr< dd4hep::SpecParRegistry > ReturnType
~DDSpecParRegistryESProducer() override