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
PFJetDQMAnalyzer.cc
Go to the documentation of this file.
1
#include "
DQMOffline/PFTau/plugins/PFJetDQMAnalyzer.h
"
2
3
#include "
FWCore/MessageLogger/interface/MessageLogger.h
"
4
5
#include "
DataFormats/Common/interface/Handle.h
"
6
#include "
FWCore/Framework/interface/Event.h
"
7
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
8
#include "
FWCore/Utilities/interface/InputTag.h
"
9
10
#include "
DataFormats/JetReco/interface/CaloJetCollection.h
"
11
#include "
DataFormats/JetReco/interface/JetCollection.h
"
12
#include "
DataFormats/JetReco/interface/PFJet.h
"
13
#include "
DataFormats/ParticleFlowCandidate/interface/PFCandidate.h
"
14
#include "
DataFormats/ParticleFlowCandidate/interface/PFCandidateFwd.h
"
15
16
#include "
DQMServices/Core/interface/DQMStore.h
"
17
#include "
FWCore/ServiceRegistry/interface/Service.h
"
18
19
//
20
// -- Constructor
21
//
22
PFJetDQMAnalyzer::PFJetDQMAnalyzer
(
const
edm::ParameterSet
&
parameterSet
)
23
24
{
25
pSet_
=
parameterSet
;
26
inputLabel_
=
pSet_
.
getParameter
<
edm::InputTag
>(
"InputCollection"
);
27
matchLabel_
=
pSet_
.
getParameter
<
edm::InputTag
>(
"MatchCollection"
);
28
benchmarkLabel_
=
pSet_
.
getParameter
<
std::string
>(
"BenchmarkLabel"
);
29
30
pfJetMonitor_
.
setParameters
(
parameterSet
);
// set parameters for booking histograms and validating jet
31
32
myJet_
= consumes<edm::View<reco::Jet>>(
inputLabel_
);
33
myMatchedJet_
= consumes<edm::View<reco::Jet>>(
matchLabel_
);
34
35
std::string
folder
=
benchmarkLabel_
;
36
37
subsystemname_
=
"ParticleFlow"
;
38
eventInfoFolder_
=
subsystemname_
+
"/"
+
folder
;
39
40
nBadEvents_
= 0;
41
}
42
43
//
44
// -- BookHistograms
45
//
46
void
PFJetDQMAnalyzer::bookHistograms
(
DQMStore::IBooker
&ibooker,
47
edm::Run
const
&
/* iRun */
,
48
edm::EventSetup
const
&
/* iSetup */
) {
49
ibooker.
setCurrentFolder
(
eventInfoFolder_
);
50
51
edm::LogInfo
(
"PFJetDQMAnalyzer"
) <<
" PFJetDQMAnalyzer::bookHistograms "
52
<<
"Histogram Folder path set to "
<<
eventInfoFolder_
;
53
54
pfJetMonitor_
.
setup
(ibooker,
pSet_
);
55
}
56
57
//
58
// -- Analyze
59
//
60
void
PFJetDQMAnalyzer::analyze
(
edm::Event
const
&
iEvent
,
edm::EventSetup
const
&iSetup) {
61
edm::Handle<edm::View<reco::Jet>
>
jetCollection
;
62
iEvent
.getByToken(
myJet_
,
jetCollection
);
63
64
edm::Handle<edm::View<reco::Jet>
> matchedJetCollection;
65
iEvent
.getByToken(
myMatchedJet_
, matchedJetCollection);
66
67
float
maxRes = 0.0;
68
float
minRes = 99.99;
69
float
jetpT = 0.0;
70
if
(
jetCollection
.isValid() && matchedJetCollection.
isValid
()) {
71
pfJetMonitor_
.
fill
(*
jetCollection
,
72
*matchedJetCollection,
73
minRes,
74
maxRes,
75
jetpT,
76
pSet_
);
// match collections and fill pt eta phi and charge histos for
77
// candidate jet, fill delta_x_VS_y histos for matched couples,
78
// book and fill delta_frac_VS_frac histos for matched couples
79
}
80
}
81
82
#include "
FWCore/Framework/interface/MakerMacros.h
"
83
DEFINE_FWK_MODULE
(
PFJetDQMAnalyzer
);
PFJetDQMAnalyzer::nBadEvents_
int nBadEvents_
Definition:
PFJetDQMAnalyzer.h:36
CaloJetCollection.h
PFJetDQMAnalyzer.h
Handle.h
PFJetDQMAnalyzer::myMatchedJet_
edm::EDGetTokenT< edm::View< reco::Jet > > myMatchedJet_
Definition:
PFJetDQMAnalyzer.h:25
MessageLogger.h
PFCandidate.h
edm::Run
Definition:
Run.h:45
printsummarytable.folder
folder
Definition:
printsummarytable.py:7
PFJet.h
dqm::implementation::NavigatorBase::setCurrentFolder
virtual void setCurrentFolder(std::string const &fullpath)
Definition:
DQMStore.cc:32
DQMStore.h
PFJetMonitor::setup
void setup(DQMStore::IBooker &b)
book histograms
Definition:
PFJetMonitor.cc:119
edm::LogInfo
Log< level::Info, false > LogInfo
Definition:
MessageLogger.h:125
edm::Handle
Definition:
AssociativeIterator.h:50
PFJetDQMAnalyzer::benchmarkLabel_
std::string benchmarkLabel_
Definition:
PFJetDQMAnalyzer.h:28
MakerMacros.h
PFJetDQMAnalyzer::inputLabel_
edm::InputTag inputLabel_
Definition:
PFJetDQMAnalyzer.h:27
DEFINE_FWK_MODULE
#define DEFINE_FWK_MODULE(type)
Definition:
MakerMacros.h:16
Service.h
PFJetMonitor::fill
void fill(const T &candidateCollection, const C &matchedCandCollection, float &minVal, float &maxVal, float &jetpT, const edm::ParameterSet ¶meterSet)
fill histograms with all particle
Definition:
PFJetMonitor.h:65
PFJetMonitor::setParameters
void setParameters(const edm::ParameterSet ¶meterSet)
set the parameters accessing them from ParameterSet
Definition:
PFJetMonitor.cc:39
PFJetDQMAnalyzer::PFJetDQMAnalyzer
PFJetDQMAnalyzer(const edm::ParameterSet ¶meterSet)
Definition:
PFJetDQMAnalyzer.cc:22
JetCollection.h
jetfilter_cfi.jetCollection
jetCollection
Definition:
jetfilter_cfi.py:4
PFJetDQMAnalyzer::subsystemname_
std::string subsystemname_
Definition:
PFJetDQMAnalyzer.h:34
PFJetDQMAnalyzer::matchLabel_
edm::InputTag matchLabel_
Definition:
PFJetDQMAnalyzer.h:26
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
edm::ParameterSet
Definition:
ParameterSet.h:47
Event.h
PFJetDQMAnalyzer
Definition:
PFJetDQMAnalyzer.h:15
iEvent
int iEvent
Definition:
GenABIO.cc:224
edm::EventSetup
Definition:
EventSetup.h:57
PFJetDQMAnalyzer::analyze
void analyze(edm::Event const &, edm::EventSetup const &) override
Definition:
PFJetDQMAnalyzer.cc:60
InputTag.h
PFJetDQMAnalyzer::pSet_
edm::ParameterSet pSet_
Definition:
PFJetDQMAnalyzer.h:32
edm::parameterSet
ParameterSet const & parameterSet(Provenance const &provenance, ProcessHistory const &history)
Definition:
Provenance.cc:11
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
Definition:
ParameterSet.h:303
dqm::implementation::IBooker
Definition:
DQMStore.h:43
ParameterSet.h
edm::HandleBase::isValid
bool isValid() const
Definition:
HandleBase.h:70
edm::Event
Definition:
Event.h:73
PFJetDQMAnalyzer::pfJetMonitor_
PFJetMonitor pfJetMonitor_
Definition:
PFJetDQMAnalyzer.h:30
PFJetDQMAnalyzer::eventInfoFolder_
std::string eventInfoFolder_
Definition:
PFJetDQMAnalyzer.h:33
PFJetDQMAnalyzer::bookHistograms
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
Definition:
PFJetDQMAnalyzer.cc:46
edm::InputTag
Definition:
InputTag.h:15
PFJetDQMAnalyzer::myJet_
edm::EDGetTokenT< edm::View< reco::Jet > > myJet_
Definition:
PFJetDQMAnalyzer.h:24
PFCandidateFwd.h
Generated for CMSSW Reference Manual by
1.8.16