CMS 3D CMS Logo

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

Public Member Functions

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

Private Attributes

const ESInputTag m_tag
 

Detailed Description

Definition at line 22 of file DDTestDumpGeometry.cc.

Constructor & Destructor Documentation

DDTestDumpGeometry::DDTestDumpGeometry ( const ParameterSet iConfig)
explicit

Definition at line 34 of file DDTestDumpGeometry.cc.

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

Member Function Documentation

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

Definition at line 39 of file DDTestDumpGeometry.cc.

References DEFINE_FWK_MODULE, cms::DDDetector::description(), relativeConstraints::geom, edm::EventSetup::get(), m_tag, edm::ESInputTag::module(), GetRecoTauVFromDQM_MC_cff::next, and callgraph::path.

40 {
41  LogVerbatim("Geometry") << "DDTestDumpGeometry::analyze: " << m_tag;
43  iEventSetup.get<GeometryFileRcd>().get(m_tag.module(), det);
44 
45  TGeoManager const& geom = det->description()->manager();
46 
47  TGeoIterator next(geom.GetTopVolume());
48  TGeoNode *node;
49  TString path;
50  while(( node = next())) {
51  next.GetPath( path );
52  LogVerbatim("Geometry") << path << ": "<< node->GetVolume()->GetName();
53  }
54 }
const ESInputTag m_tag
const std::string & module() const
Definition: ESInputTag.h:99
Detector const * description() const
Definition: DDDetector.h:24
void DDTestDumpGeometry::beginJob ( void  )
inlineoverride

Definition at line 26 of file DDTestDumpGeometry.cc.

References analyze(), and iEvent.

26 {}
void DDTestDumpGeometry::endJob ( void  )
inlineoverride

Definition at line 28 of file DDTestDumpGeometry.cc.

28 {}

Member Data Documentation

const ESInputTag DDTestDumpGeometry::m_tag
private

Definition at line 31 of file DDTestDumpGeometry.cc.

Referenced by analyze().