1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
|
#ifndef EwkMuDQM_H
#define EwkMuDQM_H
/** \class EwkMuDQM
*
* DQM offline for EWKMu
*
*/
#include "FWCore/Framework/interface/Frameworkfwd.h"
#include "FWCore/Framework/interface/MakerMacros.h"
#include "HLTrigger/HLTcore/interface/HLTPrescaleProvider.h"
#include "FWCore/Utilities/interface/InputTag.h"
#include "DQMServices/Core/interface/DQMEDAnalyzer.h"
#include "DQMServices/Core/interface/DQMStore.h"
namespace reco {
class Muon;
class Jet;
class MET;
class Vertex;
class Photon;
class BeamSpot;
} // namespace reco
class EwkMuDQM : public DQMEDAnalyzer {
public:
EwkMuDQM(const edm::ParameterSet&);
void analyze(const edm::Event&, const edm::EventSetup&) override;
protected:
//Book histograms
void bookHistograms(DQMStore::IBooker&, edm::Run const&, edm::EventSetup const&) override;
void dqmBeginRun(const edm::Run&, const edm::EventSetup&) override;
void init_histograms();
private:
edm::InputTag metTag_;
edm::InputTag jetTag_;
edm::EDGetTokenT<edm::TriggerResults> trigTag_;
edm::EDGetTokenT<edm::View<reco::Muon> > muonTag_;
edm::EDGetTokenT<edm::View<reco::MET> > metToken_;
edm::EDGetTokenT<edm::View<reco::Jet> > jetToken_;
edm::EDGetTokenT<edm::View<reco::Photon> > phoTag_;
edm::EDGetTokenT<edm::View<reco::Vertex> > vertexTag_;
edm::EDGetTokenT<reco::BeamSpot> beamSpotTag_;
std::vector<std::string> trigPathNames_;
bool isAlsoTrackerMuon_;
double dxyCut_;
double normalizedChi2Cut_;
int trackerHitsCut_;
int pixelHitsCut_;
int muonHitsCut_;
int nMatchesCut_;
bool isRelativeIso_;
bool isCombinedIso_;
double isoCut03_;
double acopCut_;
double metMin_;
double metMax_;
double mtMin_;
double mtMax_;
double ptCut_;
double etaCut_;
double ptThrForZ1_;
double ptThrForZ2_;
double dimuonMassMin_;
double dimuonMassMax_;
double eJetMin_;
int nJetMax_;
double ptThrForPhoton_;
int nPhoMax_;
bool isValidHltConfig_;
HLTPrescaleProvider hltPrescaleProvider_;
unsigned int nall;
unsigned int nrec;
unsigned int niso;
unsigned int nhlt;
unsigned int nmet;
unsigned int nsel;
unsigned int nz;
MonitorElement* pt_before_;
MonitorElement* pt_after_;
MonitorElement* eta_before_;
MonitorElement* eta_after_;
MonitorElement* dxy_before_;
MonitorElement* dxy_after_;
MonitorElement* goodewkmuon_before_;
MonitorElement* goodewkmuon_after_;
MonitorElement* iso_before_;
MonitorElement* iso_after_;
MonitorElement* trig_before_;
MonitorElement* trig_after_;
MonitorElement* mt_before_;
MonitorElement* mt_after_;
MonitorElement* met_before_;
MonitorElement* met_after_;
MonitorElement* acop_before_;
MonitorElement* acop_after_;
MonitorElement* njets_before_;
MonitorElement* njets_after_;
MonitorElement* njets_afterZ_;
MonitorElement* leadingjet_pt_before_;
MonitorElement* leadingjet_pt_after_;
MonitorElement* leadingjet_pt_afterZ_;
MonitorElement* leadingjet_eta_before_;
MonitorElement* leadingjet_eta_after_;
MonitorElement* leadingjet_eta_afterZ_;
// MonitorElement* ptPlus_before_;
// MonitorElement* ptMinus_before_;
MonitorElement* ptDiffPM_before_;
// MonitorElement* ptPlus_afterW_;
// MonitorElement* ptMinus_afterW_;
// MonitorElement* ptPlus_afterZ_;
// MonitorElement* ptMinus_afterZ_;
MonitorElement* ptDiffPM_afterZ_;
MonitorElement* met_afterZ_;
MonitorElement* pt1_afterZ_;
MonitorElement* eta1_afterZ_;
MonitorElement* dxy1_afterZ_;
MonitorElement* goodewkmuon1_afterZ_;
MonitorElement* iso1_afterZ_;
MonitorElement* pt2_afterZ_;
MonitorElement* eta2_afterZ_;
MonitorElement* dxy2_afterZ_;
MonitorElement* goodewkmuon2_afterZ_;
MonitorElement* iso2_afterZ_;
// filled if there is a Z-candidate
MonitorElement* n_zselPt1thr_; // number of muons in the event with pt>pt1thr
MonitorElement* n_zselPt2thr_; // number of muons in the event with pt>pt2thr
MonitorElement* ztrig_afterZ_;
MonitorElement* dimuonmass_before_;
MonitorElement* dimuonmass_afterZ_;
MonitorElement* npvs_before_;
MonitorElement* npvs_after_;
MonitorElement* npvs_afterZ_;
MonitorElement* muoncharge_before_;
MonitorElement* muoncharge_after_;
MonitorElement* muoncharge_afterZ_;
MonitorElement* nmuons_;
MonitorElement* ngoodmuons_;
MonitorElement* npfph_;
MonitorElement* nph_;
MonitorElement* pfphPt_;
MonitorElement* phPt_;
MonitorElement* pfphEta_;
MonitorElement* phEta_;
};
#endif
// Local Variables:
// show-trailing-whitespace: t
// truncate-lines: t
// End:
|