11 elif objtype ==
"Ele":
13 elif objtype ==
"Photon":
15 elif objtype ==
"PFTau":
17 elif objtype ==
"PFJet":
19 elif objtype ==
"MET" :
24 numer_description =
"# gen %s passed the %s" % (objtypeLatex,triggerpath)
25 denom_description =
"# gen %s " % (objtypeLatex)
27 if plot_type ==
"TurnOn1":
29 xAxis =
"p_{T} of Leading Generated %s (GeV/c)" % (objtype)
30 input_type =
"gen%sMaxPt1" % (objtype)
31 if plot_type ==
"TurnOn2":
32 title =
"Next-to-Leading pT Turn-On"
33 xAxis =
"p_{T} of Next-to-Leading Generated %s (GeV/c)" % (objtype)
34 input_type =
"gen%sMaxPt2" % (objtype)
35 if plot_type ==
"TurnOn3":
37 xAxis =
"HT of Leading Generated %s (GeV/c)" % (objtype)
38 input_type =
"gen%sSumEt" % (objtype)
39 if plot_type ==
"EffEta":
40 title =
"#eta Efficiency"
41 xAxis =
"#eta of Generated %s " % (objtype)
42 input_type =
"gen%sEta" % (objtype)
43 if plot_type ==
"EffPhi":
44 title =
"#phi Efficiency"
45 xAxis =
"#phi of Generated %s " % (objtype)
46 input_type =
"gen%sPhi" % (objtype)
48 yAxis =
"%s / %s" % (numer_description, denom_description)
49 all_titles =
"%s for trigger %s; %s; %s" % (title, triggerpath,
51 return "Eff_%s_%s '%s' %s_%s %s" % (input_type,triggerpath,
52 all_titles,input_type,triggerpath,input_type)
58 reco_strings.append(entry
59 .
replace(
"Generated",
"Reconstructed")
62 strings.extend(reco_strings)
65 plot_types = [
"TurnOn1",
"TurnOn2",
"TurnOn3",
"EffEta",
"EffPhi"]
68 obj_types = [
"Mu",
"Ele",
"Photon",
"PFTau",
"PFJet",
"MET"]
71 efficiency_strings = []
76 for an
in _config.analysis:
77 s = _config.__getattribute__(an)
78 vstr = s.__getattribute__(
"hltPathsToCheck")
79 map(
lambda x: triggers.add(x.replace(
"_v",
"")),vstr)
80 triggers =
list(triggers)
85 for type
in plot_types:
95 hltExoticaPostHighPtDimuon = hltExoticaPostProcessor.clone()
96 hltExoticaPostHighPtDimuon.subDirs = [
'HLT/Exotica/HighPtDimuon']
97 hltExoticaPostHighPtDimuon.efficiencyProfile = efficiency_strings
99 hltExoticaPostHighPtDielectron = hltExoticaPostProcessor.clone()
100 hltExoticaPostHighPtDielectron.subDirs = [
'HLT/Exotica/HighPtDielectron']
101 hltExoticaPostHighPtDielectron.efficiencyProfile = efficiency_strings
103 hltExoticaPostEleMu = hltExoticaPostProcessor.clone()
104 hltExoticaPostEleMu.subDirs = [
'HLT/Exotica/EleMu']
105 hltExoticaPostEleMu.efficiencyProfile = efficiency_strings
107 hltExoticaPostMonojet = hltExoticaPostProcessor.clone()
108 hltExoticaPostMonojet.subDirs = [
'HLT/Exotica/Monojet']
109 hltExoticaPostMonojet.efficiencyProfile = efficiency_strings
111 hltExoticaPostPureMET = hltExoticaPostProcessor.clone()
112 hltExoticaPostPureMET.subDirs = [
'HLT/Exotica/PureMET']
113 hltExoticaPostPureMET.efficiencyProfile = efficiency_strings
115 hltExoticaPostHT = hltExoticaPostProcessor.clone()
116 hltExoticaPostHT.subDirs = [
'HLT/Exotica/HT']
117 hltExoticaPostHT.efficiencyProfile = efficiency_strings
119 hltExoticaPostProcessors = cms.Sequence(
120 hltExoticaPostHighPtDimuon +
121 hltExoticaPostHighPtDielectron +
122 hltExoticaPostEleMu +
123 hltExoticaPostMonojet +
124 hltExoticaPostPureMET +
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger list("!*","!HLTx*"if it matches 2 triggers or more) will accept the event if all the matching triggers are FAIL.It will reject the event if any of the triggers are PASS or EXCEPTION(this matches the behavior of"!*"before the partial wildcard feature was incorporated).Triggers which are in the READY state are completely ignored.(READY should never be returned since the trigger paths have been run