1 import FWCore.ParameterSet.Config
as cms
11 elif objtype ==
"refittedStandAloneMuons":
12 objtypeLatex=
"refittedStandAlone #mu"
13 elif objtype ==
"Ele":
15 elif objtype ==
"Photon":
17 elif objtype ==
"PFTau":
21 numer_description =
"# gen %s passed the %s" % (objtypeLatex,triggerpath)
22 denom_description =
"# gen %s " % (objtypeLatex)
24 if plot_type ==
"TurnOn1":
26 xAxis =
"p_{T} of Leading Generated %s (GeV/c)" % (objtype)
27 input_type =
"gen%sMaxPt1" % (objtype)
28 if plot_type ==
"TurnOn2":
29 title =
"Next-to-Leading pT Turn-On"
30 xAxis =
"p_{T} of Next-to-Leading Generated %s (GeV/c)" % (objtype)
31 input_type =
"gen%sMaxPt2" % (objtype)
32 if plot_type ==
"TurnOn3":
33 title =
"Next-to-next-to-Leading pT Turn-On"
34 xAxis =
"p_{T} of Next-to-next-to-Leading Generated %s (GeV/c)" % (objtype)
35 input_type =
"gen%sMaxPt3" % (objtype)
36 if plot_type ==
"TurnOn4":
37 title =
"SumEt Turn-On"
38 xAxis =
"SumEt of Leading Generated %s (GeV/c)" % (objtype)
39 input_type =
"gen%sSumEt" % (objtype)
40 if plot_type ==
"EffEta":
41 title =
"#eta Efficiency"
42 xAxis =
"#eta of Generated %s " % (objtype)
43 input_type =
"gen%sEta" % (objtype)
44 if plot_type ==
"EffPhi":
45 title =
"#phi Efficiency"
46 xAxis =
"#phi of Generated %s " % (objtype)
47 input_type =
"gen%sPhi" % (objtype)
48 if plot_type ==
"EffDxy":
49 title =
"Dxy Efficiency"
50 xAxis =
"Dxy of Generated %s " % (objtype)
51 input_type =
"gen%sDxy" % (objtype)
53 yAxis =
"%s / %s" % (numer_description, denom_description)
54 all_titles =
"%s for trigger %s; %s; %s" % (title, triggerpath,
56 return "Eff_%s_%s '%s' %s_%s %s" % (input_type,triggerpath,
57 all_titles,input_type,triggerpath,input_type)
63 reco_strings.append(entry
64 .
replace(
"Generated",
"Reconstructed")
67 strings.extend(reco_strings)
70 plot_types = [
"TurnOn1",
"TurnOn2",
"TurnOn3",
"TurnOn4",
"EffEta",
"EffPhi",
"EffDxy"]
73 obj_types = [
"Mu",
"refittedStandAloneMuons",
"Track",
"Ele",
"Photon",
"PFTau",
"PFJet",
"MET",
"PFMET",
"PFMHT",
"GenMET",
"CaloJet"
74 ,
"CaloMET",
"CaloMHT",
"l1MET"]
77 efficiency_strings = []
82 for an
in _config.analysis:
83 s = _config.__getattribute__(an)
84 vstr = s.__getattribute__(
"hltPathsToCheck")
85 map(
lambda x: triggers.add(x.replace(
"_v",
"")),vstr)
86 triggers =
list(triggers)
91 for type
in plot_types:
101 hltExoticaPostLowPtTrimuon = hltExoticaPostProcessor.clone()
102 hltExoticaPostLowPtTrimuon.subDirs = [
'HLT/Exotica/LowPtTrimuon']
103 hltExoticaPostLowPtTrimuon.efficiencyProfile = efficiency_strings
105 hltExoticaPostHighPtDimuon = hltExoticaPostProcessor.clone()
106 hltExoticaPostHighPtDimuon.subDirs = [
'HLT/Exotica/HighPtDimuon']
107 hltExoticaPostHighPtDimuon.efficiencyProfile = efficiency_strings
109 hltExoticaPostHighPtDielectron = hltExoticaPostProcessor.clone()
110 hltExoticaPostHighPtDielectron.subDirs = [
'HLT/Exotica/HighPtDielectron']
111 hltExoticaPostHighPtDielectron.efficiencyProfile = efficiency_strings
113 hltExoticaPostHighPtElectron = hltExoticaPostProcessor.clone()
114 hltExoticaPostHighPtElectron.subDirs = [
'HLT/Exotica/HighPtElectron']
115 hltExoticaPostHighPtElectron.efficiencyProfile = efficiency_strings
117 hltExoticaPostLowPtElectron = hltExoticaPostProcessor.clone()
118 hltExoticaPostLowPtElectron.subDirs = [
'HLT/Exotica/LowPtElectron']
119 hltExoticaPostLowPtElectron.efficiencyProfile = efficiency_strings
121 hltExoticaPostLowPtDimuon = hltExoticaPostProcessor.clone()
122 hltExoticaPostLowPtDimuon.subDirs = [
'HLT/Exotica/LowPtDimuon']
123 hltExoticaPostLowPtDimuon.efficiencyProfile = efficiency_strings
125 hltExoticaPostLowPtDielectron = hltExoticaPostProcessor.clone()
126 hltExoticaPostLowPtDielectron.subDirs = [
'HLT/Exotica/LowPtDielectron']
127 hltExoticaPostLowPtDielectron.efficiencyProfile = efficiency_strings
129 hltExoticaPostHighPtPhoton = hltExoticaPostProcessor.clone()
130 hltExoticaPostHighPtPhoton.subDirs = [
'HLT/Exotica/HighPtPhoton']
131 hltExoticaPostHighPtPhoton.efficiencyProfile = efficiency_strings
133 hltExoticaPostDiPhoton = hltExoticaPostProcessor.clone()
134 hltExoticaPostDiPhoton.subDirs = [
'HLT/Exotica/DiPhoton']
135 hltExoticaPostDiPhoton.efficiencyProfile = efficiency_strings
137 hltExoticaPostSingleMuon = hltExoticaPostProcessor.clone()
138 hltExoticaPostSingleMuon.subDirs = [
'HLT/Exotica/SingleMuon']
139 hltExoticaPostSingleMuon.efficiencyProfile = efficiency_strings
141 hltExoticaPostPFHT = hltExoticaPostProcessor.clone()
142 hltExoticaPostPFHT.subDirs = [
'HLT/Exotica/PFHT']
143 hltExoticaPostPFHT.efficiencyProfile = efficiency_strings
145 hltExoticaPostCaloHT = hltExoticaPostProcessor.clone()
146 hltExoticaPostCaloHT.subDirs = [
'HLT/Exotica/CaloHT']
147 hltExoticaPostCaloHT.efficiencyProfile = efficiency_strings
149 hltExoticaPostJetNoBptx = hltExoticaPostProcessor.clone()
150 hltExoticaPostJetNoBptx.subDirs = [
'HLT/Exotica/JetNoBptx']
151 hltExoticaPostJetNoBptx.efficiencyProfile = efficiency_strings
153 hltExoticaPostMuonNoBptx = hltExoticaPostProcessor.clone()
154 hltExoticaPostMuonNoBptx.subDirs = [
'HLT/Exotica/MuonNoBptx']
155 hltExoticaPostMuonNoBptx.efficiencyProfile = efficiency_strings
157 hltExoticaPostDisplacedMuEG = hltExoticaPostProcessor.clone()
158 hltExoticaPostDisplacedMuEG.subDirs = [
'HLT/Exotica/DisplacedMuEG']
159 hltExoticaPostDisplacedMuEG.efficiencyProfile = efficiency_strings
161 hltExoticaPostDisplacedDimuon = hltExoticaPostProcessor.clone()
162 hltExoticaPostDisplacedDimuon.subDirs = [
'HLT/Exotica/DisplacedDimuon']
163 hltExoticaPostDisplacedDimuon.efficiencyProfile = efficiency_strings
165 hltExoticaPostDisplacedL2Dimuon = hltExoticaPostProcessor.clone()
166 hltExoticaPostDisplacedL2Dimuon.subDirs = [
'HLT/Exotica/DisplacedL2Dimuon']
167 hltExoticaPostDisplacedL2Dimuon.efficiencyProfile = efficiency_strings
169 hltExoticaPostMonojet = hltExoticaPostProcessor.clone()
170 hltExoticaPostMonojet.subDirs = [
'HLT/Exotica/Monojet']
171 hltExoticaPostMonojet.efficiencyProfile = efficiency_strings
173 hltExoticaPostMonojetBackup = hltExoticaPostProcessor.clone()
174 hltExoticaPostMonojetBackup.subDirs = [
'HLT/Exotica/MonojetBackup']
175 hltExoticaPostMonojetBackup.efficiencyProfile = efficiency_strings
177 hltExoticaPostPureMET = hltExoticaPostProcessor.clone()
178 hltExoticaPostPureMET.subDirs = [
'HLT/Exotica/PureMET']
179 hltExoticaPostPureMET.efficiencyProfile = efficiency_strings
181 hltExoticaPostMETplusTrack = hltExoticaPostProcessor.clone()
182 hltExoticaPostMETplusTrack.subDirs = [
'HLT/Exotica/METplusTrack']
183 hltExoticaPostMETplusTrack.efficiencyProfile = efficiency_strings
185 hltExoticaDisplacedDimuonDijet = hltExoticaPostProcessor.clone()
186 hltExoticaDisplacedDimuonDijet.subDirs = [
'HLT/Exotica/DisplacedDimuonDijet']
187 hltExoticaDisplacedDimuonDijet.efficiencyProfile = efficiency_strings
189 hltExoticaEleMu = hltExoticaPostProcessor.clone()
190 hltExoticaEleMu.subDirs = [
'HLT/Exotica/EleMu']
191 hltExoticaEleMu.efficiencyProfile = efficiency_strings
193 hltExoticaPhotonMET = hltExoticaPostProcessor.clone()
194 hltExoticaPhotonMET.subDirs = [
'HLT/Exotica/PhotonMET']
195 hltExoticaPhotonMET.efficiencyProfile = efficiency_strings
197 hltExoticaHTDisplacedJets = hltExoticaPostProcessor.clone()
198 hltExoticaHTDisplacedJets.subDirs = [
'HLT/Exotica/HTDisplacedJets']
199 hltExoticaHTDisplacedJets.efficiencyProfile = efficiency_strings
201 hltExoticaDSTJets = hltExoticaPostProcessor.clone()
202 hltExoticaDSTJets.subDirs = [
'HLT/Exotica/DSTJets']
203 hltExoticaDSTJets.efficiencyProfile = efficiency_strings
205 hltExoticaDSTMuons = hltExoticaPostProcessor.clone()
206 hltExoticaDSTMuons.subDirs = [
'HLT/Exotica/DSTMuons']
207 hltExoticaDSTMuons.efficiencyProfile = efficiency_strings
209 hltExoticaPostProcessors = cms.Sequence(
211 hltExoticaPostLowPtTrimuon +
213 hltExoticaPostHighPtDimuon +
214 hltExoticaPostHighPtDielectron +
215 hltExoticaPostLowPtDimuon +
216 hltExoticaPostLowPtDielectron +
218 hltExoticaPostHighPtElectron +
219 hltExoticaPostLowPtElectron +
221 hltExoticaPostHighPtPhoton +
222 hltExoticaPostDiPhoton +
225 hltExoticaPostCaloHT +
227 hltExoticaPostJetNoBptx +
228 hltExoticaPostMuonNoBptx +
230 hltExoticaPostDisplacedMuEG +
231 hltExoticaPostDisplacedDimuon +
232 hltExoticaPostDisplacedL2Dimuon +
234 hltExoticaPostMonojet +
235 hltExoticaPostMonojetBackup +
236 hltExoticaPostPureMET +
237 hltExoticaPostMETplusTrack +
238 hltExoticaDisplacedDimuonDijet +
240 hltExoticaPhotonMET +
241 hltExoticaHTDisplacedJets +
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