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
//
13
//
14
// Original Author: Werner Man-Li Sun
15
// Created: Mon Sep 28 22:17:24 CEST 2009
16
// $Id$
17
//
18
//
19
20
21
// system include files
22
#include <memory>
23
24
// user include files
25
#include "
FWCore/Framework/interface/Frameworkfwd.h
"
26
#include "
FWCore/Framework/interface/EDAnalyzer.h
"
27
28
#include "
FWCore/Framework/interface/Event.h
"
29
#include "
FWCore/Framework/interface/MakerMacros.h
"
30
31
#include "
FWCore/Framework/interface/EventSetup.h
"
32
#include "
FWCore/Framework/interface/ESHandle.h
"
33
34
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
35
36
#include "
CondFormats/L1TObjects/interface/L1CaloGeometry.h
"
37
#include "
CondFormats/DataRecord/interface/L1CaloGeometryRecord.h
"
38
39
//
40
// class decleration
41
//
42
43
class
L1CaloGeometryDump
:
public
edm::EDAnalyzer
{
44
public
:
45
explicit
L1CaloGeometryDump
(
const
edm::ParameterSet
&);
46
~L1CaloGeometryDump
();
47
48
49
private
:
50
virtual
void
beginJob
()
override
;
51
virtual
void
analyze
(
const
edm::Event
&,
const
edm::EventSetup
&)
override
;
52
virtual
void
endJob
()
override
;
53
54
// ----------member data ---------------------------
55
};
56
57
//
58
// constants, enums and typedefs
59
//
60
61
//
62
// static data member definitions
63
//
64
65
//
66
// constructors and destructor
67
//
68
L1CaloGeometryDump::L1CaloGeometryDump
(
const
edm::ParameterSet
& iConfig)
69
70
{
71
//now do what ever initialization is needed
72
73
}
74
75
76
L1CaloGeometryDump::~L1CaloGeometryDump
()
77
{
78
79
// do anything here that needs to be done at desctruction time
80
// (e.g. close files, deallocate resources etc.)
81
82
}
83
84
85
//
86
// member functions
87
//
88
89
// ------------ method called to for each event ------------
90
void
91
L1CaloGeometryDump::analyze
(
const
edm::Event
&
iEvent
,
const
edm::EventSetup
& iSetup)
92
{
93
using namespace
edm
;
94
95
ESHandle< L1CaloGeometry >
pGeom ;
96
iSetup.
get
<
L1CaloGeometryRecord
>().
get
( pGeom ) ;
97
98
LogDebug
(
"L1CaloGeometryDump"
) << *pGeom << std::endl ;
99
}
100
101
102
// ------------ method called once each job just before starting event loop ------------
103
void
104
L1CaloGeometryDump::beginJob
()
105
{
106
}
107
108
// ------------ method called once each job just after ending the event loop ------------
109
void
110
L1CaloGeometryDump::endJob
() {
111
}
112
113
//define this as a plug-in
114
DEFINE_FWK_MODULE
(
L1CaloGeometryDump
);
LogDebug
#define LogDebug(id)
Definition:
PFTrackAlgoTools.cc:503
L1CaloGeometryRecord
Definition:
L1CaloGeometryRecord.h:30
L1CaloGeometryDump::analyze
virtual void analyze(const edm::Event &, const edm::EventSetup &) override
Definition:
L1CaloGeometryDump.cc:91
L1CaloGeometryDump::endJob
virtual void endJob() override
Definition:
L1CaloGeometryDump.cc:110
DEFINE_FWK_MODULE
#define DEFINE_FWK_MODULE(type)
Definition:
MakerMacros.h:17
Event.h
MakerMacros.h
EventSetup.h
Frameworkfwd.h
ParameterSet.h
iEvent
int iEvent
Definition:
GenABIO.cc:230
edm::ESHandle
Definition:
DTSurvey.h:22
ESHandle.h
edm::EventSetup
Definition:
EventSetup.h:44
L1CaloGeometryDump::beginJob
virtual void beginJob() override
Definition:
L1CaloGeometryDump.cc:104
L1CaloGeometryRecord.h
edm::EDAnalyzer
Definition:
EDAnalyzer.h:27
EDAnalyzer.h
edm::EventSetup::get
const T & get() const
Definition:
EventSetup.h:55
L1CaloGeometryDump
Definition:
L1CaloGeometryDump.cc:43
edm
HLT enums.
Definition:
AlignableModifier.h:17
edm::ParameterSet
Definition:
ParameterSet.h:36
L1CaloGeometryDump::~L1CaloGeometryDump
~L1CaloGeometryDump()
Definition:
L1CaloGeometryDump.cc:76
L1CaloGeometryDump::L1CaloGeometryDump
L1CaloGeometryDump(const edm::ParameterSet &)
Definition:
L1CaloGeometryDump.cc:68
edm::Event
Definition:
Event.h:69
L1CaloGeometry.h
Generated for CMSSW Reference Manual by
1.8.11