Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
DQMOffline
PFTau
interface
CandidateBenchmark.h
Go to the documentation of this file.
1
#ifndef RecoParticleFlow_Benchmark_CandidateBenchmark_h
2
#define RecoParticleFlow_Benchmark_CandidateBenchmark_h
3
4
#include "
DQMOffline/PFTau/interface/Benchmark.h
"
5
6
#include "
DataFormats/Candidate/interface/CandidateFwd.h
"
7
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
8
10
class
CandidateBenchmark
:
public
Benchmark
{
11
12
public
:
13
14
15
CandidateBenchmark
(
Mode
mode
);
16
virtual
~CandidateBenchmark
();
17
19
void
setup
();
21
void
setup
(
const
edm::ParameterSet
& parameterSet);
22
23
template
<
class
C>
24
void
fill
(
const
C
& candidates);
25
27
void
fillOne
(
const
reco::Candidate
& candidate);
28
29
protected
:
30
31
32
TH1F*
pt_
;
33
TH1F*
eta_
;
34
TH1F*
phi_
;
35
TH1F*
charge_
;
37
TH1F*
pdgId_
;
38
39
bool
histogramBooked_
;
40
};
41
42
template
<
class
C>
43
void
CandidateBenchmark::fill
(
const
C
& candCollection) {
44
45
for
(
unsigned
int
i
= 0;
i
< candCollection.size();
i
++) {
46
const
reco::Candidate
& cand = candCollection[
i
];
47
fillOne
(cand);
48
}
49
}
50
51
52
#endif
i
int i
Definition:
DBlmapReader.cc:9
CandidateBenchmark::charge_
TH1F * charge_
Definition:
CandidateBenchmark.h:35
CandidateBenchmark
To plot Candidate quantities.
Definition:
CandidateBenchmark.h:10
CandidateBenchmark::fillOne
void fillOne(const reco::Candidate &candidate)
fill histograms with a given particle
Definition:
CandidateBenchmark.cc:88
CandidateBenchmark::setup
void setup()
book histograms
Definition:
CandidateBenchmark.cc:29
reco::Candidate
Definition:
Candidate.h:29
Benchmark
abstract base class
Definition:
Benchmark.h:20
CandidateBenchmark::eta_
TH1F * eta_
Definition:
CandidateBenchmark.h:33
alignBH_cfg.mode
list mode
Definition:
alignBH_cfg.py:7
CandidateBenchmark::fill
void fill(const C &candidates)
Definition:
CandidateBenchmark.h:43
CandidateBenchmark::CandidateBenchmark
CandidateBenchmark(Mode mode)
Definition:
CandidateBenchmark.cc:15
funct::C
C
Definition:
Factorize.h:141
CandidateBenchmark::pdgId_
TH1F * pdgId_
COLIN add this histo.
Definition:
CandidateBenchmark.h:37
CandidateBenchmark::~CandidateBenchmark
virtual ~CandidateBenchmark()
Definition:
CandidateBenchmark.cc:26
ParameterSet.h
Benchmark.h
Benchmark::Mode
Mode
Definition:
Benchmark.h:33
CandidateBenchmark::phi_
TH1F * phi_
Definition:
CandidateBenchmark.h:34
CandidateBenchmark::pt_
TH1F * pt_
Definition:
CandidateBenchmark.h:32
CandidateBenchmark::histogramBooked_
bool histogramBooked_
Definition:
CandidateBenchmark.h:39
edm::ParameterSet
Definition:
ParameterSet.h:35
CandidateFwd.h
Generated for CMSSW Reference Manual by
1.8.5