50 static constexpr
int N_PHI = 64;
54 static constexpr
int N_dxy = 50;
58 static constexpr
int N_ETA = 68;
96 : folderName_(iConfig.getParameter<
std::
string>(
"FolderName")),
97 requireValidHLTPaths_(iConfig.getParameter<
bool>(
"requireValidHLTPaths")),
98 hltPathsAreValid_(
false),
103 muon_variable_binning_(
105 muoneta_variable_binning_(
107 muon_binning_(getHistoPSet(
111 muPt_variable_binning_2D_(
113 elePt_variable_binning_2D_(
115 muEta_variable_binning_2D_(
117 eleEta_variable_binning_2D_(
120 iConfig.getParameter<
edm::
ParameterSet>(
"numGenericTriggerEventPSet"), consumesCollector(), *this)),
122 iConfig.getParameter<
edm::
ParameterSet>(
"denGenericTriggerEventPSet"), consumesCollector(), *this)),
123 metSelection_(iConfig.getParameter<
std::
string>(
"metSelection")),
124 muonSelection_(iConfig.getParameter<
std::
string>(
"muonSelection")),
125 eleSelection_(iConfig.getParameter<
std::
string>(
"eleSelection")),
126 nmuons_(iConfig.getParameter<unsigned
int>(
"nmuons")),
127 nelectrons_(iConfig.getParameter<unsigned
int>(
"nelectrons")) {}
162 histname =
"muon_pt";
163 histtitle =
"muon PT";
167 histname =
"muon_pt_variable";
168 histtitle =
"muon PT";
172 histname =
"muonVsLS";
173 histtitle =
"muon pt vs LS";
185 histname =
"muon_phi";
186 histtitle =
"Muon phi";
190 histname =
"muon_eta";
191 histtitle =
"Muon eta";
195 histname =
"muon_eta_variablebinning";
196 histtitle =
"Muon eta";
200 histname =
"muon_dxy";
201 histtitle =
"Muon dxy";
205 histname =
"muon_dz";
206 histtitle =
"Muon dz";
210 histname =
"muon_etaphi";
211 histtitle =
"Muon eta-phi";
224 histname =
"electron_pt_variable";
225 histtitle =
"electron PT";
229 histname =
"electron_eta";
230 histtitle =
"electron eta";
234 histname =
"elePt_muPt";
235 histtitle =
"electron pt vs muon pt";
239 histname =
"eleEta_muEta";
240 histtitle =
"electron #eta vs muon #eta";
269 if (not
v.isFake()) {
270 pv.SetXYZ(
v.x(),
v.y(),
v.z());
277 std::vector<reco::Muon>
muons;
278 if (muonHandle->size() <
nmuons_)
280 for (
auto const&
p : *muonHandle) {
289 std::vector<reco::GsfElectron>
electrons;
292 for (
auto const&
e : *eleHandle) {
300 const int ls =
iEvent.id().luminosityBlock();
302 if (!
muons.empty()) {
324 if (!
muons.empty()) {
345 desc.add<
bool>(
"requireValidHLTPaths",
true);
354 desc.add<
unsigned int>(
"nmuons", 0);
355 desc.add<
unsigned int>(
"nelectrons", 0);
382 std::vector<double>
bins = {0., 20., 40., 60., 80., 90., 100., 110., 120., 130., 140., 150., 160.,
383 170., 180., 190., 200., 220., 240., 260., 280., 300., 350., 400., 450., 1000.};
386 std::vector<double>
etabins = {-3., -2.5, -2., -1.5, -1., -.5, 0., .5, 1., 1.5, 2., 2.5, 3.};
389 std::vector<double> bins_2D = {0., 40., 80., 100., 120., 140., 160., 180., 200., 240., 280., 350., 450., 1000.};
390 std::vector<double> eta_bins_2D = {-3., -2., -1., 0., 1., 2., 3.};
391 std::vector<double> phi_bins_2D = {
392 -3.1415, -2.5132, -1.8849, -1.2566, -0.6283, 0, 0.6283, 1.2566, 1.8849, 2.5132, 3.1415};
393 histoPSet.add<std::vector<double>>(
"elePtBinning2D", bins_2D);
394 histoPSet.add<std::vector<double>>(
"muPtBinning2D", bins_2D);
395 histoPSet.add<std::vector<double>>(
"eleEtaBinning2D", eta_bins_2D);
396 histoPSet.add<std::vector<double>>(
"muEtaBinning2D", eta_bins_2D);
404 descriptions.
add(
"muonMonitoring",
desc);