11 #include "DD4hep/Detector.h" 26 void endJob()
override;
39 m_relFiles = iConfig.
getParameter<std::vector<std::string> >(
"geomXMLFiles" );
40 for(
const auto& it : m_relFiles ) {
42 m_files.emplace_back( fp.
fullPath());
55 for(
const auto& it : m_files )
58 std::cout <<
"DD Vector Registry size: " << registry->
vectors.size() <<
"\n";
59 for(
const auto&
p: registry->
vectors ) {
61 for(
const auto&
i :
p.second )
65 std::cout <<
"Iterate over the detectors:\n";
66 for(
auto const& it : description->
description().detectors()) {
67 dd4hep::DetElement det(it.second);
68 std::cout << it.first <<
": " << det.path() <<
"\n";
T getParameter(std::string const &) const
std::vector< std::string > m_relFiles
#define DEFINE_FWK_MODULE(type)
std::vector< std::string > m_files
DDCMSDetector(const edm::ParameterSet &p)
void analyze(edm::Event const &iEvent, edm::EventSetup const &) override
std::string m_confGeomXMLFiles
Namespace of DDCMS conversion namespace.
std::unordered_map< std::string, std::vector< double > > vectors
std::string fullPath() const
virtual example_stream void analyze(const edm::Event &, const edm::EventSetup &) override
dd4hep::Detector & description() const