Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
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
// 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 ------------
83
void
L1CaloGeometryDump::analyze
(
const
edm::Event
&
iEvent
,
const
edm::EventSetup
&iSetup) {
84
using namespace
edm;
85
86
ESHandle<L1CaloGeometry>
pGeom;
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
// ------------
94
void
L1CaloGeometryDump::beginJob
() {}
95
96
// ------------ method called once each job just after ending the event loop
97
// ------------
98
void
L1CaloGeometryDump::endJob
() {}
99
100
// define this as a plug-in
101
DEFINE_FWK_MODULE
(
L1CaloGeometryDump
);
L1CaloGeometryRecord
Definition:
L1CaloGeometryRecord.h:30
L1CaloGeometryDump::analyze
void analyze(const edm::Event &, const edm::EventSetup &) override
Definition:
L1CaloGeometryDump.cc:83
L1CaloGeometryDump::endJob
void endJob() override
Definition:
L1CaloGeometryDump.cc:98
DEFINE_FWK_MODULE
#define DEFINE_FWK_MODULE(type)
Definition:
MakerMacros.h:16
Event.h
MakerMacros.h
EventSetup.h
Frameworkfwd.h
ParameterSet.h
iEvent
int iEvent
Definition:
GenABIO.cc:224
edm::ESHandle
Definition:
DTSurvey.h:22
ESHandle.h
edm::EventSetup
Definition:
EventSetup.h:59
L1CaloGeometryDump::beginJob
void beginJob() override
Definition:
L1CaloGeometryDump.cc:94
L1CaloGeometryRecord.h
edm::EDAnalyzer
Definition:
EDAnalyzer.h:29
EDAnalyzer.h
L1CaloGeometryDump::~L1CaloGeometryDump
~L1CaloGeometryDump() override
Definition:
L1CaloGeometryDump.cc:73
L1CaloGeometryDump
Definition:
L1CaloGeometryDump.cc:43
edm::EventSetup::get
T get() const
Definition:
EventSetup.h:82
edm::ParameterSet
Definition:
ParameterSet.h:47
L1CaloGeometryDump::L1CaloGeometryDump
L1CaloGeometryDump(const edm::ParameterSet &)
Definition:
L1CaloGeometryDump.cc:67
edm::Event
Definition:
Event.h:73
iConfig
iConfig
Definition:
TSGFromPropagation.cc:56
L1CaloGeometry.h
LogDebug
#define LogDebug(id)
Definition:
MessageLogger.h:233
Generated for CMSSW Reference Manual by
1.8.5