Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
DQMOffline
PFTau
plugins
PFCandidateBenchmarkAnalyzer.cc
Go to the documentation of this file.
1
#include "
DQMOffline/PFTau/plugins/PFCandidateBenchmarkAnalyzer.h
"
2
3
#include "
FWCore/Framework/interface/Event.h
"
4
#include "
DataFormats/Common/interface/Handle.h
"
5
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
6
#include "
FWCore/Utilities/interface/InputTag.h
"
7
8
#include "
DataFormats/ParticleFlowCandidate/interface/PFCandidateFwd.h
"
9
#include "
DataFormats/ParticleFlowCandidate/interface/PFCandidate.h
"
10
11
#include "
DQMServices/Core/interface/DQMStore.h
"
12
#include "
FWCore/ServiceRegistry/interface/Service.h
"
13
14
// #include "DQMServices/Core/interface/MonitorElement.h"
15
// #include <TH1F.h>
16
17
using namespace
reco
;
18
using namespace
edm;
19
using namespace
std;
20
21
22
23
PFCandidateBenchmarkAnalyzer::PFCandidateBenchmarkAnalyzer
(
const
edm::ParameterSet
& parameterSet) :
24
BenchmarkAnalyzer
(parameterSet),
25
PFCandidateBenchmark
( (
Benchmark
::
Mode
) parameterSet.getParameter<int>(
"mode"
) )
26
{
27
setRange
( parameterSet.
getParameter
<
double
>(
"ptMin"
),
28
parameterSet.
getParameter
<
double
>(
"ptMax"
),
29
parameterSet.
getParameter
<
double
>(
"etaMin"
),
30
parameterSet.
getParameter
<
double
>(
"etaMax"
),
31
parameterSet.
getParameter
<
double
>(
"phiMin"
),
32
parameterSet.
getParameter
<
double
>(
"phiMax"
) );
33
34
}
35
36
37
void
38
PFCandidateBenchmarkAnalyzer::beginJob
()
39
{
40
BenchmarkAnalyzer::beginJob
();
41
setup
();
42
}
43
44
45
void
46
PFCandidateBenchmarkAnalyzer::analyze
(
const
edm::Event
&
iEvent
,
47
const
edm::EventSetup
& iSetup) {
48
49
50
51
Handle<PFCandidateCollection>
collection
;
52
iEvent.
getByLabel
(
inputLabel_
, collection);
53
54
fill
( *collection );
55
}
56
57
58
void
PFCandidateBenchmarkAnalyzer::endJob
() {
59
}
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
PFCandidateBenchmark::fill
void fill(const reco::PFCandidateCollection &pfCands)
Definition:
PFCandidateBenchmark.cc:50
BenchmarkAnalyzer::beginJob
virtual void beginJob()=0
Definition:
BenchmarkAnalyzer.cc:27
Event.h
runEdmFileComparison.collection
dictionary collection
Definition:
runEdmFileComparison.py:222
Benchmark
abstract base class
Definition:
Benchmark.h:20
PFCandidateBenchmarkAnalyzer::endJob
void endJob()
Definition:
PFCandidateBenchmarkAnalyzer.cc:58
PFCandidateBenchmarkAnalyzer.h
Handle.h
edm::Handle< PFCandidateCollection >
dt_dqm_sourceclient_common_cff.reco
tuple reco
Definition:
dt_dqm_sourceclient_common_cff.py:105
BenchmarkAnalyzer::inputLabel_
edm::InputTag inputLabel_
input collection
Definition:
BenchmarkAnalyzer.h:27
ParameterSet.h
iEvent
int iEvent
Definition:
GenABIO.cc:243
PFCandidate.h
DQMStore.h
PFCandidateBenchmarkAnalyzer::PFCandidateBenchmarkAnalyzer
PFCandidateBenchmarkAnalyzer(const edm::ParameterSet ¶meterSet)
Definition:
PFCandidateBenchmarkAnalyzer.cc:23
Benchmark::Mode
Mode
Definition:
Benchmark.h:33
Service.h
edm::EventSetup
Definition:
EventSetup.h:44
PFCandidateBenchmarkAnalyzer::beginJob
void beginJob()
Definition:
PFCandidateBenchmarkAnalyzer.cc:38
edm::Event::getByLabel
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
Definition:
Event.h:356
PFCandidateBenchmark
Definition:
PFCandidateBenchmark.h:11
Benchmark::setRange
void setRange(float ptMin, float ptMax, float etaMin, float etaMax, float phiMin, float phiMax)
Definition:
Benchmark.h:51
PFCandidateBenchmarkAnalyzer::analyze
void analyze(const edm::Event &, const edm::EventSetup &)
Definition:
PFCandidateBenchmarkAnalyzer.cc:46
InputTag.h
BenchmarkAnalyzer
abtract base class for benchmark analyzers
Definition:
BenchmarkAnalyzer.h:12
edm::ParameterSet
Definition:
ParameterSet.h:35
PFCandidateBenchmark::setup
void setup()
book histograms
Definition:
PFCandidateBenchmark.cc:21
edm::Event
Definition:
Event.h:50
PFCandidateFwd.h
Generated for CMSSW Reference Manual by
1.8.5