CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
DumpFWTGeoRecoGeometry.cc
Go to the documentation of this file.
8 
9 #include "TGeoManager.h"
10 #include "TFile.h"
11 #include "TTree.h"
12 #include "TError.h"
13 
15 {
16 public:
18  virtual ~DumpFWTGeoRecoGeometry( void ) {}
19 
20 private:
21  virtual void analyze( const edm::Event& event, const edm::EventSetup& eventSetup ) override;
22  virtual void beginJob( void ) override;
23  virtual void endJob( void ) override;
24 
25  int m_level;
26 };
27 
29  : m_level( config.getUntrackedParameter<int>( "level", 1 ))
30 {}
31 
32 void
34 {
35  using namespace edm;
36 
38  eventSetup.get<FWTGeoRecoGeometryRecord>().get( geoh );
39  TGeoManager *geom = geoh.product()->manager();//const_cast<TGeoManager*>( geoh.product()->manager());
40 
41  TFile file( "cmsTRecoGeom.root", "RECREATE" );
42 
43 
44  file.WriteTObject( &*geom );
45  file.Close();
46 }
47 
48 void
50 {}
51 
52 void
54 {}
55 
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:17
virtual void beginJob(void) override
virtual void endJob(void) override
DumpFWTGeoRecoGeometry(const edm::ParameterSet &config)
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger but the state exists so we define the behavior If all triggers are the negative crieriion will lead to accepting the event(this again matches the behavior of"!*"before the partial wildcard feature was incorporated).The per-event"cost"of each negative criterion with multiple relevant triggers is about the same as!*was in the past
const T & get() const
Definition: EventSetup.h:55
virtual void analyze(const edm::Event &event, const edm::EventSetup &eventSetup) override