Main Page
Namespaces
Classes
Package Documentation
L1TriggerConfig
L1GeometryProducers
src
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
25
#include "
FWCore/Framework/interface/EDAnalyzer.h
"
26
#include "
FWCore/Framework/interface/Frameworkfwd.h
"
27
28
#include "
FWCore/Framework/interface/Event.h
"
29
#include "
FWCore/Framework/interface/MakerMacros.h
"
30
31
#include "
FWCore/Framework/interface/ESHandle.h
"
32
#include "
FWCore/Framework/interface/EventSetup.h
"
33
34
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
35
36
#include "
CondFormats/DataRecord/interface/L1CaloGeometryRecord.h
"
37
#include "
CondFormats/L1TObjects/interface/L1CaloGeometry.h
"
38
39
//
40
// class decleration
41
//
42
43
class
L1CaloGeometryDump
:
public
edm::EDAnalyzer
{
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
//
67
L1CaloGeometryDump::L1CaloGeometryDump
(
const
edm::ParameterSet
&iConfig)
68
69
{
70
// now do what ever initialization is needed
71
}
72
73
L1CaloGeometryDump::~L1CaloGeometryDump
() {
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 ------------
84
void
L1CaloGeometryDump::analyze
(
const
edm::Event
&
iEvent
,
85
const
edm::EventSetup
&iSetup) {
86
using namespace
edm
;
87
88
ESHandle<L1CaloGeometry>
pGeom;
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
// ------------
96
void
L1CaloGeometryDump::beginJob
() {}
97
98
// ------------ method called once each job just after ending the event loop
99
// ------------
100
void
L1CaloGeometryDump::endJob
() {}
101
102
// define this as a plug-in
103
DEFINE_FWK_MODULE
(
L1CaloGeometryDump
);
LogDebug
#define LogDebug(id)
Definition:
MessageLogger.h:670
L1CaloGeometryRecord
Definition:
L1CaloGeometryRecord.h:30
L1CaloGeometryDump::analyze
void analyze(const edm::Event &, const edm::EventSetup &) override
Definition:
L1CaloGeometryDump.cc:84
L1CaloGeometryDump::endJob
void endJob() override
Definition:
L1CaloGeometryDump.cc:100
Event.h
MakerMacros.h
EventSetup.h
Frameworkfwd.h
ParameterSet.h
iEvent
int iEvent
Definition:
GenABIO.cc:224
DEFINE_FWK_MODULE
#define DEFINE_FWK_MODULE(type)
Definition:
MakerMacros.h:16
edm::ESHandle
Definition:
DTSurvey.h:22
ESHandle.h
edm::EventSetup
Definition:
EventSetup.h:57
L1CaloGeometryDump::beginJob
void beginJob() override
Definition:
L1CaloGeometryDump.cc:96
L1CaloGeometryRecord.h
edm::EDAnalyzer
Definition:
EDAnalyzer.h:29
EDAnalyzer.h
L1CaloGeometryDump::~L1CaloGeometryDump
~L1CaloGeometryDump() override
Definition:
L1CaloGeometryDump.cc:73
L1CaloGeometryDump
Definition:
L1CaloGeometryDump.cc:43
edm
HLT enums.
Definition:
AlignableModifier.h:17
edm::EventSetup::get
T get() const
Definition:
EventSetup.h:71
edm::ParameterSet
Definition:
ParameterSet.h:36
L1CaloGeometryDump::L1CaloGeometryDump
L1CaloGeometryDump(const edm::ParameterSet &)
Definition:
L1CaloGeometryDump.cc:67
edm::Event
Definition:
Event.h:71
L1CaloGeometry.h
Generated for CMSSW Reference Manual by
1.8.11