CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
L1CaloGeometryDump.cc
Go to the documentation of this file.
1 // -*- C++ -*-
2 //
3 // Package: L1CaloGeometryDump
4 // Class: L1CaloGeometryDump
5 //
14 //
15 // Original Author: Werner Man-Li Sun
16 // Created: Mon Sep 28 22:17:24 CEST 2009
17 // $Id$
18 //
19 //
20 
21 // system include files
22 #include <memory>
23 
24 // user include files
27 
30 
33 
35 
38 
39 //
40 // class decleration
41 //
42 
44 public:
45  explicit L1CaloGeometryDump(const edm::ParameterSet &);
46  ~L1CaloGeometryDump() override;
47 
48 private:
49  void beginJob() override;
50  void analyze(const edm::Event &, const edm::EventSetup &) override;
51  void endJob() override;
52 
53  // ----------member data ---------------------------
54 };
55 
56 //
57 // constants, enums and typedefs
58 //
59 
60 //
61 // static data member definitions
62 //
63 
64 //
65 // constructors and destructor
66 //
68 
69 {
70  // now do what ever initialization is needed
71 }
72 
74  // do anything here that needs to be done at desctruction time
75  // (e.g. close files, deallocate resources etc.)
76 }
77 
78 //
79 // member functions
80 //
81 
82 // ------------ method called to for each event ------------
84  using namespace edm;
85 
87  iSetup.get<L1CaloGeometryRecord>().get(pGeom);
88 
89  LogDebug("L1CaloGeometryDump") << *pGeom << std::endl;
90 }
91 
92 // ------------ method called once each job just before starting event loop
93 // ------------
95 
96 // ------------ method called once each job just after ending the event loop
97 // ------------
99 
100 // define this as a plug-in
void analyze(const edm::Event &, const edm::EventSetup &) override
void endJob() override
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:16
int iEvent
Definition: GenABIO.cc:224
void beginJob() override
~L1CaloGeometryDump() override
T get() const
Definition: EventSetup.h:88
L1CaloGeometryDump(const edm::ParameterSet &)
#define LogDebug(id)