L1TriggerConfig
RCTConfigProducers
src
L1RCTParametersTester.cc
Go to the documentation of this file.
1
// -*- C++ -*-
2
//
3
// Package: RCTConfigTester
4
// Class: RCTConfigTester
5
//
13
//
14
// Original Author: Sridhara Dasu
15
// Created: Mon Jul 16 23:48:35 CEST 2007
16
//
17
//
18
// user include files
19
#include "
FWCore/Framework/interface/one/EDAnalyzer.h
"
20
#include "
FWCore/Framework/interface/Event.h
"
21
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
22
23
#include "
FWCore/Framework/interface/EventSetup.h
"
24
#include "
FWCore/Framework/interface/ESHandle.h
"
25
26
#include "
CondFormats/DataRecord/interface/L1RCTParametersRcd.h
"
27
#include "
CondFormats/L1TObjects/interface/L1RCTParameters.h
"
28
29
#include "
FWCore/MessageLogger/interface/MessageLogger.h
"
30
#include "
FWCore/MessageLogger/interface/MessageDrop.h
"
31
32
#include "
FWCore/PluginManager/interface/ModuleDef.h
"
33
#include "
FWCore/Framework/interface/MakerMacros.h
"
34
35
#include <iostream>
36
37
#include <iostream>
38
39
using
std::cout
;
40
using
std::endl;
41
//
42
// class declaration
43
//
44
45
class
L1RCTParametersTester
:
public
edm::one::EDAnalyzer
<> {
46
public
:
47
explicit
L1RCTParametersTester
(
const
edm::ParameterSet
&) :
token_
(
esConsumes
()) {}
48
void
analyze
(
const
edm::Event
&,
const
edm::EventSetup
&)
override
;
49
50
private
:
51
edm::ESGetToken<L1RCTParameters, L1RCTParametersRcd>
token_
;
52
};
53
54
void
L1RCTParametersTester::analyze
(
const
edm::Event
&
iEvent
,
const
edm::EventSetup
& evSetup) {
55
evSetup.
getData
(
token_
).print(
std::cout
);
56
}
57
58
DEFINE_FWK_MODULE
(
L1RCTParametersTester
);
edm::EventSetup::getData
T const & getData(const ESGetToken< T, R > &iToken) const noexcept(false)
Definition:
EventSetup.h:119
MessageLogger.h
Event.h
EventSetup.h
ParameterSet.h
edm::EDConsumerBase::esConsumes
auto esConsumes()
Definition:
EDConsumerBase.h:208
MessageDrop.h
edm::ESGetToken< L1RCTParameters, L1RCTParametersRcd >
iEvent
int iEvent
Definition:
GenABIO.cc:224
ESHandle.h
DEFINE_FWK_MODULE
#define DEFINE_FWK_MODULE(type)
Definition:
MakerMacros.h:16
edm::EventSetup
Definition:
EventSetup.h:56
L1RCTParametersTester::token_
edm::ESGetToken< L1RCTParameters, L1RCTParametersRcd > token_
Definition:
L1RCTParametersTester.cc:51
EDAnalyzer.h
L1RCTParameters.h
L1RCTParametersTester
Definition:
L1RCTParametersTester.cc:45
L1RCTParametersTester::L1RCTParametersTester
L1RCTParametersTester(const edm::ParameterSet &)
Definition:
L1RCTParametersTester.cc:47
L1RCTParametersTester::analyze
void analyze(const edm::Event &, const edm::EventSetup &) override
Definition:
L1RCTParametersTester.cc:54
edm::ParameterSet
Definition:
ParameterSet.h:47
gather_cfg.cout
cout
Definition:
gather_cfg.py:144
edm::Event
Definition:
Event.h:73
ModuleDef.h
MakerMacros.h
edm::one::EDAnalyzer
Definition:
EDAnalyzer.h:30
L1RCTParametersRcd.h
Generated for CMSSW Reference Manual by
1.8.14