src
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/global/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::global::EDAnalyzer
<> {
44
public
:
45
explicit
L1CaloGeometryDump
(
const
edm::ParameterSet
&);
46
47
private
:
48
void
analyze
(
edm::StreamID
,
const
edm::Event
&,
const
edm::EventSetup
&)
const override
;
49
50
// ----------member data ---------------------------
51
const
edm::ESGetToken<L1CaloGeometry, L1CaloGeometryRecord>
geomToken_
;
52
};
53
54
//
55
// constants, enums and typedefs
56
//
57
58
//
59
// static data member definitions
60
//
61
62
//
63
// constructors and destructor
64
//
65
L1CaloGeometryDump::L1CaloGeometryDump
(
const
edm::ParameterSet
&iConfig) : geomToken_(
esConsumes
()) {
66
// now do what ever initialization is needed
67
}
68
69
//
70
// member functions
71
//
72
73
// ------------ method called to for each event ------------
74
void
L1CaloGeometryDump::analyze
(
edm::StreamID
,
const
edm::Event
&
iEvent
,
const
edm::EventSetup
&iSetup)
const
{
75
LogDebug
(
"L1CaloGeometryDump"
) << iSetup.
getData
(
geomToken_
) << std::endl;
76
}
77
78
// define this as a plug-in
79
DEFINE_FWK_MODULE
(
L1CaloGeometryDump
);
deDxTools::esConsumes
ESGetTokenH3DDVariant esConsumes(std::string const &Record, edm::ConsumesCollector &)
Definition:
DeDxTools.cc:283
edm::global::EDAnalyzer
Definition:
EDAnalyzer.h:32
L1CaloGeometryDump::analyze
void analyze(edm::StreamID, const edm::Event &, const edm::EventSetup &) const override
Definition:
L1CaloGeometryDump.cc:74
edm::StreamID
Definition:
StreamID.h:30
Event.h
EventSetup.h
Frameworkfwd.h
EDAnalyzer.h
ParameterSet.h
edm::ESGetToken< L1CaloGeometry, L1CaloGeometryRecord >
iEvent
int iEvent
Definition:
GenABIO.cc:224
L1CaloGeometryDump::geomToken_
const edm::ESGetToken< L1CaloGeometry, L1CaloGeometryRecord > geomToken_
Definition:
L1CaloGeometryDump.cc:51
ESHandle.h
DEFINE_FWK_MODULE
#define DEFINE_FWK_MODULE(type)
Definition:
MakerMacros.h:16
edm::EventSetup
Definition:
EventSetup.h:59
edm::EventSetup::getData
bool getData(T &iHolder) const
Definition:
EventSetup.h:122
L1CaloGeometryRecord.h
L1CaloGeometryDump
Definition:
L1CaloGeometryDump.cc:43
edm::ParameterSet
Definition:
ParameterSet.h:47
L1CaloGeometryDump::L1CaloGeometryDump
L1CaloGeometryDump(const edm::ParameterSet &)
Definition:
L1CaloGeometryDump.cc:65
edm::Event
Definition:
Event.h:73
L1CaloGeometry.h
MakerMacros.h
LogDebug
#define LogDebug(id)
Definition:
MessageLogger.h:233
Generated for CMSSW Reference Manual by
1.8.14