Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
DQMOffline
PFTau
interface
METBenchmark.h
Go to the documentation of this file.
1
#ifndef RecoParticleFlow_Benchmark_METBenchmark_h
2
#define RecoParticleFlow_Benchmark_METBenchmark_h
3
4
#include "
DQMOffline/PFTau/interface/Benchmark.h
"
5
6
#include "
DataFormats/METReco/interface/METFwd.h
"
7
9
class
METBenchmark
:
public
Benchmark
{
10
11
public
:
12
13
METBenchmark
(
Mode
mode
) :
Benchmark
(mode) {}
14
virtual
~METBenchmark
();
15
17
void
setup
();
18
20
template
<
class
C>
21
void
fill
(
const
C
& candidates);
22
24
void
fillOne
(
const
reco::MET
& candidate);
25
26
protected
:
27
28
TH1F*
pt_
;
29
TH1F*
pt2_
;
30
TH1F*
px_
;
31
TH1F*
py_
;
32
TH1F*
phi_
;
33
TH1F*
sumEt_
;
34
TH1F*
sumEt2_
;
35
TH1F*
etOverSumEt_
;
36
TH2F*
mex_VS_sumEt_
;
37
38
};
39
40
template
<
class
C>
41
void
METBenchmark::fill
(
const
C
& candCollection) {
42
43
for
(
unsigned
int
i
= 0;
i
< candCollection.size(); ++
i
) {
44
const
reco::MET
& cand = candCollection[
i
];
45
fillOne
(cand);
46
}
47
}
48
49
#endif
METBenchmark::sumEt_
TH1F * sumEt_
Definition:
METBenchmark.h:33
METBenchmark::etOverSumEt_
TH1F * etOverSumEt_
Definition:
METBenchmark.h:35
i
int i
Definition:
DBlmapReader.cc:9
METBenchmark::pt_
TH1F * pt_
Definition:
METBenchmark.h:28
Benchmark
abstract base class
Definition:
Benchmark.h:21
METBenchmark::setup
void setup()
book histograms
Definition:
METBenchmark.cc:22
METBenchmark::~METBenchmark
virtual ~METBenchmark()
Definition:
METBenchmark.cc:19
METBenchmark::fill
void fill(const C &candidates)
fill a collection
Definition:
METBenchmark.h:41
alignBH_cfg.mode
list mode
Definition:
alignBH_cfg.py:7
funct::C
C
Definition:
Factorize.h:141
METBenchmark::pt2_
TH1F * pt2_
Definition:
METBenchmark.h:29
METFwd.h
METBenchmark
To plot MET quantities.
Definition:
METBenchmark.h:9
METBenchmark::METBenchmark
METBenchmark(Mode mode)
Definition:
METBenchmark.h:13
METBenchmark::px_
TH1F * px_
Definition:
METBenchmark.h:30
Benchmark.h
reco::MET
Definition:
MET.h:39
Benchmark::Mode
Mode
Definition:
Benchmark.h:34
METBenchmark::py_
TH1F * py_
Definition:
METBenchmark.h:31
METBenchmark::fillOne
void fillOne(const reco::MET &candidate)
fill histograms with a given particle
Definition:
METBenchmark.cc:63
METBenchmark::sumEt2_
TH1F * sumEt2_
Definition:
METBenchmark.h:34
METBenchmark::mex_VS_sumEt_
TH2F * mex_VS_sumEt_
Definition:
METBenchmark.h:36
METBenchmark::phi_
TH1F * phi_
Definition:
METBenchmark.h:32
Generated for CMSSW Reference Manual by
1.8.5