L1TriggerConfig
Utilities
src
L1TMuonEndCapParamsViewer.cc
Go to the documentation of this file.
1
#include <iomanip>
2
#include <iostream>
3
4
#include "
FWCore/Framework/interface/EDAnalyzer.h
"
5
6
#include "
FWCore/Framework/interface/Event.h
"
7
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
8
9
#include "
FWCore/Framework/interface/EventSetup.h
"
10
#include "
FWCore/Framework/interface/ESHandle.h
"
11
13
#include "
CondFormats/DataRecord/interface/L1TMuonEndCapParamsRcd.h
"
14
//#include "CondFormats/DataRecord/interface/L1TMuonEndCapParamsRcd.h"
15
#include "
CondFormats/L1TObjects/interface/L1TMuonEndCapParams.h
"
16
#include "
FWCore/ServiceRegistry/interface/Service.h
"
17
#include "
CondCore/DBOutputService/interface/PoolDBOutputService.h
"
18
#include "
CondCore/CondDB/interface/Session.h
"
19
20
#include <iostream>
21
using namespace
std
;
22
23
class
L1TMuonEndCapParamsViewer
:
public
edm::EDAnalyzer
{
24
public
:
25
void
analyze
(
const
edm::Event
&,
const
edm::EventSetup
&)
override
;
26
27
explicit
L1TMuonEndCapParamsViewer
(
const
edm::ParameterSet
&) :
edm
::EDAnalyzer() {}
28
~L1TMuonEndCapParamsViewer
(
void
)
override
{}
29
};
30
31
void
L1TMuonEndCapParamsViewer::analyze
(
const
edm::Event
&
iEvent
,
const
edm::EventSetup
& evSetup) {
32
edm::ESHandle<L1TMuonEndCapParams>
handle1;
33
evSetup.
get
<
L1TMuonEndCapParamsRcd
>().
get
(handle1);
34
// evSetup.get<L1TMuonEndCapParamsRcd>().get( handle1 ) ;
35
std::shared_ptr<L1TMuonEndCapParams> ptr1(
new
L1TMuonEndCapParams
(*(handle1.
product
())));
36
37
cout
<<
"L1TMuonEndCapParams: "
<< endl;
38
cout
<<
" PtAssignVersion_ = "
<< ptr1->PtAssignVersion_ << endl;
39
cout
<<
" firmwareVersion_ = "
<< ptr1->firmwareVersion_ << endl;
40
cout
<<
" PhiMatchWindowSt1_ = "
<< ptr1->PhiMatchWindowSt1_ << endl;
41
cout
<<
" PhiMatchWindowSt2_ = "
<< ptr1->PhiMatchWindowSt2_ << endl;
42
cout
<<
" PhiMatchWindowSt3_ = "
<< ptr1->PhiMatchWindowSt3_ << endl;
43
cout
<<
" PhiMatchWindowSt4_ = "
<< ptr1->PhiMatchWindowSt4_ << endl;
44
52
}
53
54
#include "
FWCore/PluginManager/interface/ModuleDef.h
"
55
#include "
FWCore/Framework/interface/MakerMacros.h
"
56
#include "
FWCore/Framework/interface/ModuleFactory.h
"
57
58
DEFINE_FWK_MODULE
(
L1TMuonEndCapParamsViewer
);
edm::ESHandle::product
T const * product() const
Definition:
ESHandle.h:86
L1TMuonEndCapParamsViewer::L1TMuonEndCapParamsViewer
L1TMuonEndCapParamsViewer(const edm::ParameterSet &)
Definition:
L1TMuonEndCapParamsViewer.cc:27
ESHandle.h
edm
HLT enums.
Definition:
AlignableModifier.h:19
gather_cfg.cout
cout
Definition:
gather_cfg.py:144
L1TMuonEndCapParamsViewer::~L1TMuonEndCapParamsViewer
~L1TMuonEndCapParamsViewer(void) override
Definition:
L1TMuonEndCapParamsViewer.cc:28
L1TMuonEndCapParams.h
EDAnalyzer.h
edm::EDAnalyzer
Definition:
EDAnalyzer.h:28
MakerMacros.h
PoolDBOutputService.h
edm::EventSetup::get
T get() const
Definition:
EventSetup.h:87
DEFINE_FWK_MODULE
#define DEFINE_FWK_MODULE(type)
Definition:
MakerMacros.h:16
Service.h
edm::ESHandle< L1TMuonEndCapParams >
L1TMuonEndCapParamsViewer
Definition:
L1TMuonEndCapParamsViewer.cc:23
edm::ParameterSet
Definition:
ParameterSet.h:47
Event.h
L1TMuonEndCapParamsRcd
Definition:
L1TMuonEndCapParamsRcd.h:11
ModuleDef.h
iEvent
int iEvent
Definition:
GenABIO.cc:224
L1TMuonEndCapParamsViewer::analyze
void analyze(const edm::Event &, const edm::EventSetup &) override
Definition:
L1TMuonEndCapParamsViewer.cc:31
analyze
example_stream void analyze(const edm::Event &, const edm::EventSetup &) override
edm::EventSetup
Definition:
EventSetup.h:58
get
#define get
L1TMuonEndCapParams
Definition:
L1TMuonEndCapParams.h:15
L1TMuonEndCapParamsRcd.h
ModuleFactory.h
std
Definition:
JetResolutionObject.h:76
EventSetup.h
ParameterSet.h
edm::Event
Definition:
Event.h:73
Session.h
Generated for CMSSW Reference Manual by
1.8.16