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
public
:
12
CandidateBenchmark
(
Mode
mode
);
13
~CandidateBenchmark
()
override
;
14
16
void
setup
(
DQMStore::IBooker
&
b
);
17
void
setup
(
DQMStore::IBooker
&
b
,
const
edm::ParameterSet
&
parameterSet
);
18
19
template
<
class
C>
20
void
fill
(
const
C
&
candidates
);
21
23
void
fillOne
(
const
reco::Candidate
&candidate);
24
25
protected
:
26
TH1F *
pt_
;
27
TH1F *
eta_
;
28
TH1F *
phi_
;
29
TH1F *
charge_
;
31
TH1F *
pdgId_
;
32
33
bool
histogramBooked_
;
34
};
35
36
template
<
class
C>
37
void
CandidateBenchmark::fill
(
const
C
&candCollection) {
38
for
(
unsigned
int
i
= 0;
i
< candCollection.size();
i
++) {
39
const
reco::Candidate
&
cand
= candCollection[
i
];
40
fillOne
(
cand
);
41
}
42
}
43
44
#endif
Benchmark
abstract base class
Definition:
Benchmark.h:19
mps_fire.i
i
Definition:
mps_fire.py:428
CandidateBenchmark::fill
void fill(const C &candidates)
Definition:
CandidateBenchmark.h:37
CandidateBenchmark::CandidateBenchmark
CandidateBenchmark(Mode mode)
Definition:
CandidateBenchmark.cc:12
ALCARECOPromptCalibProdSiPixelAli0T_cff.mode
mode
Definition:
ALCARECOPromptCalibProdSiPixelAli0T_cff.py:96
CandidateBenchmark
To plot Candidate quantities.
Definition:
CandidateBenchmark.h:10
CandidateBenchmark::~CandidateBenchmark
~CandidateBenchmark() override
Definition:
CandidateBenchmark.cc:22
CandidateBenchmark::setup
void setup(DQMStore::IBooker &b)
book histograms
Definition:
CandidateBenchmark.cc:24
CandidateBenchmark::phi_
TH1F * phi_
Definition:
CandidateBenchmark.h:28
CandidateFwd.h
CandidateBenchmark::histogramBooked_
bool histogramBooked_
Definition:
CandidateBenchmark.h:33
b
double b
Definition:
hdecay.h:118
Benchmark.h
CandidateBenchmark::pt_
TH1F * pt_
Definition:
CandidateBenchmark.h:26
edm::ParameterSet
Definition:
ParameterSet.h:47
Benchmark::Mode
Mode
Definition:
Benchmark.h:32
cand
Definition:
decayParser.h:32
CandidateBenchmark::fillOne
void fillOne(const reco::Candidate &candidate)
fill histograms with a given particle
Definition:
CandidateBenchmark.cc:90
reco::Candidate
Definition:
Candidate.h:27
CandidateBenchmark::eta_
TH1F * eta_
Definition:
CandidateBenchmark.h:27
gen::C
C
Definition:
PomwigHadronizer.cc:78
HLT_FULL_cff.candidates
candidates
Definition:
HLT_FULL_cff.py:54985
edm::parameterSet
ParameterSet const & parameterSet(Provenance const &provenance, ProcessHistory const &history)
Definition:
Provenance.cc:11
CandidateBenchmark::charge_
TH1F * charge_
Definition:
CandidateBenchmark.h:29
CandidateBenchmark::pdgId_
TH1F * pdgId_
COLIN add this histo.
Definition:
CandidateBenchmark.h:31
dqm::implementation::IBooker
Definition:
DQMStore.h:43
ParameterSet.h
Generated for CMSSW Reference Manual by
1.8.16