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