CMS 3D CMS Logo

DDTestVectors.cc
Go to the documentation of this file.
8 
9 #include <iostream>
10 
11 using namespace std;
12 using namespace cms;
13 using namespace edm;
14 
15 class DDTestVectors : public one::EDAnalyzer<> {
16 public:
17  explicit DDTestVectors(const ParameterSet& iConfig)
18  : m_tag(iConfig.getParameter<ESInputTag>("DDDetector"))
19  {}
20 
21  void beginJob() override {}
22  void analyze(Event const& iEvent, EventSetup const&) override;
23  void endJob() override {}
24 
25 private:
27 };
28 
29 void
30 DDTestVectors::analyze( const Event&, const EventSetup& iEventSetup)
31 {
32  LogVerbatim("Geometry") << "DDTestVectors::analyze: " << m_tag;
34  iEventSetup.get<DDVectorRegistryRcd>().get(m_tag.module(), registry);
35 
36  LogVerbatim("Geometry").log([&registry](auto& log) {
37  log << "DD Vector Registry size: " << registry->vectors.size();
38  for(const auto& p: registry->vectors) {
39  log << " " << p.first << " => ";
40  for(const auto& i : p.second)
41  log << i << ", ";
42  }
43  });
44 }
45 
tbb::concurrent_unordered_map< std::string, tbb::concurrent_vector< double > > vectors
DDTestVectors(const ParameterSet &iConfig)
example_stream void analyze(const edm::Event &, const edm::EventSetup &) override
void analyze(Event const &iEvent, EventSetup const &) override
const ESInputTag m_tag
int iEvent
Definition: GenABIO.cc:224
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:16
void endJob() override
void beginJob() override
LogVerbatim & log(F &&iF)
Namespace of DDCMS conversion namespace.
HLT enums.
T get() const
Definition: EventSetup.h:71
static Interceptor::Registry registry("Interceptor")