Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
DQMOffline
JetMET
interface
TcMETAnalyzer.h
Go to the documentation of this file.
1
#ifndef TcMETAnalyzer_H
2
#define TcMETAnalyzer_H
3
4
13
#include <memory>
14
#include <fstream>
15
#include "TMath.h"
16
#include "
FWCore/Framework/interface/Frameworkfwd.h
"
17
#include "
DQMOffline/JetMET/interface/TcMETAnalyzerBase.h
"
18
#include "
FWCore/Framework/interface/Event.h
"
19
#include "
FWCore/Framework/interface/MakerMacros.h
"
20
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
21
#include "
FWCore/ServiceRegistry/interface/Service.h
"
22
#include "
DQMServices/Core/interface/DQMStore.h
"
23
#include "
DQMServices/Core/interface/MonitorElement.h
"
24
25
#include "
DataFormats/HLTReco/interface/TriggerObject.h
"
26
#include "
DataFormats/Common/interface/TriggerResults.h
"
27
#include "
DataFormats/HLTReco/interface/TriggerEvent.h
"
28
#include "
DataFormats/HLTReco/interface/TriggerTypeDefs.h
"
29
30
#include "
HLTrigger/HLTcore/interface/HLTConfigProvider.h
"
31
32
#include "
RecoMET/METAlgorithms/interface/HcalNoiseRBXArray.h
"
33
34
#include "
RecoJets/JetProducers/interface/JetIDHelper.h
"
35
36
class
TcMETAnalyzer
:
public
TcMETAnalyzerBase
{
37
public
:
38
40
TcMETAnalyzer
(
const
edm::ParameterSet
&);
41
43
virtual
~TcMETAnalyzer
();
44
46
void
beginJob
(
DQMStore
* dbe);
47
49
void
endJob
();
50
51
// Book MonitorElements
52
void
bookMESet
(
std::string
);
53
void
bookMonitorElement
(
std::string
,
bool
);
54
56
void
analyze
(
const
edm::Event
&,
const
edm::EventSetup
&,
57
const
edm::TriggerResults
&);
58
60
void
beginRun
(
const
edm::Run
&,
const
edm::EventSetup
&);
61
63
void
endRun
(
const
edm::Run
& iRun,
const
edm::EventSetup
& iSetup,
DQMStore
*dbe);
64
65
// Fill MonitorElements
66
void
fillMESet
(
const
edm::Event
&,
std::string
,
const
reco::MET
&);
67
void
fillMonitorElement
(
const
edm::Event
&,
std::string
,
std::string
,
const
reco::MET
&,
bool
);
68
void
makeRatePlot
(
std::string
,
double
);
69
70
bool
selectHighPtJetEvent
(
const
edm::Event
&);
71
bool
selectLowPtJetEvent
(
const
edm::Event
&);
72
bool
selectWElectronEvent
(
const
edm::Event
&);
73
bool
selectWMuonEvent
(
const
edm::Event
&);
74
75
void
setSource
(
std::string
source
) {
76
_source
=
source
;
77
}
78
79
int
evtCounter
;
80
81
private
:
82
// ----------member data ---------------------------
83
84
edm::ParameterSet
parameters
;
85
// Switch for verbosity
86
int
_verbose
;
87
88
std::string
metname
;
89
std::string
_source
;
90
91
edm::InputTag
theTcMETCollectionLabel
;
92
edm::InputTag
HcalNoiseRBXCollectionTag
;
93
edm::InputTag
HBHENoiseFilterResultTag
;
94
edm::InputTag
theJetCollectionLabel
;
95
edm::InputTag
thePfJetCollectionLabel
;
96
edm::InputTag
TcCandidatesTag
;
97
98
// list of Jet or MB HLT triggers
99
std::vector<std::string >
HLTPathsJetMBByName_
;
100
101
std::string
_hlt_HighPtJet
;
102
std::string
_hlt_LowPtJet
;
103
std::string
_hlt_HighMET
;
104
// std::string _hlt_LowMET;
105
std::string
_hlt_Ele
;
106
std::string
_hlt_Muon
;
107
108
int
_trig_JetMB
;
109
int
_trig_HighPtJet
;
110
int
_trig_LowPtJet
;
111
int
_trig_HighMET
;
112
// int _trig_LowMET;
113
int
_trig_Ele
;
114
int
_trig_Muon
;
115
116
117
double
_highPtTcJetThreshold
;
118
double
_lowPtTcJetThreshold
;
119
double
_highTcMETThreshold
;
120
double
_lowTcMETThreshold
;
121
122
// Et threshold for MET plots
123
double
_etThreshold
;
124
125
// HF calibration factor (in 31X applied by TcProducer)
126
double
hfCalibFactor_
;
//
127
128
// JetID helper
129
reco::helper::JetIDHelper
*
jetID
;
130
131
//
132
bool
_allhist
;
133
bool
_allSelection
;
134
135
//
136
std::vector<std::string>
_FolderNames
;
137
138
//
139
DQMStore
*
_dbe
;
140
141
//the histos
142
MonitorElement
*
metME
;
143
144
MonitorElement
*
meTriggerName_HighPtJet
;
145
MonitorElement
*
meTriggerName_LowPtJet
;
146
MonitorElement
*
meTriggerName_HighMET
;
147
// MonitorElement* meTriggerName_LowMET;
148
MonitorElement
*
meTriggerName_Ele
;
149
MonitorElement
*
meTriggerName_Muon
;
150
151
MonitorElement
*
meTcNeutralEMFraction
;
152
MonitorElement
*
meTcNeutralHadFraction
;
153
MonitorElement
*
meTcChargedEMFraction
;
154
MonitorElement
*
meTcChargedHadFraction
;
155
MonitorElement
*
meTcMuonFraction
;
156
157
MonitorElement
*
meTcMEx
;
158
MonitorElement
*
meTcMEy
;
159
MonitorElement
*
meTcEz
;
160
MonitorElement
*
meTcMETSig
;
161
MonitorElement
*
meTcMET
;
162
MonitorElement
*
meTcMETPhi
;
163
MonitorElement
*
meTcSumET
;
164
MonitorElement
*
meTcMExLS
;
165
MonitorElement
*
meTcMEyLS
;
166
167
MonitorElement
*
meTcMETIonFeedbck
;
168
MonitorElement
*
meTcMETHPDNoise
;
169
MonitorElement
*
meTcMETRBXNoise
;
170
171
MonitorElement
*
meTcMETRate
;
172
};
173
#endif
TcMETAnalyzer::meTcMEx
MonitorElement * meTcMEx
Definition:
TcMETAnalyzer.h:157
TcMETAnalyzer::beginJob
void beginJob(DQMStore *dbe)
Inizialize parameters for histo binning.
Definition:
TcMETAnalyzer.cc:37
TcMETAnalyzer::_etThreshold
double _etThreshold
Definition:
TcMETAnalyzer.h:123
TriggerEvent.h
TcMETAnalyzer::selectWElectronEvent
bool selectWElectronEvent(const edm::Event &)
Definition:
TcMETAnalyzer.cc:634
TcMETAnalyzer::meTcNeutralEMFraction
MonitorElement * meTcNeutralEMFraction
Definition:
TcMETAnalyzer.h:151
TcMETAnalyzer::setSource
void setSource(std::string source)
Definition:
TcMETAnalyzer.h:75
TcMETAnalyzer::_highPtTcJetThreshold
double _highPtTcJetThreshold
Definition:
TcMETAnalyzer.h:117
TcMETAnalyzer::meTcMEyLS
MonitorElement * meTcMEyLS
Definition:
TcMETAnalyzer.h:165
TcMETAnalyzer::_hlt_HighPtJet
std::string _hlt_HighPtJet
Definition:
TcMETAnalyzer.h:101
TcMETAnalyzer::meTcMEy
MonitorElement * meTcMEy
Definition:
TcMETAnalyzer.h:158
TcMETAnalyzer::meTriggerName_Muon
MonitorElement * meTriggerName_Muon
Definition:
TcMETAnalyzer.h:149
Event.h
TriggerResults.h
MakerMacros.h
TcMETAnalyzer::meTriggerName_LowPtJet
MonitorElement * meTriggerName_LowPtJet
Definition:
TcMETAnalyzer.h:145
TcMETAnalyzer::theJetCollectionLabel
edm::InputTag theJetCollectionLabel
Definition:
TcMETAnalyzer.h:94
TcMETAnalyzer::_highTcMETThreshold
double _highTcMETThreshold
Definition:
TcMETAnalyzer.h:119
TcMETAnalyzer::meTcMETIonFeedbck
MonitorElement * meTcMETIonFeedbck
Definition:
TcMETAnalyzer.h:167
Frameworkfwd.h
TcMETAnalyzer::theTcMETCollectionLabel
edm::InputTag theTcMETCollectionLabel
Definition:
TcMETAnalyzer.h:91
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:255
TcMETAnalyzer::meTcEz
MonitorElement * meTcEz
Definition:
TcMETAnalyzer.h:159
TcMETAnalyzer::bookMESet
void bookMESet(std::string)
Definition:
TcMETAnalyzer.cc:111
TcMETAnalyzer
Definition:
TcMETAnalyzer.h:36
TcMETAnalyzer::metname
std::string metname
Definition:
TcMETAnalyzer.h:88
TcMETAnalyzer::parameters
edm::ParameterSet parameters
Definition:
TcMETAnalyzer.h:84
ParameterSet.h
TcMETAnalyzer::bookMonitorElement
void bookMonitorElement(std::string, bool)
Definition:
TcMETAnalyzer.cc:152
DQMStore
Definition:
DQMStore.h:70
TcMETAnalyzer::fillMonitorElement
void fillMonitorElement(const edm::Event &, std::string, std::string, const reco::MET &, bool)
Definition:
TcMETAnalyzer.cc:522
TcMETAnalyzer::meTcSumET
MonitorElement * meTcSumET
Definition:
TcMETAnalyzer.h:163
TcMETAnalyzer::analyze
void analyze(const edm::Event &, const edm::EventSetup &, const edm::TriggerResults &)
Get the analysis.
Definition:
TcMETAnalyzer.cc:268
TcMETAnalyzer::fillMESet
void fillMESet(const edm::Event &, std::string, const reco::MET &)
Definition:
TcMETAnalyzer.cc:503
TcMETAnalyzer::_hlt_Muon
std::string _hlt_Muon
Definition:
TcMETAnalyzer.h:106
TcMETAnalyzer::beginRun
void beginRun(const edm::Run &, const edm::EventSetup &)
Initialize run-based parameters.
Definition:
TcMETAnalyzer.cc:185
TcMETAnalyzer::meTcMETHPDNoise
MonitorElement * meTcMETHPDNoise
Definition:
TcMETAnalyzer.h:168
reco::MET
Definition:
MET.h:32
TcMETAnalyzer::HLTPathsJetMBByName_
std::vector< std::string > HLTPathsJetMBByName_
Definition:
TcMETAnalyzer.h:99
DQMStore.h
TcMETAnalyzer::_lowTcMETThreshold
double _lowTcMETThreshold
Definition:
TcMETAnalyzer.h:120
Service.h
edm::EventSetup
Definition:
EventSetup.h:44
TcMETAnalyzer::_allhist
bool _allhist
Definition:
TcMETAnalyzer.h:132
TcMETAnalyzer::_verbose
int _verbose
Definition:
TcMETAnalyzer.h:86
TcMETAnalyzer::meTcMETSig
MonitorElement * meTcMETSig
Definition:
TcMETAnalyzer.h:160
TcMETAnalyzer::selectLowPtJetEvent
bool selectLowPtJetEvent(const edm::Event &)
Definition:
TcMETAnalyzer.cc:611
TcMETAnalyzer::meTcChargedHadFraction
MonitorElement * meTcChargedHadFraction
Definition:
TcMETAnalyzer.h:154
TcMETAnalyzer::~TcMETAnalyzer
virtual ~TcMETAnalyzer()
Destructor.
Definition:
TcMETAnalyzer.cc:35
TcMETAnalyzer::_trig_HighMET
int _trig_HighMET
Definition:
TcMETAnalyzer.h:111
TcMETAnalyzer::_dbe
DQMStore * _dbe
Definition:
TcMETAnalyzer.h:139
TcMETAnalyzer::metME
MonitorElement * metME
Definition:
TcMETAnalyzer.h:142
TcMETAnalyzer::meTriggerName_HighMET
MonitorElement * meTriggerName_HighMET
Definition:
TcMETAnalyzer.h:146
TcMETAnalyzer::meTcMETRBXNoise
MonitorElement * meTcMETRBXNoise
Definition:
TcMETAnalyzer.h:169
MonitorElement
Definition:
MonitorElement.h:34
TcMETAnalyzer::TcMETAnalyzer
TcMETAnalyzer(const edm::ParameterSet &)
Constructor.
Definition:
TcMETAnalyzer.cc:28
TcMETAnalyzer::HBHENoiseFilterResultTag
edm::InputTag HBHENoiseFilterResultTag
Definition:
TcMETAnalyzer.h:93
TcMETAnalyzer::meTcNeutralHadFraction
MonitorElement * meTcNeutralHadFraction
Definition:
TcMETAnalyzer.h:152
TcMETAnalyzer::hfCalibFactor_
double hfCalibFactor_
Definition:
TcMETAnalyzer.h:126
TcMETAnalyzer::TcCandidatesTag
edm::InputTag TcCandidatesTag
Definition:
TcMETAnalyzer.h:96
HLTConfigProvider.h
TcMETAnalyzer::meTcMuonFraction
MonitorElement * meTcMuonFraction
Definition:
TcMETAnalyzer.h:155
TcMETAnalyzer::_trig_Muon
int _trig_Muon
Definition:
TcMETAnalyzer.h:114
TcMETAnalyzer::meTcMETRate
MonitorElement * meTcMETRate
Definition:
TcMETAnalyzer.h:171
MonitorElement.h
TcMETAnalyzer::thePfJetCollectionLabel
edm::InputTag thePfJetCollectionLabel
Definition:
TcMETAnalyzer.h:95
HcalNoiseRBXArray.h
TcMETAnalyzer::meTcChargedEMFraction
MonitorElement * meTcChargedEMFraction
Definition:
TcMETAnalyzer.h:153
TcMETAnalyzer::selectHighPtJetEvent
bool selectHighPtJetEvent(const edm::Event &)
Definition:
TcMETAnalyzer.cc:589
TcMETAnalyzer::HcalNoiseRBXCollectionTag
edm::InputTag HcalNoiseRBXCollectionTag
Definition:
TcMETAnalyzer.h:92
reco::helper::JetIDHelper
Definition:
JetIDHelper.h:16
TcMETAnalyzer::jetID
reco::helper::JetIDHelper * jetID
Definition:
TcMETAnalyzer.h:129
TcMETAnalyzer::meTcMETPhi
MonitorElement * meTcMETPhi
Definition:
TcMETAnalyzer.h:162
edm::InputTag
Definition:
InputTag.h:17
TcMETAnalyzerBase.h
TcMETAnalyzer::meTcMET
MonitorElement * meTcMET
Definition:
TcMETAnalyzer.h:161
TcMETAnalyzer::endJob
void endJob()
Finish up a job.
Definition:
TcMETAnalyzer.cc:104
JetIDHelper.h
TcMETAnalyzer::meTriggerName_HighPtJet
MonitorElement * meTriggerName_HighPtJet
Definition:
TcMETAnalyzer.h:144
TcMETAnalyzer::_source
std::string _source
Definition:
TcMETAnalyzer.h:89
edm::ParameterSet
Definition:
ParameterSet.h:35
TcMETAnalyzer::_allSelection
bool _allSelection
Definition:
TcMETAnalyzer.h:133
TcMETAnalyzer::_trig_LowPtJet
int _trig_LowPtJet
Definition:
TcMETAnalyzer.h:110
TcMETAnalyzer::_trig_Ele
int _trig_Ele
Definition:
TcMETAnalyzer.h:113
TcMETAnalyzer::_hlt_LowPtJet
std::string _hlt_LowPtJet
Definition:
TcMETAnalyzer.h:102
TcMETAnalyzer::meTcMExLS
MonitorElement * meTcMExLS
Definition:
TcMETAnalyzer.h:164
TriggerTypeDefs.h
TcMETAnalyzer::selectWMuonEvent
bool selectWMuonEvent(const edm::Event &)
Definition:
TcMETAnalyzer.cc:647
TcMETAnalyzer::makeRatePlot
void makeRatePlot(std::string, double)
Definition:
TcMETAnalyzer.cc:239
edm::Event
Definition:
Event.h:62
TcMETAnalyzer::_trig_JetMB
int _trig_JetMB
Definition:
TcMETAnalyzer.h:108
edm::TriggerResults
Definition:
TriggerResults.h:37
TcMETAnalyzerBase
Definition:
TcMETAnalyzerBase.h:29
TcMETAnalyzer::_FolderNames
std::vector< std::string > _FolderNames
Definition:
TcMETAnalyzer.h:136
TcMETAnalyzer::_trig_HighPtJet
int _trig_HighPtJet
Definition:
TcMETAnalyzer.h:109
source
static std::string const source
Definition:
EdmProvDump.cc:43
TcMETAnalyzer::_hlt_Ele
std::string _hlt_Ele
Definition:
TcMETAnalyzer.h:105
TcMETAnalyzer::_lowPtTcJetThreshold
double _lowPtTcJetThreshold
Definition:
TcMETAnalyzer.h:118
TcMETAnalyzer::endRun
void endRun(const edm::Run &iRun, const edm::EventSetup &iSetup, DQMStore *dbe)
Finish up a run.
Definition:
TcMETAnalyzer.cc:191
TcMETAnalyzer::evtCounter
int evtCounter
Definition:
TcMETAnalyzer.h:79
TcMETAnalyzer::_hlt_HighMET
std::string _hlt_HighMET
Definition:
TcMETAnalyzer.h:103
edm::Run
Definition:
Run.h:41
TcMETAnalyzer::meTriggerName_Ele
MonitorElement * meTriggerName_Ele
Definition:
TcMETAnalyzer.h:148
TriggerObject.h
Generated for CMSSW Reference Manual by
1.8.5