32 #include "DD4hep/Detector.h" 34 #include <unordered_map> 41 using DDVectorsMap = std::unordered_map<std::string, std::vector<double>>;
59 : m_token(setWhatProduced(this).consumes(
edm::
ESInputTag(
"", iConfig.getParameter<
string>(
"appendToDataLabel")))) {}
69 LogDebug(
"Geometry") <<
"DDVectorRegistryESProducer::produce\n";
70 const auto& registry = iRecord.
get(
m_token).vectors();
72 auto product = std::make_unique<DDVectorRegistry>();
73 product->vectors.insert(registry.begin(), registry.end());
unique_ptr< DDVectorRegistry > ReturnType
static void fillDescriptions(edm::ConfigurationDescriptions &)
const edm::ESGetToken< DDDetector, IdealGeometryRecord > m_token
~DDVectorRegistryESProducer() override
std::unordered_map< std::string, std::vector< double > > DDVectorsMap
void addDefault(ParameterSetDescription const &psetDescription)
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Namespace of DDCMS conversion namespace.
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
DDVectorRegistryESProducer(const edm::ParameterSet &)
ReturnType produce(const DDVectorRegistryRcd &)
ProductT const & get(ESGetToken< ProductT, DepRecordT > const &iToken) const