CMS 3D CMS Logo

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 
75  // do anything here that needs to be done at desctruction time
76  // (e.g. close files, deallocate resources etc.)
77 }
78 
79 //
80 // member functions
81 //
82 
83 // ------------ method called to for each event ------------
85  const edm::EventSetup &iSetup) {
86  using namespace edm;
87 
89  iSetup.get<L1CaloGeometryRecord>().get(pGeom);
90 
91  LogDebug("L1CaloGeometryDump") << *pGeom << std::endl;
92 }
93 
94 // ------------ method called once each job just before starting event loop
95 // ------------
97 
98 // ------------ method called once each job just after ending the event loop
99 // ------------
101 
102 // define this as a plug-in
#define LogDebug(id)
void analyze(const edm::Event &, const edm::EventSetup &) override
void endJob() override
int iEvent
Definition: GenABIO.cc:224
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:16
void beginJob() override
~L1CaloGeometryDump() override
HLT enums.
T get() const
Definition: EventSetup.h:71
L1CaloGeometryDump(const edm::ParameterSet &)