Main Page
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
o
p
q
r
s
t
u
v
w
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Properties
_
a
d
e
f
l
m
o
p
s
t
u
v
Related Functions
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Package Documentation
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
DQMOffline
PFTau
plugins
METBenchmarkAnalyzer.cc
Go to the documentation of this file.
1
#include "
DQMOffline/PFTau/plugins/METBenchmarkAnalyzer.h
"
2
3
#include "
DataFormats/Common/interface/Handle.h
"
4
#include "
FWCore/Framework/interface/Event.h
"
5
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
6
#include "
FWCore/Utilities/interface/InputTag.h
"
7
8
#include "
DataFormats/Candidate/interface/CandidateFwd.h
"
9
#include "
DataFormats/METReco/interface/MET.h
"
10
11
#include "
DQMServices/Core/interface/DQMStore.h
"
12
13
using namespace
reco
;
14
using namespace
edm
;
15
using namespace
std
;
16
17
METBenchmarkAnalyzer::METBenchmarkAnalyzer
(
const
edm::ParameterSet
&
parameterSet
)
18
:
BenchmarkAnalyzer
(
parameterSet
),
METBenchmark
((
Benchmark
::
Mode
)
parameterSet
.getParameter<
int
>(
"mode"
)) {
19
setRange
(
parameterSet
.
getParameter
<
double
>(
"ptMin"
),
20
parameterSet
.
getParameter
<
double
>(
"ptMax"
),
21
-0.1,
22
0.1,
// range in eta for MET.
23
parameterSet
.
getParameter
<
double
>(
"phiMin"
),
24
parameterSet
.
getParameter
<
double
>(
"phiMax"
));
25
26
myColl_
= consumes<View<MET>>(
inputLabel_
);
27
}
28
29
void
METBenchmarkAnalyzer::bookHistograms
(
DQMStore::IBooker
&ibooker,
30
edm::Run
const
&iRun,
31
edm::EventSetup
const
&iSetup) {
32
BenchmarkAnalyzer::bookHistograms
(ibooker, iRun, iSetup);
33
setup
(ibooker);
34
}
35
36
void
METBenchmarkAnalyzer::analyze
(
const
edm::Event
&
iEvent
,
const
edm::EventSetup
&iSetup) {
37
Handle<View<MET>
>
collection
;
38
iEvent
.getByToken(
myColl_
,
collection
);
39
40
fill
(*
collection
);
41
}
Handle.h
Benchmark
abstract base class
Definition:
Benchmark.h:19
METBenchmarkAnalyzer::myColl_
edm::EDGetTokenT< edm::View< reco::MET > > myColl_
Definition:
METBenchmarkAnalyzer.h:21
edm::Run
Definition:
Run.h:45
METBenchmark
To plot MET quantities.
Definition:
METBenchmark.h:11
edm
HLT enums.
Definition:
AlignableModifier.h:19
METBenchmark::fill
void fill(const C &candidates)
fill a collection
Definition:
METBenchmark.h:39
BenchmarkAnalyzer::bookHistograms
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
Definition:
BenchmarkAnalyzer.cc:28
DQMStore.h
reco
fixed size matrix
Definition:
AlignmentAlgorithmBase.h:45
BenchmarkAnalyzer::inputLabel_
edm::InputTag inputLabel_
input collection
Definition:
BenchmarkAnalyzer.h:30
Benchmark::setRange
void setRange(float ptMin, float ptMax, float etaMin, float etaMax, float phiMin, float phiMax)
Definition:
Benchmark.h:41
edm::Handle
Definition:
AssociativeIterator.h:50
METBenchmarkAnalyzer::analyze
void analyze(const edm::Event &, const edm::EventSetup &) override
Definition:
METBenchmarkAnalyzer.cc:36
edm::parameterSet
ParameterSet const & parameterSet(StableProvenance const &provenance, ProcessHistory const &history)
Definition:
Provenance.cc:11
CandidateFwd.h
BenchmarkAnalyzer
abtract base class for benchmark analyzers
Definition:
BenchmarkAnalyzer.h:14
edm::ParameterSet
Definition:
ParameterSet.h:47
Event.h
Benchmark::Mode
Mode
Definition:
Benchmark.h:32
createfilelist.int
int
Definition:
createfilelist.py:10
iEvent
int iEvent
Definition:
GenABIO.cc:224
universalConfigTemplate.collection
collection
Definition:
universalConfigTemplate.py:81
edm::EventSetup
Definition:
EventSetup.h:58
METBenchmarkAnalyzer::bookHistograms
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
Definition:
METBenchmarkAnalyzer.cc:29
InputTag.h
MET.h
std
Definition:
JetResolutionObject.h:76
METBenchmarkAnalyzer.h
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
Definition:
ParameterSet.h:303
dqm::implementation::IBooker
Definition:
DQMStore.h:43
ParameterSet.h
edm::Event
Definition:
Event.h:73
METBenchmark::setup
void setup(DQMStore::IBooker &b)
book histograms
Definition:
METBenchmark.cc:16
METBenchmarkAnalyzer::METBenchmarkAnalyzer
METBenchmarkAnalyzer(const edm::ParameterSet ¶meterSet)
Definition:
METBenchmarkAnalyzer.cc:17
Generated for CMSSW Reference Manual by
1.8.16