L1TriggerConfig
Utilities
src
L1TMuonEndCapParamsViewer.cc
Go to the documentation of this file.
1
#include <iomanip>
2
#include <iostream>
3
4
#include "
FWCore/Framework/interface/one/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::one::EDAnalyzer
<> {
24
public
:
25
void
analyze
(
const
edm::Event
&,
const
edm::EventSetup
&)
override
;
26
27
explicit
L1TMuonEndCapParamsViewer
(
const
edm::ParameterSet
&) : token_{
esConsumes
()} {}
28
29
private
:
30
edm::ESGetToken<L1TMuonEndCapParams, L1TMuonEndCapParamsRcd>
token_
;
31
};
32
33
void
L1TMuonEndCapParamsViewer::analyze
(
const
edm::Event
&
iEvent
,
const
edm::EventSetup
& evSetup) {
34
L1TMuonEndCapParams
const
& ptr1 = evSetup.
getData
(token_);
35
36
cout
<<
"L1TMuonEndCapParams: "
<< endl;
37
cout
<<
" PtAssignVersion_ = "
<< ptr1.
PtAssignVersion_
<< endl;
38
cout
<<
" firmwareVersion_ = "
<< ptr1.
firmwareVersion_
<< endl;
39
cout
<<
" PhiMatchWindowSt1_ = "
<< ptr1.
PhiMatchWindowSt1_
<< endl;
40
cout
<<
" PhiMatchWindowSt2_ = "
<< ptr1.
PhiMatchWindowSt2_
<< endl;
41
cout
<<
" PhiMatchWindowSt3_ = "
<< ptr1.
PhiMatchWindowSt3_
<< endl;
42
cout
<<
" PhiMatchWindowSt4_ = "
<< ptr1.
PhiMatchWindowSt4_
<< endl;
43
51
}
52
53
#include "
FWCore/PluginManager/interface/ModuleDef.h
"
54
#include "
FWCore/Framework/interface/MakerMacros.h
"
55
#include "
FWCore/Framework/interface/ModuleFactory.h
"
56
57
DEFINE_FWK_MODULE
(
L1TMuonEndCapParamsViewer
);
Session.h
deDxTools::esConsumes
ESGetTokenH3DDVariant esConsumes(std::string const &Record, edm::ConsumesCollector &)
Definition:
DeDxTools.cc:283
L1TMuonEndCapParamsRcd.h
L1TMuonEndCapParamsViewer::L1TMuonEndCapParamsViewer
L1TMuonEndCapParamsViewer(const edm::ParameterSet &)
Definition:
L1TMuonEndCapParamsViewer.cc:27
L1TMuonEndCapParamsViewer::token_
edm::ESGetToken< L1TMuonEndCapParams, L1TMuonEndCapParamsRcd > token_
Definition:
L1TMuonEndCapParamsViewer.cc:30
Event.h
EventSetup.h
L1TMuonEndCapParamsViewer
Definition:
L1TMuonEndCapParamsViewer.cc:23
L1TMuonEndCapParams
Definition:
L1TMuonEndCapParams.h:15
std
Definition:
JetResolutionObject.h:76
L1TMuonEndCapParams::firmwareVersion_
unsigned firmwareVersion_
Definition:
L1TMuonEndCapParams.h:28
analyze
example_stream void analyze(const edm::Event &, const edm::EventSetup &) override
ParameterSet.h
edm::ESGetToken< L1TMuonEndCapParams, L1TMuonEndCapParamsRcd >
iEvent
int iEvent
Definition:
GenABIO.cc:224
PoolDBOutputService.h
ESHandle.h
L1TMuonEndCapParams::PhiMatchWindowSt3_
int PhiMatchWindowSt3_
Definition:
L1TMuonEndCapParams.h:29
Service.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
L1TMuonEndCapParams::PhiMatchWindowSt1_
int PhiMatchWindowSt1_
Definition:
L1TMuonEndCapParams.h:29
L1TMuonEndCapParams::PhiMatchWindowSt4_
int PhiMatchWindowSt4_
Definition:
L1TMuonEndCapParams.h:29
L1TMuonEndCapParamsViewer::analyze
void analyze(const edm::Event &, const edm::EventSetup &) override
Definition:
L1TMuonEndCapParamsViewer.cc:33
L1TMuonEndCapParams::PhiMatchWindowSt2_
int PhiMatchWindowSt2_
Definition:
L1TMuonEndCapParams.h:29
EDAnalyzer.h
edm::ParameterSet
Definition:
ParameterSet.h:47
ModuleFactory.h
gather_cfg.cout
cout
Definition:
gather_cfg.py:144
L1TMuonEndCapParams.h
edm::Event
Definition:
Event.h:73
ModuleDef.h
MakerMacros.h
edm::one::EDAnalyzer
Definition:
EDAnalyzer.h:30
L1TMuonEndCapParams::PtAssignVersion_
unsigned PtAssignVersion_
Definition:
L1TMuonEndCapParams.h:28
Generated for CMSSW Reference Manual by
1.8.14