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 edm::EDConsumerBase

Public Member Functions

 DumpSimGeometry (const edm::ParameterSet &)
 
 ~DumpSimGeometry ()
 
- Public Member Functions inherited from edm::EDAnalyzer
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
 EDAnalyzer ()
 
ModuleDescription const & moduleDescription () const
 
std::string workerType () const
 
virtual ~EDAnalyzer ()
 
- Public Member Functions inherited from edm::EDConsumerBase
 EDConsumerBase ()
 
ProductHolderIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const
 
std::vector
< ProductHolderIndexAndSkipBit >
const & 
itemsToGetFromEvent () const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
bool registeredToConsume (ProductHolderIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
void updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &)
 
virtual ~EDConsumerBase ()
 

Private Member Functions

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

Additional Inherited Members

- Public Types inherited from edm::EDAnalyzer
typedef EDAnalyzer ModuleType
 
- Static Public Member Functions inherited from edm::EDAnalyzer
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &)
 
- Protected Member Functions inherited from edm::EDConsumerBase
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
EDGetToken consumes (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken consumes (TypeToGet const &id, edm::InputTag const &tag)
 
ConsumesCollector consumesCollector ()
 Use a ConsumesCollector to gather consumes information from helper functions. More...
 
template<typename ProductType , BranchType B = InEvent>
void consumesMany ()
 
void consumesMany (const TypeToGet &id)
 
template<BranchType B>
void consumesMany (const TypeToGet &id)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > mayConsume (edm::InputTag const &tag)
 
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 

Detailed Description

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

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

Definition at line 48 of file DumpSimGeometry.cc.

Constructor & Destructor Documentation

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

Definition at line 65 of file DumpSimGeometry.cc.

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

Definition at line 71 of file DumpSimGeometry.cc.

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

Member Function Documentation

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

Implements edm::EDAnalyzer.

Definition at line 80 of file DumpSimGeometry.cc.

References gather_cfg::cout, f, relativeConstraints::geom, edm::EventSetup::get(), and testEve_cfg::level.

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