Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
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
// $Id: L1RCTParametersTester.cc,v 1.3 2009/05/06 18:16:26 efron Exp $
17
//
18
//
19
// user include files
20
#include "
FWCore/Framework/interface/EDAnalyzer.h
"
21
#include "
FWCore/Framework/interface/Event.h
"
22
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
23
24
#include "
FWCore/Framework/interface/EventSetup.h
"
25
#include "
FWCore/Framework/interface/ESHandle.h
"
26
27
#include "
CondFormats/DataRecord/interface/L1RCTParametersRcd.h
"
28
#include "
CondFormats/L1TObjects/interface/L1RCTParameters.h
"
29
30
#include "
FWCore/MessageLogger/interface/MessageLogger.h
"
31
#include "
FWCore/MessageLogger/interface/MessageDrop.h
"
32
33
#include "
FWCore/PluginManager/interface/ModuleDef.h
"
34
#include "
FWCore/Framework/interface/MakerMacros.h
"
35
36
37
38
using
std::cout
;
39
using
std::endl;
40
//
41
// class declaration
42
//
43
44
class
L1RCTParametersTester
:
public
edm::EDAnalyzer
{
45
public
:
46
explicit
L1RCTParametersTester
(
const
edm::ParameterSet
&) {}
47
virtual
~L1RCTParametersTester
() {}
48
virtual
void
analyze
(
const
edm::Event
&,
const
edm::EventSetup
&);
49
50
};
51
52
53
54
void
L1RCTParametersTester::analyze
(
const
edm::Event
&
iEvent
,
const
edm::EventSetup
& evSetup)
55
{
56
57
58
edm::ESHandle< L1RCTParameters >
rctParam;
59
evSetup.
get
<
L1RCTParametersRcd
>().
get
( rctParam) ;
60
61
62
rctParam->print(
std::cout
);
63
64
}
65
66
DEFINE_FWK_MODULE
(
L1RCTParametersTester
);
67
68
69
L1RCTParametersRcd
Definition:
L1RCTParametersRcd.h:12
MessageLogger.h
DEFINE_FWK_MODULE
#define DEFINE_FWK_MODULE(type)
Definition:
MakerMacros.h:17
Event.h
MakerMacros.h
EventSetup.h
ParameterSet.h
MessageDrop.h
iEvent
int iEvent
Definition:
GenABIO.cc:243
edm::ESHandle
Definition:
DTSurvey.h:22
L1RCTParametersTester::~L1RCTParametersTester
virtual ~L1RCTParametersTester()
Definition:
L1RCTParametersTester.cc:47
ESHandle.h
edm::EventSetup
Definition:
EventSetup.h:44
edm::EDAnalyzer
Definition:
EDAnalyzer.h:15
EDAnalyzer.h
edm::EventSetup::get
const T & get() const
Definition:
EventSetup.h:55
L1RCTParameters.h
L1RCTParametersTester
Definition:
L1RCTParametersTester.cc:44
L1RCTParametersTester::L1RCTParametersTester
L1RCTParametersTester(const edm::ParameterSet &)
Definition:
L1RCTParametersTester.cc:46
edm::ParameterSet
Definition:
ParameterSet.h:35
gather_cfg.cout
tuple cout
Definition:
gather_cfg.py:121
L1RCTParametersTester::analyze
virtual void analyze(const edm::Event &, const edm::EventSetup &)
Definition:
L1RCTParametersTester.cc:54
edm::Event
Definition:
Event.h:56
ModuleDef.h
L1RCTParametersRcd.h
Generated for CMSSW Reference Manual by
1.8.5