15 #include <boost/algorithm/string/replace.hpp>
28 using namespace trigger;
29 using namespace l1extra;
38 : hltProcessName_(pset.getParameter<
string>(
"hltProcessName")),
39 destination_(pset.getUntrackedParameter<
string>(
"destination")),
40 requiredTriggers_(pset.getUntrackedParameter<
vstring>(
"requiredTriggers")),
43 hltPath_(std::
move(hltPath)),
45 isLastFilter_(islastfilter),
46 hasTargetRecoCuts(targetParams_.exists(
"recoCuts")),
47 hasProbeRecoCuts(probeParams_.exists(
"recoCuts")),
48 targetMuonSelector_(targetParams_.getUntrackedParameter<
string>(
"recoCuts",
"")),
49 targetZ0Cut_(targetParams_.getUntrackedParameter<double>(
"z0Cut", 0.)),
50 targetD0Cut_(targetParams_.getUntrackedParameter<double>(
"d0Cut", 0.)),
51 targetptCutZ_(targetParams_.getUntrackedParameter<double>(
"ptCut_Z", 20.)),
52 targetptCutJpsi_(targetParams_.getUntrackedParameter<double>(
"ptCut_Jpsi", 20.)),
53 probeMuonSelector_(probeParams_.getUntrackedParameter<
string>(
"recoCuts",
"")),
54 probeZ0Cut_(probeParams_.getUntrackedParameter<double>(
"z0Cut", 0.)),
55 probeD0Cut_(probeParams_.getUntrackedParameter<double>(
"d0Cut", 0.)),
56 triggerSelector_(targetParams_.getUntrackedParameter<
string>(
"hltCuts",
"")),
57 hasTriggerCuts_(targetParams_.exists(
"hltCuts")) {
64 TPRegexp levelRegexp(
"L[1-3]");
67 TObjArray* levelArray = levelRegexp.MatchS(
moduleLabel_);
68 if (levelArray->GetEntriesFast() > 0) {
69 triggerLevel_ =
static_cast<const char*
>(((TObjString*)levelArray->At(0))->GetString());
75 TPRegexp ptRegexp(
"Mu([0-9]*)");
76 TObjArray* objArray = ptRegexp.MatchS(
hltPath_);
77 if (objArray->GetEntriesFast() >= 2) {
78 auto* ptCutString = (TObjString*)objArray->At(1);
79 cutMinPt_ = atoi(ptCutString->GetString());
86 TPRegexp suffixPtCut(
"Mu[0-9]+$");
89 if (baseDir[baseDir.size() - 1] !=
'/')
103 book1D(iBooker,
"hltPt",
"pt",
";p_{T} of HLT object");
104 book1D(iBooker,
"hltEta",
"eta",
";#eta of HLT object");
105 book1D(iBooker,
"hltPhi",
"phi",
";#phi of HLT object");
106 book1D(iBooker,
"resolutionEta",
"resolutionEta",
";#eta^{reco}-#eta^{HLT};");
107 book1D(iBooker,
"resolutionPhi",
"resolutionPhi",
";#phi^{reco}-#phi^{HLT};");
109 book1D(iBooker,
"deltaR",
"deltaR",
";#Deltar(reco, HLT);");
111 book1D(iBooker,
"resolutionPt",
"resolutionRel",
";(p_{T}^{reco}-p_{T}^{HLT})/|p_{T}^{reco}|;");
119 book1D(iBooker,
"efficiencyEta_" +
suffix,
"eta",
";#eta;");
120 book1D(iBooker,
"efficiencyPhi_" +
suffix,
"phi",
";#phi;");
121 book1D(iBooker,
"efficiencyTurnOn_" +
suffix,
"pt",
";p_{T};");
122 book1D(iBooker,
"efficiencyVertex_" +
suffix,
"NVertex",
";NVertex;");
123 book1D(iBooker,
"efficiencyDeltaR_" +
suffix,
"deltaR2",
";#Delta R;");
125 book2D(iBooker,
"efficiencyPhiVsEta_" +
suffix,
"etaCoarse",
"phiCoarse",
";#eta;#phi");
127 auto MRbaseDir = boost::replace_all_copy<string>(baseDir,
"HLT/Muon",
"HLT/Muon/MR");
133 book2D(iBooker,
"MR_efficiencyPhiVsEta_" +
suffix,
"etaCoarse",
"phiHEP17",
";#eta;#phi");
143 book1D(iBooker,
"efficiencyD0_" +
suffix,
"d0",
";d0;");
144 book1D(iBooker,
"efficiencyZ0_" +
suffix,
"z0",
";z0;");
145 book1D(iBooker,
"efficiencyCharge_" +
suffix,
"charge",
";charge;");
147 book1D(iBooker,
"fakerateEta_" +
suffix,
"eta",
";#eta;");
148 book1D(iBooker,
"fakerateVertex_" +
suffix,
"NVertex",
";NVertex;");
149 book1D(iBooker,
"fakeratePhi_" +
suffix,
"phi",
";#phi;");
150 book1D(iBooker,
"fakerateTurnOn_" +
suffix,
"pt",
";p_{T};");
152 book1D(iBooker,
"massVsEtaZ_" +
suffix,
"etaCoarse",
";#eta");
153 book1D(iBooker,
"massVsEtaJpsi_" +
suffix,
"etaCoarse",
";#eta");
154 book1D(iBooker,
"massVsPtZ_" +
suffix,
"ptCoarse",
";p_{T}");
155 book1D(iBooker,
"massVsPtJpsi_" +
suffix,
"ptCoarse",
";p_{T}");
156 book1D(iBooker,
"massVsVertexZ_" +
suffix,
"NVertex",
";NVertex");
157 book1D(iBooker,
"massVsVertexJpsi_" +
suffix,
"NVertex",
";NVertex");
161 book1D(iBooker,
"Refefficiency_Eta_Mu1_" +
suffix,
"etaCoarse",
";#eta;");
162 book1D(iBooker,
"Refefficiency_Eta_Mu2_" +
suffix,
"etaCoarse",
";#eta;");
163 book1D(iBooker,
"Refefficiency_TurnOn_Mu1_" +
suffix,
"ptCoarse",
";p_{T};");
164 book1D(iBooker,
"Refefficiency_TurnOn_Mu2_" +
suffix,
"ptCoarse",
";p_{T};");
165 book1D(iBooker,
"Refefficiency_Vertex_" +
suffix,
"NVertex",
";NVertex;");
166 book1D(iBooker,
"Refefficiency_DZ_Mu_" +
suffix,
"z0",
";z0;");
168 book2D(iBooker,
"Refefficiency_Eta_" +
suffix,
"etaCoarse",
"etaCoarse",
";#eta;#eta");
169 book2D(iBooker,
"Refefficiency_Pt_" +
suffix,
"ptCoarse",
"ptCoarse",
";p_{T};p_{T}");
170 book1D(iBooker,
"Refefficiency_DZ_Vertex_" +
suffix,
"NVertex",
";NVertex;");
171 book1D(iBooker,
"Ref_SS_pt1_" +
suffix,
"ptCoarse",
";p_{T}");
172 book1D(iBooker,
"Ref_SS_pt2_" +
suffix,
"ptCoarse",
";p_{T}");
173 book1D(iBooker,
"Ref_SS_eta1_" +
suffix,
"etaCoarse",
";#eta;");
174 book1D(iBooker,
"Ref_SS_eta2_" +
suffix,
"etaCoarse",
";#eta;");
181 book1D(iBooker,
"MR_Refefficiency_TurnOn_Mu1_" +
suffix,
"pt",
";p_{T};");
182 book1D(iBooker,
"MR_Refefficiency_TurnOn_Mu2_" +
suffix,
"pt",
";p_{T};");
183 book1D(iBooker,
"MR_Refefficiency_Vertex_" +
suffix,
"NVertexFine",
";NVertex;");
184 book1D(iBooker,
"MR_Refefficiency_DZ_Mu_" +
suffix,
"z0Fine",
";z0;");
186 book2D(iBooker,
"MR_Refefficiency_Pt_" +
suffix,
"pt",
"pt",
";p_{T};p_{T}");
187 book1D(iBooker,
"MR_Refefficiency_DZ_Vertex_" +
suffix,
"NVertexFine",
";NVertex;");
189 book1D(iBooker,
"MR_massVsPtZ_" +
suffix,
"pt",
";p_{T}");
190 book1D(iBooker,
"MR_massVsPtJpsi_" +
suffix,
"pt",
";p_{T}");
191 book1D(iBooker,
"MR_massVsVertexZ_" +
suffix,
"NVertex",
";NVertex");
192 book1D(iBooker,
"MR_massVsVertexJpsi_" +
suffix,
"NVertexFine",
";NVertex");
193 book1D(iBooker,
"MR_massVsDZZ_" +
suffix,
"z0Fine",
";z0;");
194 book1D(iBooker,
"MR_massVsEtaZ_" +
suffix,
"etaFine",
";#eta");
195 book1D(iBooker,
"MR_massVsEtaJpsi_" +
suffix,
"etaFine",
";#eta");
196 book1D(iBooker,
"MR_massVsPhiZ_" +
suffix,
"phiFine",
";#phi");
197 book1D(iBooker,
"MR_massVsPhiJpsi_" +
suffix,
"phiFine",
";#phi");
262 for (
auto& hltMuon : hltMuons) {
263 hists_[
"hltPt"]->Fill(hltMuon.pt());
264 hists_[
"hltEta"]->Fill(hltMuon.eta());
265 hists_[
"hltPhi"]->Fill(hltMuon.phi());
272 bool pairalreadyconsidered =
false;
273 for (
size_t i = 0;
i < targetMuons.size();
i++) {
277 if (matches[
i] < targetMuons.size()) {
279 double ptRes = (muon.
pt() - hltMuon.
pt()) / muon.
pt();
280 hists_[
"resolutionPt"]->Fill(ptRes);
284 double etaRes = muon.
eta() - hltMuon.
eta();
285 double phiRes = muon.
phi() - hltMuon.
phi();
286 hists_[
"resolutionEta"]->Fill(etaRes);
287 hists_[
"resolutionPhi"]->Fill(phiRes);
294 if (
suffix ==
"numer" && matches[
i] >= targetMuons.size())
314 hists_[
"efficiencyVertex_" +
suffix]->Fill(vertices->size());
318 double d0 = track->
dxy(beamSpot->position());
319 double z0 = track->
dz(beamSpot->position());
332 if (matches[
i] >= targetMuons.size())
334 for (
size_t k = 0;
k < targetMuons.size();
k++) {
337 Muon& theProbe = targetMuons[
k];
338 if (muon.
charge() != theProbe.
charge() && !pairalreadyconsidered) {
339 double mass = (muon.
p4() + theProbe.
p4()).M();
341 if (mass > 60 && mass < 120) {
344 hists_[
"massVsPtZ_denom"]->Fill(theProbe.
pt());
345 hists_[
"massVsEtaZ_denom"]->Fill(theProbe.
eta());
347 hists_[
"MR_massVsEtaZ_denom"]->Fill(theProbe.
eta());
348 hists_[
"MR_massVsPhiZ_denom"]->Fill(theProbe.
phi());
349 hists_[
"MR_massVsPtZ_denom"]->Fill(theProbe.
pt());
350 hists_[
"massVsVertexZ_denom"]->Fill(vertices->size());
351 hists_[
"MR_massVsVertexZ_denom"]->Fill(vertices->size());
359 hists_[
"massVsDZZ_denom"]->Fill(track->
dz(beamSpot->position()));
360 hists_[
"MR_massVsDZZ_denom"]->Fill(track->
dz(beamSpot->position()));
362 hists_[
"efficiencyDeltaR_denom"]->Fill(
deltaR(theProbe, muon));
363 if (matches[
k] < targetMuons.size()) {
364 hists_[
"massVsPtZ_numer"]->Fill(theProbe.
pt());
365 hists_[
"MR_massVsPtZ_numer"]->Fill(theProbe.
pt());
367 hists_[
"MR_massVsPhiZ_numer"]->Fill(theProbe.
phi());
368 hists_[
"massVsEtaZ_numer"]->Fill(theProbe.
eta());
369 hists_[
"MR_massVsEtaZ_numer"]->Fill(theProbe.
eta());
370 hists_[
"massVsVertexZ_numer"]->Fill(vertices->size());
371 hists_[
"MR_massVsVertexZ_numer"]->Fill(vertices->size());
374 hists_[
"massVsDZZ_numer"]->Fill(track->
dz(beamSpot->position()));
375 hists_[
"MR_massVsDZZ_numer"]->Fill(track->
dz(beamSpot->position()));
377 hists_[
"efficiencyDeltaR_numer"]->Fill(
deltaR(theProbe, muon));
379 pairalreadyconsidered =
true;
381 if (mass > 1 && mass < 4) {
384 hists_[
"massVsEtaJpsi_denom"]->Fill(theProbe.
eta());
385 hists_[
"MR_massVsEtaJpsi_denom"]->Fill(theProbe.
eta());
386 hists_[
"massVsPtJpsi_denom"]->Fill(theProbe.
pt());
387 hists_[
"MR_massVsPtJpsi_denom"]->Fill(theProbe.
pt());
388 hists_[
"massVsVertexJpsi_denom"]->Fill(vertices->size());
389 hists_[
"MR_massVsVertexJpsi_denom"]->Fill(vertices->size());
390 if (matches[
k] < targetMuons.size()) {
391 hists_[
"massVsEtaJpsi_numer"]->Fill(theProbe.
eta());
392 hists_[
"MR_massVsEtaJpsi_numer"]->Fill(theProbe.
eta());
393 hists_[
"massVsPtJpsi_numer"]->Fill(theProbe.
pt());
394 hists_[
"MR_massVsPtJpsi_numer"]->Fill(theProbe.
pt());
395 hists_[
"massVsVertexJpsi_numer"]->Fill(vertices->size());
396 hists_[
"MR_massVsVertexJpsi_numer"]->Fill(vertices->size());
398 pairalreadyconsidered =
true;
410 unsigned int numTriggers = trigNames.
size();
411 bool passTrigger =
false;
415 for (
unsigned int hltIndex = 0; hltIndex < numTriggers; ++hltIndex) {
416 passTrigger = (trigNames.
triggerName(hltIndex).find(requiredTrigger) != std::string::npos &&
417 triggerResults->wasrun(hltIndex) && triggerResults->accept(hltIndex));
424 for (
unsigned long matche : matches) {
425 if (matche < targetMuons.size())
428 if (!requiredTriggers_.empty() && targetMuons.size() > 1 && passTrigger) {
430 hists_[
"Refefficiency_Eta_Mu1_denom"]->Fill(targetMuons.at(0).eta());
431 hists_[
"Refefficiency_Eta_Mu2_denom"]->Fill(targetMuons.at(1).eta());
432 hists_[
"Refefficiency_TurnOn_Mu1_denom"]->Fill(targetMuons.at(0).pt());
433 hists_[
"MR_Refefficiency_TurnOn_Mu1_denom"]->Fill(targetMuons.at(0).pt());
434 hists_[
"Refefficiency_TurnOn_Mu2_denom"]->Fill(targetMuons.at(1).pt());
435 hists_[
"MR_Refefficiency_TurnOn_Mu2_denom"]->Fill(targetMuons.at(1).pt());
436 hists_[
"Refefficiency_Vertex_denom"]->Fill(vertices->size());
437 hists_[
"MR_Refefficiency_Vertex_denom"]->Fill(vertices->size());
438 hists_[
"MR_Refefficiency_Pt_denom"]->Fill(targetMuons.at(0).pt(), targetMuons.at(1).pt());
439 hists_[
"Refefficiency_Pt_denom"]->Fill(targetMuons.at(0).pt(), targetMuons.at(1).pt());
440 hists_[
"Refefficiency_Eta_denom"]->Fill(targetMuons.at(0).eta(), targetMuons.at(1).eta());
454 hists_[
"Refefficiency_Eta_Mu1_numer"]->Fill(targetMuons.at(0).eta());
455 hists_[
"Refefficiency_Eta_Mu2_numer"]->Fill(targetMuons.at(1).eta());
456 hists_[
"Refefficiency_TurnOn_Mu1_numer"]->Fill(targetMuons.at(0).pt());
457 hists_[
"MR_Refefficiency_TurnOn_Mu1_numer"]->Fill(targetMuons.at(0).pt());
458 hists_[
"Refefficiency_TurnOn_Mu2_numer"]->Fill(targetMuons.at(1).pt());
459 hists_[
"MR_Refefficiency_TurnOn_Mu2_numer"]->Fill(targetMuons.at(1).pt());
460 hists_[
"Refefficiency_Vertex_numer"]->Fill(vertices->size());
461 hists_[
"MR_Refefficiency_Vertex_numer"]->Fill(vertices->size());
462 hists_[
"MR_Refefficiency_Pt_numer"]->Fill(targetMuons.at(0).pt(), targetMuons.at(1).pt());
463 hists_[
"Refefficiency_Pt_numer"]->Fill(targetMuons.at(0).pt(), targetMuons.at(1).pt());
464 hists_[
"Refefficiency_Eta_numer"]->Fill(targetMuons.at(0).eta(), targetMuons.at(1).eta());
479 if (nonSameSignPath.rfind(
"_SameSign") < nonSameSignPath.length()) {
481 nonSameSignPath = boost::replace_all_copy<string>(nonSameSignPath,
"_SameSign",
"");
482 nonSameSignPath = nonSameSignPath.substr(0, nonSameSignPath.rfind(
"_v") + 2);
484 bool passTriggerSS =
false;
486 for (
unsigned int hltIndex = 0; hltIndex < numTriggers; ++hltIndex) {
488 passTriggerSS || (trigNames.
triggerName(hltIndex).substr(0, nonSameSignPath.size()) == nonSameSignPath &&
489 triggerResults->wasrun(hltIndex) && triggerResults->accept(hltIndex));
492 if (ssPath && targetMuons.size() > 1 && passTriggerSS) {
493 if (targetMuons[0].
charge() * targetMuons[1].charge() > 0) {
494 hists_[
"Ref_SS_pt1_denom"]->Fill(targetMuons[0].
pt());
495 hists_[
"Ref_SS_pt2_denom"]->Fill(targetMuons[1].
pt());
496 hists_[
"Ref_SS_eta1_denom"]->Fill(targetMuons[0].
eta());
497 hists_[
"Ref_SS_eta2_denom"]->Fill(targetMuons[1].
eta());
499 hists_[
"Ref_SS_pt1_numer"]->Fill(targetMuons[0].
pt());
500 hists_[
"Ref_SS_pt2_numer"]->Fill(targetMuons[1].
pt());
501 hists_[
"Ref_SS_eta1_numer"]->Fill(targetMuons[0].
eta());
502 hists_[
"Ref_SS_eta2_numer"]->Fill(targetMuons[1].
eta());
510 if (nonDZPath.rfind(
"_DZ") < nonDZPath.length()) {
512 nonDZPath = boost::replace_all_copy<string>(nonDZPath,
"_DZ",
"");
513 nonDZPath = nonDZPath.substr(0, nonDZPath.rfind(
"_v") + 2);
515 bool passTriggerDZ =
false;
517 for (
unsigned int hltIndex = 0; hltIndex < numTriggers; ++hltIndex) {
518 passTriggerDZ = passTriggerDZ || (trigNames.
triggerName(hltIndex).find(nonDZPath) != std::string::npos &&
519 triggerResults->wasrun(hltIndex) && triggerResults->accept(hltIndex));
523 if (dzPath && targetMuons.size() > 1 && passTriggerDZ) {
524 const Track* track0 =
nullptr;
525 const Track* track1 =
nullptr;
526 if (targetMuons.at(0).isTrackerMuon())
527 track0 = &*targetMuons.at(0).innerTrack();
528 else if (targetMuons.at(0).isTrackerMuon())
529 track0 = &*targetMuons.at(0).outerTrack();
530 if (targetMuons.at(1).isTrackerMuon())
531 track1 = &*targetMuons.at(1).innerTrack();
532 else if (targetMuons.at(1).isTrackerMuon())
533 track1 = &*targetMuons.at(1).outerTrack();
535 if (track0 && track1) {
536 hists_[
"Refefficiency_DZ_Mu_denom"]->Fill(track0->
dz(beamSpot->position()) - track1->
dz(beamSpot->position()));
537 hists_[
"MR_Refefficiency_DZ_Mu_denom"]->Fill(track0->
dz(beamSpot->position()) - track1->
dz(beamSpot->position()));
539 hists_[
"Refefficiency_DZ_Vertex_denom"]->Fill(vertices->size());
540 hists_[
"MR_Refefficiency_DZ_Vertex_denom"]->Fill(vertices->size());
542 if (track0 && track1) {
543 hists_[
"Refefficiency_DZ_Mu_numer"]->Fill(track0->
dz(beamSpot->position()) - track1->
dz(beamSpot->position()));
544 hists_[
"MR_Refefficiency_DZ_Mu_numer"]->Fill(track0->
dz(beamSpot->position()) -
545 track1->
dz(beamSpot->position()));
546 hists_[
"Refefficiency_DZ_Vertex_numer"]->Fill(vertices->size());
547 hists_[
"MR_Refefficiency_DZ_Vertex_numer"]->Fill(vertices->size());
554 for (
size_t i = 0;
i < hltMuons.size();
i++) {
556 bool isFake = hltMatches[
i] > hltMuons.size();
559 if (
suffix ==
"numer" && !isFake)
561 hists_[
"fakerateVertex_" +
suffix]->Fill(vertices->size());
572 if (binning.size() < 3) {
573 LogWarning(
"HLTMuonVal") <<
"Invalid binning parameters!";
578 if (binning.size() == 3) {
580 edges =
new float[nBins + 1];
581 const double min = binning[1];
582 const double binwidth = (binning[2] - binning[1]) / nBins;
583 for (
size_t i = 0;
i <= nBins;
i++)
584 edges[
i] = min + (binwidth *
i);
589 nBins = binning.size() - 1;
590 edges =
new float[nBins + 1];
591 for (
size_t i = 0;
i <= nBins;
i++)
592 edges[
i] = binning[
i];
610 vector<string>::const_iterator iter;
612 for (iter = names.begin(); iter != names.end(); ++iter) {
615 else if (targetPset.
existsAs<
T>(*iter,
false))
621 template <
class T1,
class T2>
623 const vector<T2>& collection2,
625 const size_t n1 = collection1.size();
626 const size_t n2 = collection2.size();
628 vector<size_t>
result(n1, -1);
629 vector<vector<double> > deltaRMatrix(n1, vector<double>(n2,
NOMATCH));
631 for (
size_t i = 0;
i < n1;
i++)
632 for (
size_t j = 0;
j < n2;
j++) {
633 deltaRMatrix[
i][
j] =
deltaR(collection1[
i], collection2[
j]);
637 for (
size_t k = 0;
k < n1;
k++) {
642 for (
size_t i = 0;
i < n1;
i++)
643 for (
size_t j = 0;
j < n2;
j++)
644 if (deltaRMatrix[
i][
j] < minDeltaR) {
647 minDeltaR = deltaRMatrix[
i][
j];
650 if (minDeltaR < maxDeltaR) {
651 result[i_min] = j_min;
652 deltaRMatrix[i_min] = vector<double>(n2,
NOMATCH);
653 for (
size_t i = 0;
i < n1;
i++)
672 for (
auto const&
mu : allMuons) {
674 if (
mu.isTrackerMuon())
675 track = &*
mu.innerTrack();
676 else if (
mu.isStandAloneMuon())
677 track = &*
mu.outerTrack();
678 if (track && selector(
mu) && fabs(track->
dxy(beamSpot.
position())) < d0Cut &&
680 reducedMuons.push_back(
mu);
695 size_t filterIndex = triggerSummary.
filterIndex(filterTag);
701 for (
unsigned short key : keys) {
703 if (triggerSelector(foundObject))
704 selectedObjects.push_back(foundObject);
708 return selectedObjects;
719 float* edges =
nullptr;
723 if (
hists_[name]->getTH1F()->GetSumw2N())
732 const string& binningTypeX,
733 const string& binningTypeY,
734 const string&
title) {
742 float* edgesX =
nullptr;
746 float* edgesY =
nullptr;
749 hists_[
name] = iBooker.
book2D(name.c_str(), title.c_str(), nBinsX, edgesX, nBinsY, edgesY);
751 if (
hists_[name]->getTH2F()->GetSumw2N())
752 hists_[name]->enableSumw2();
constexpr int32_t ceil(float num)
T getUntrackedParameter(std::string const &, T const &) const
reco::MuonCollection selectedMuons(const reco::MuonCollection &, const reco::BeamSpot &, bool, const StringCutObjectSelector< reco::Muon > &, double, double)
bool existsAs(std::string const ¶meterName, bool trackiness=true) const
checks if a parameter exists as a given type
StringCutObjectSelector< reco::Muon > probeMuonSelector_
double pt() const final
transverse momentum
The single EDProduct to be saved for each event (AOD case)
trigger::size_type sizeFilters() const
const std::string EFFICIENCY_SUFFIXES[2]
virtual void setCurrentFolder(std::string const &fullpath)
virtual TrackRef innerTrack() const
ParameterSet const & getParameterSet(ParameterSetID const &id)
const Keys & filterKeys(trigger::size_type index) const
trigger::size_type filterIndex(const edm::InputTag &filterTag) const
find index of filter in data-member vector from filter tag
std::map< std::string, std::vector< double > > binParams_
std::string triggerLevel_
ParameterSet getUntrackedParameterSet(std::string const &name, ParameterSet const &defaultValue) const
std::map< std::string, MonitorElement * > hists_
const std::string names[nVars_]
bool isTrackerMuon() const override
std::vector< Muon > MuonCollection
collection of Muon objects
HLTMuonMatchAndPlot(const edm::ParameterSet &, std::string, std::string, bool)
Constructor.
std::vector< std::string > requiredTriggers_
Single trigger physics object (e.g., an isolated muon)
void book2D(DQMStore::IBooker &, const std::string &, const std::string &, const std::string &, const std::string &)
std::string hltProcessName_
std::vector< size_t > matchByDeltaR(const std::vector< T1 > &, const std::vector< T2 > &, const double maxDeltaR=NOMATCH)
void fillMapFromPSet(std::map< std::string, T > &, const edm::ParameterSet &, const std::string &)
trigger::TriggerObjectCollection selectedTriggerObjects(const trigger::TriggerObjectCollection &, const trigger::TriggerEvent &, bool hasTriggerCuts, const StringCutObjectSelector< trigger::TriggerObject > &triggerSelector)
tuple key
prepare the HTCondor submission files and eventually submit them
static std::string const triggerResults
std::vector< std::string > getParameterNames() const
virtual TrackRef outerTrack() const
reference to Track reconstructed in the muon detector only
double dz() const
dz parameter (= dsz/cos(lambda)). This is the track z0 w.r.t (0,0,0) only if the refPoint is close to...
void book1D(DQMStore::IBooker &, std::string, const std::string &, std::string)
std::vector< TriggerObject > TriggerObjectCollection
collection of trigger physics objects (e.g., all isolated muons)
static const char *const trigNames[]
void analyze(edm::Handle< reco::MuonCollection > &, edm::Handle< reco::BeamSpot > &, edm::Handle< reco::VertexCollection > &, edm::Handle< trigger::TriggerEvent > &, edm::Handle< edm::TriggerResults > &, const edm::TriggerNames &)
static constexpr float d0
StringCutObjectSelector< reco::Muon > targetMuonSelector_
ParameterSet const & getParameterSet(std::string const &) const
std::string const & triggerName(unsigned int index) const
std::vector< size_type > Keys
MonitorElement * book2D(TString const &name, TString const &title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, FUNC onbooking=NOOP())
T getParameter(std::string const &) const
StringCutObjectSelector< trigger::TriggerObject > triggerSelector_
void endRun(const edm::Run &, const edm::EventSetup &)
const Point & position() const
position
Log< level::Warning, false > LogWarning
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX, FUNC onbooking=NOOP())
double dxy() const
dxy parameter. (This is the transverse impact parameter w.r.t. to (0,0,0) ONLY if refPoint is close t...
double phi() const final
momentum azimuthal angle
std::map< std::string, double > plotCuts_
void fillEdges(size_t &nBins, float *&edges, const std::vector< double > &binning)
int charge() const final
electric charge
void beginRun(DQMStore::IBooker &, const edm::Run &, const edm::EventSetup &)
bool isStandAloneMuon() const override
double eta() const final
momentum pseudorapidity