CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Member Functions
DumpSimGeometry Class Reference

#include <Reve/DumpSimGeometry/src/DumpSimGeometry.cc>

Inheritance diagram for DumpSimGeometry:
edm::EDAnalyzer

Public Member Functions

 DumpSimGeometry (const edm::ParameterSet &)
 
 ~DumpSimGeometry ()
 
- Public Member Functions inherited from edm::EDAnalyzer
 EDAnalyzer ()
 
std::string workerType () const
 
virtual ~EDAnalyzer ()
 

Private Member Functions

virtual void analyze (const edm::Event &, const edm::EventSetup &)
 

Additional Inherited Members

- Public Types inherited from edm::EDAnalyzer
typedef EDAnalyzer ModuleType
 
typedef WorkerT< EDAnalyzerWorkerType
 
- Static Public Member Functions inherited from edm::EDAnalyzer
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
- Protected Member Functions inherited from edm::EDAnalyzer
CurrentProcessingContext const * currentContext () const
 

Detailed Description

Description: <one line="" class="" summary>="">

Implementation: <Notes on="" implementation>="">

Definition at line 49 of file DumpSimGeometry.cc.

Constructor & Destructor Documentation

DumpSimGeometry::DumpSimGeometry ( const edm::ParameterSet )
explicit

Definition at line 66 of file DumpSimGeometry.cc.

67 {
68  // now do what ever initialization is needed
69 }
DumpSimGeometry::~DumpSimGeometry ( )

Definition at line 72 of file DumpSimGeometry.cc.

73 {
74  // do anything here that needs to be done at desctruction time
75  // (e.g. close files, deallocate resources etc.)
76 }

Member Function Documentation

void DumpSimGeometry::analyze ( const edm::Event iEvent,
const edm::EventSetup iSetup 
)
privatevirtual

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.

82 {
83  std::cout << "In the DumpSimGeometry::analyze method..." << std::endl;
84  using namespace edm;
85 
87  iSetup.get<DisplayGeomRecord>().get(geoh);
88  TGeoManager *geom = const_cast<TGeoManager*>(geoh.product());
89 
90  int level = 1 + geom->GetTopVolume()->CountNodes(100, 3);
91 
92  std::cout << "In the DumpSimGeometry::analyze method...obtained main geometry, level="
93  << level << std::endl;
94 
95  TFile f(TString::Format("cmsSimGeom-%d.root", level), "RECREATE");
96  f.WriteTObject(geom);
97  f.Close();
98 }
double f[11][100]
const T & get() const
Definition: EventSetup.h:55
tuple cout
Definition: gather_cfg.py:41
tuple level
Definition: testEve_cfg.py:34