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  // 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
ESHandle.h
edm
HLT enums.
Definition: AlignableModifier.h:19
EDAnalyzer.h
L1CaloGeometryDump::analyze
void analyze(const edm::Event &, const edm::EventSetup &) override
Definition: L1CaloGeometryDump.cc:83
edm::EDAnalyzer
Definition: EDAnalyzer.h:29
MakerMacros.h
edm::EventSetup::get
T get() const
Definition: EventSetup.h:73
DEFINE_FWK_MODULE
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:16
L1CaloGeometryDump::beginJob
void beginJob() override
Definition: L1CaloGeometryDump.cc:94
edm::ESHandle
Definition: DTSurvey.h:22
L1CaloGeometryRecord
Definition: L1CaloGeometryRecord.h:30
LogDebug
#define LogDebug(id)
Definition: MessageLogger.h:670
edm::ParameterSet
Definition: ParameterSet.h:36
Event.h
L1CaloGeometryDump::endJob
void endJob() override
Definition: L1CaloGeometryDump.cc:98
L1CaloGeometryRecord.h
iEvent
int iEvent
Definition: GenABIO.cc:224
edm::EventSetup
Definition: EventSetup.h:57
get
#define get
L1CaloGeometryDump::L1CaloGeometryDump
L1CaloGeometryDump(const edm::ParameterSet &)
Definition: L1CaloGeometryDump.cc:67
Frameworkfwd.h
L1CaloGeometryDump::~L1CaloGeometryDump
~L1CaloGeometryDump() override
Definition: L1CaloGeometryDump.cc:73
EventSetup.h
L1CaloGeometryDump
Definition: L1CaloGeometryDump.cc:43
ParameterSet.h
edm::Event
Definition: Event.h:73
L1CaloGeometry.h