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/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::EDAnalyzer
{
46
public
:
47
explicit
L1RCTParametersTester
(
const
edm::ParameterSet
&) {}
48
~L1RCTParametersTester
()
override
{}
49
void
analyze
(
const
edm::Event
&,
const
edm::EventSetup
&)
override
;
50
};
51
52
void
L1RCTParametersTester::analyze
(
const
edm::Event
&
iEvent
,
const
edm::EventSetup
& evSetup) {
53
edm::ESHandle<L1RCTParameters>
rctParam;
54
evSetup.
get
<
L1RCTParametersRcd
>().
get
(rctParam);
55
56
rctParam->
print
(
std::cout
);
57
}
58
59
DEFINE_FWK_MODULE
(
L1RCTParametersTester
);
MessageLogger.h
L1RCTParameters.h
L1RCTParametersTester::analyze
void analyze(const edm::Event &, const edm::EventSetup &) override
Definition:
L1RCTParametersTester.cc:52
ESHandle.h
L1RCTParameters::print
void print(std::ostream &s) const
Definition:
L1RCTParameters.cc:324
gather_cfg.cout
cout
Definition:
gather_cfg.py:144
L1RCTParametersRcd
Definition:
L1RCTParametersRcd.h:12
EDAnalyzer.h
edm::EDAnalyzer
Definition:
EDAnalyzer.h:29
MakerMacros.h
L1RCTParametersTester::~L1RCTParametersTester
~L1RCTParametersTester() override
Definition:
L1RCTParametersTester.cc:48
edm::EventSetup::get
T get() const
Definition:
EventSetup.h:73
DEFINE_FWK_MODULE
#define DEFINE_FWK_MODULE(type)
Definition:
MakerMacros.h:16
edm::ESHandle
Definition:
DTSurvey.h:22
MessageDrop.h
edm::ParameterSet
Definition:
ParameterSet.h:36
Event.h
ModuleDef.h
iEvent
int iEvent
Definition:
GenABIO.cc:224
edm::EventSetup
Definition:
EventSetup.h:57
L1RCTParametersTester::L1RCTParametersTester
L1RCTParametersTester(const edm::ParameterSet &)
Definition:
L1RCTParametersTester.cc:47
get
#define get
L1RCTParametersTester
Definition:
L1RCTParametersTester.cc:45
EventSetup.h
L1RCTParametersRcd.h
ParameterSet.h
edm::Event
Definition:
Event.h:73
Generated for CMSSW Reference Manual by
1.8.16