CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
DDCMSDetector Class Reference
Inheritance diagram for DDCMSDetector:

Public Member Functions

void analyze (Event const &iEvent, EventSetup const &) override
 
void beginJob () override
 
 DDCMSDetector (const ParameterSet &p)
 
void endJob () override
 

Private Attributes

const ESInputTag m_tag
 

Detailed Description

Definition at line 22 of file DDCMSDetector.cc.

Constructor & Destructor Documentation

DDCMSDetector::DDCMSDetector ( const ParameterSet p)
explicit

Definition at line 34 of file DDCMSDetector.cc.

35  : m_tag(iConfig.getParameter<ESInputTag>("DDDetector"))
36 {}
const ESInputTag m_tag

Member Function Documentation

void DDCMSDetector::analyze ( Event const &  iEvent,
EventSetup const &   
)
override

Definition at line 39 of file DDCMSDetector.cc.

References cms::DDDetector::description(), edm::EventSetup::get(), edm::LogVerbatim::log(), cmsBatch::log, m_tag, edm::ESInputTag::module(), AlCaHLTBitMon_ParallelJobs::p, PhysicsTools::registry, and cms::DDVectorRegistry::vectors.

40 {
42  iEventSetup.get<GeometryFileRcd>().get(m_tag.module(), det);
43 
44  LogVerbatim("Geometry") << "Iterate over the detectors:\n";
45  LogVerbatim("Geometry").log([&](auto& log) {
46  for(auto const& it : det->description()->detectors()) {
47  dd4hep::DetElement det(it.second);
48  log << it.first << ": " << det.path();
49  }
50  });
51  LogVerbatim("Geometry") << "..done!";
52 
54  iEventSetup.get<DDVectorRegistryRcd>().get(m_tag.module(), registry);
55 
56  LogVerbatim("Geometry") << "DD Vector Registry size: " << registry->vectors.size();
57  LogVerbatim("Geometry").log([&](auto& log) {
58  for(const auto& p: registry->vectors) {
59  log << " " << p.first << " => ";
60  for(const auto& i : p.second)
61  log << i << ", ";
62  log << '\n';
63  }
64  });
65 }
tbb::concurrent_unordered_map< std::string, tbb::concurrent_vector< double > > vectors
LogVerbatim & log(F &&iF)
const ESInputTag m_tag
static Interceptor::Registry registry("Interceptor")
const std::string & module() const
Definition: ESInputTag.h:99
Detector const * description() const
Definition: DDDetector.h:24
void DDCMSDetector::beginJob ( void  )
inlineoverride

Definition at line 26 of file DDCMSDetector.cc.

References analyze(), and iEvent.

26 {}
void DDCMSDetector::endJob ( void  )
override

Definition at line 68 of file DDCMSDetector.cc.

References DEFINE_FWK_MODULE.

69 {
70 }

Member Data Documentation

const ESInputTag DDCMSDetector::m_tag
private

Definition at line 31 of file DDCMSDetector.cc.

Referenced by analyze().