Main Page
Namespaces
Classes
Package Documentation
DetectorDescription
DDCMS
plugins
DDTestDumpGeometry.cc
Go to the documentation of this file.
1
#include "
FWCore/Framework/interface/one/EDAnalyzer.h
"
2
#include "
FWCore/Framework/interface/MakerMacros.h
"
3
#include "
DetectorDescription/DDCMS/interface/DDRegistry.h
"
4
#include "DD4hep/Detector.h"
5
#include "DD4hep/DD4hepRootPersistency.h"
6
7
#include "TGeoManager.h"
8
#include "TFile.h"
9
#include "TSystem.h"
10
11
#include <iostream>
12
#include <string>
13
14
class
DDTestDumpGeometry
:
public
edm::one::EDAnalyzer
<> {
15
public
:
16
explicit
DDTestDumpGeometry
(
const
edm::ParameterSet
& );
17
18
void
beginJob
()
override
{}
19
void
analyze
(
edm::Event
const
&
iEvent
,
edm::EventSetup
const
& )
override
;
20
void
endJob
()
override
{}
21
};
22
23
DDTestDumpGeometry::DDTestDumpGeometry
(
const
edm::ParameterSet
& iConfig )
24
{}
25
26
void
27
DDTestDumpGeometry::analyze
(
const
edm::Event
&,
const
edm::EventSetup
& )
28
{
29
std::cout
<<
"DDTestDumpGeometry::analyze:\n"
;
30
dd4hep::Detector
&
description
= dd4hep::Detector::getInstance();
31
32
TGeoManager&
geom
= description.manager();
33
34
TGeoIterator
next
( geom.GetTopVolume());
35
TGeoNode *node;
36
TString
path
;
37
while
(( node =
next
())) {
38
next
.GetPath( path );
39
std::cout
<< path <<
": "
<< node->GetVolume()->GetName() <<
"\n"
;
40
}
41
}
42
43
DEFINE_FWK_MODULE
(
DDTestDumpGeometry
);
callgraph.path
path
Definition:
callgraph.py:39
align::Detector
Definition:
StructureType.h:88
DDTestDumpGeometry::DDTestDumpGeometry
DDTestDumpGeometry(const edm::ParameterSet &)
Definition:
DDTestDumpGeometry.cc:23
DDTestDumpGeometry::beginJob
void beginJob() override
Definition:
DDTestDumpGeometry.cc:18
DDTestDumpGeometry
Definition:
DDTestDumpGeometry.cc:14
DEFINE_FWK_MODULE
#define DEFINE_FWK_MODULE(type)
Definition:
MakerMacros.h:17
MakerMacros.h
DDRegistry.h
GetRecoTauVFromDQM_MC_cff.next
next
Definition:
GetRecoTauVFromDQM_MC_cff.py:31
iEvent
int iEvent
Definition:
GenABIO.cc:230
DDTestDumpGeometry::endJob
void endJob() override
Definition:
DDTestDumpGeometry.cc:20
edm::EventSetup
Definition:
EventSetup.h:54
relativeConstraints.geom
geom
Definition:
relativeConstraints.py:72
heppy_report.description
description
Definition:
heppy_report.py:46
EDAnalyzer.h
DDTestDumpGeometry::analyze
void analyze(edm::Event const &iEvent, edm::EventSetup const &) override
Definition:
DDTestDumpGeometry.cc:27
edm::ParameterSet
Definition:
ParameterSet.h:36
gather_cfg.cout
cout
Definition:
gather_cfg.py:144
edm::Event
Definition:
Event.h:70
edm::one::EDAnalyzer
Definition:
EDAnalyzer.h:30
Generated for CMSSW Reference Manual by
1.8.11