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());
std::unordered_map< std::string, std::vector< double >> DDVectorsMap
unique_ptr< DDVectorRegistry > ReturnType
static void fillDescriptions(edm::ConfigurationDescriptions &)
const edm::ESGetToken< DDDetector, IdealGeometryRecord > m_token
tuple DDVectorRegistryESProducer
~DDVectorRegistryESProducer() override
void addDefault(ParameterSetDescription const &psetDescription)
ProductT const & get(ESGetToken< ProductT, DepRecordT > const &iToken) const
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
DDVectorRegistryESProducer(const edm::ParameterSet &)
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
ReturnType produce(const DDVectorRegistryRcd &)