#include <Reve/DumpSimGeometry/src/DumpSimGeometry.cc>
Public Member Functions | |
DumpSimGeometry (const edm::ParameterSet &) | |
~DumpSimGeometry () | |
Private Member Functions | |
virtual void | analyze (const edm::Event &, const edm::EventSetup &) |
Description: <one line="" class="" summary>="">
Implementation: <Notes on="" implementation>="">
Definition at line 49 of file DumpSimGeometry.cc.
DumpSimGeometry::DumpSimGeometry | ( | const edm::ParameterSet & | ) | [explicit] |
Definition at line 66 of file DumpSimGeometry.cc.
{
// now do what ever initialization is needed
}
DumpSimGeometry::~DumpSimGeometry | ( | ) |
Definition at line 72 of file DumpSimGeometry.cc.
{ // do anything here that needs to be done at desctruction time // (e.g. close files, deallocate resources etc.) }
void DumpSimGeometry::analyze | ( | const edm::Event & | iEvent, |
const edm::EventSetup & | iSetup | ||
) | [private, virtual] |
Implements edm::EDAnalyzer.
Definition at line 81 of file DumpSimGeometry.cc.
References gather_cfg::cout, f, relativeConstraints::geom, edm::EventSetup::get(), and testEve_cfg::level.
{ std::cout << "In the DumpSimGeometry::analyze method..." << std::endl; using namespace edm; ESTransientHandle<TGeoManager> geoh; iSetup.get<DisplayGeomRecord>().get(geoh); TGeoManager *geom = const_cast<TGeoManager*>(geoh.product()); int level = 1 + geom->GetTopVolume()->CountNodes(100, 3); std::cout << "In the DumpSimGeometry::analyze method...obtained main geometry, level=" << level << std::endl; TFile f(TString::Format("cmsSimGeom-%d.root", level), "RECREATE"); f.WriteTObject(geom); f.Close(); }