8 #include "DD4hep/Detector.h" 9 #include "DD4hep/DD4hepRootPersistency.h" 11 #include "TGeoManager.h" 38 : m_tag(iConfig.getUntrackedParameter<
string>(
"tag",
"unknown")),
39 m_outputFileName(iConfig.getUntrackedParameter<
string>(
"outputFileName",
"cmsDD4HepGeom.root")),
40 m_label(iConfig.getParameter<
ESInputTag>(
"DDDetector"))
52 int level = 1 + geom.GetTopVolume()->CountNodes( 100, 3 );
54 LogVerbatim(
"Geometry") <<
"In the DDTestDumpFile::analyze method...obtained main geometry, level=" 58 file.WriteTObject(&geom );
59 file.WriteTObject(
new TNamed(
"CMSSW_VERSION", gSystem->Getenv(
"CMSSW_VERSION")));
60 file.WriteTObject(
new TNamed(
"tag",
m_tag.c_str()));
example_stream void analyze(const edm::Event &, const edm::EventSetup &) override
#define DEFINE_FWK_MODULE(type)
void analyze(Event const &iEvent, EventSetup const &) override
DDTestDumpFile(const ParameterSet &)
Namespace of DDCMS conversion namespace.
const string m_outputFileName
Detector const * description() const