1 import FWCore.ParameterSet.Config
as cms
6 unpackedPatTrigger = cms.EDProducer(
"PATTriggerObjectStandAloneUnpacker",
7 patTriggerObjectsStandAlone = cms.InputTag(
'slimmedPatTrigger'),
8 triggerResults = cms.InputTag(
'TriggerResults::HLT'),
9 unpackFilterLabels = cms.bool(
True)
13 triggerObjectTable = cms.EDProducer(
"TriggerObjectTableProducer",
14 name= cms.string(
"TrigObj"),
15 src = cms.InputTag(
"unpackedPatTrigger"),
16 l1EG = cms.InputTag(
"caloStage2Digis",
"EGamma"),
17 l1Sum = cms.InputTag(
"caloStage2Digis",
"EtSum"),
18 l1Jet = cms.InputTag(
"caloStage2Digis",
"Jet"),
19 l1Muon = cms.InputTag(
"gmtStage2Digis",
"Muon"),
20 l1Tau = cms.InputTag(
"caloStage2Digis",
"Tau"),
21 selections = cms.VPSet(
23 name = cms.string(
"Electron (PixelMatched e/gamma)"),
25 sel = cms.string(
"type(92) && pt > 7 && coll('hltEgammaCandidates') && filter('*PixelMatchFilter')"),
26 l1seed = cms.string(
"type(-98)"), l1deltaR = cms.double(0.3),
28 skipObjectsNotPassingQualityBits = cms.bool(
True),
29 qualityBits = cms.string(
30 "filter('*CaloIdLTrackIdLIsoVL*TrackIso*Filter') + " \
31 "2*filter('hltEle*WPTight*TrackIsoFilter*') + " \
32 "4*filter('hltEle*WPLoose*TrackIsoFilter') + " \
33 "8*filter('*OverlapFilter*IsoEle*PFTau*') + " \
34 "16*filter('hltEle*Ele*CaloIdLTrackIdLIsoVL*Filter') + " \
35 "32*filter('hltMu*TrkIsoVVL*Ele*CaloIdLTrackIdLIsoVL*Filter*') + " \
36 "64*filter('hlt*OverlapFilterIsoEle*PFTau*') + " \
37 "128*filter('hltEle*Ele*Ele*CaloIdLTrackIdLDphiLeg*Filter') + " \
38 "256*max(filter('hltL3fL1Mu*DoubleEG*Filtered*'),filter('hltMu*DiEle*CaloIdLTrackIdLElectronleg*Filter')) + " \
39 "512*max(filter('hltL3fL1DoubleMu*EG*Filter*'),filter('hltDiMu*Ele*CaloIdLTrackIdLElectronleg*Filter')) + " \
40 "1024*min(filter('hltEle32L1DoubleEGWPTightGsfTrackIsoFilter'),filter('hltEGL1SingleEGOrFilter')) + " \
41 "2048*filter('hltEle*CaloIdVTGsfTrkIdTGsfDphiFilter') + " \
42 "4096*path('HLT_Ele*PFJet*') + " \
43 "8192*max(filter('hltEG175HEFilter'),filter('hltEG200HEFilter'))"),
44 qualityBitsDoc = cms.string(
"1 = CaloIdL_TrackIdL_IsoVL, 2 = 1e (WPTight), 4 = 1e (WPLoose), 8 = OverlapFilter PFTau, 16 = 2e, 32 = 1e-1mu, 64 = 1e-1tau, 128 = 3e, 256 = 2e-1mu, 512 = 1e-2mu, 1024 = 1e (32_L1DoubleEG_AND_L1SingleEGOr), 2048 = 1e (CaloIdVT_GsfTrkIdT), 4096 = 1e (PFJet), 8192 = 1e (Photon175_OR_Photon200)"),
47 name = cms.string(
"Photon"),
49 sel = cms.string(
"type(92) && pt > 20 && coll('hltEgammaCandidates')"),
50 l1seed = cms.string(
"type(-98)"), l1deltaR = cms.double(0.3),
52 skipObjectsNotPassingQualityBits = cms.bool(
True),
53 qualityBits = cms.string(
54 "filter('hltEG33L1EG26HEFilter') + " \
55 "2*filter('hltEG50HEFilter') + " \
56 "4*filter('hltEG75HEFilter') + " \
57 "8*filter('hltEG90HEFilter') + " \
58 "16*filter('hltEG120HEFilter') + " \
59 "32*filter('hltEG150HEFilter') + " \
60 "64*filter('hltEG175HEFilter') + " \
61 "128*filter('hltEG200HEFilter') + " \
62 "256*filter('hltHtEcal800') + " \
63 "512*filter('hltEG110EBTightIDTightIsoTrackIsoFilter') + " \
64 "1024*filter('hltEG120EBTightIDTightIsoTrackIsoFilter') + " \
65 "2048*filter('hltMu17Photon30IsoCaloIdPhotonlegTrackIsoFilter')"),
66 qualityBitsDoc = cms.string(
"Single Photon filters: 1 = hltEG33L1EG26HEFilter, 2 = hltEG50HEFilter, 4 = hltEG75HEFilter, 8 = hltEG90HEFilter, 16 = hltEG120HEFilter, 32 = hltEG150HEFilter, 64 = hltEG175HEFilter, 128 = hltEG200HEFilter, 256 = hltHtEcal800, 512 = hltEG110EBTightIDTightIsoTrackIsoFilter, 1024 = hltEG120EBTightIDTightIsoTrackIsoFilter, 2048 = 1mu-1photon"),
69 name = cms.string(
"Muon"),
71 sel = cms.string(
"type(83) && pt > 5 && (coll('hltIterL3MuonCandidates') || (pt > 45 && coll('hltHighPtTkMuonCands')) || (pt > 95 && coll('hltOldL3MuonCandidates')))"),
72 l1seed = cms.string(
"type(-81)"), l1deltaR = cms.double(0.5),
73 l2seed = cms.string(
"type(83) && coll('hltL2MuonCandidates')"), l2deltaR = cms.double(0.3),
74 skipObjectsNotPassingQualityBits = cms.bool(
True),
75 qualityBits = cms.string(
76 "max(filter('*RelTrkIsoVVLFiltered0p4'),filter('*RelTrkIsoVVLFiltered')) + " \
77 "2*max(max(filter('hltL3crIso*IsoFiltered0p07'),filter('hltL3crIso*IsoFiltered0p08')),filter('hltL3crIso*IsoFiltered')) + " \
78 "4*filter('*OverlapFilterIsoMu*PFTau*') + " \
79 "8*max(max(max(filter('hltL3crIsoL1*SingleMu*IsoFiltered0p07'),filter('hltL3crIsoL1sMu*IsoFiltered0p07')),max(filter('hltL3crIsoL1*SingleMu*IsoFiltered0p08'),filter('hltL3crIsoL1sMu*IsoFiltered0p08'))),max(filter('hltL3crIsoL1*SingleMu*IsoFiltered'),filter('hltL3crIsoL1sMu*IsoFiltered'))) + " \
80 "16*filter('hltDiMuon*Filtered*') + " \
81 "32*filter('hltMu*TrkIsoVVL*Ele*CaloIdLTrackIdLIsoVL*Filter*') + " \
82 "64*filter('hlt*OverlapFilterIsoMu*PFTau*') + " \
83 "128*filter('hltL3fL1TripleMu*') + " \
84 "256*max(filter('hltL3fL1DoubleMu*EG*Filtered*'),filter('hltDiMu*Ele*CaloIdLTrackIdLElectronleg*Filter')) + " \
85 "512*max(filter('hltL3fL1Mu*DoubleEG*Filtered*'),filter('hltMu*DiEle*CaloIdLTrackIdLElectronleg*Filter')) + " \
86 "1024*max(filter('hltL3fL1sMu*L3Filtered50*'),filter('hltL3fL1sMu*TkFiltered50*')) + " \
87 "2048*max(filter('hltL3fL1sMu*L3Filtered100*'),filter('hltL3fL1sMu*TkFiltered100*')) + " \
88 "4096*filter('hltMu17Photon30IsoCaloIdMuonlegL3Filtered17Q')"),
89 qualityBitsDoc = cms.string(
"1 = TrkIsoVVL, 2 = Iso, 4 = OverlapFilter PFTau, 8 = 1mu, 16 = 2mu, 32 = 1mu-1e, 64 = 1mu-1tau, 128 = 3mu, 256 = 2mu-1e, 512 = 1mu-2e, 1024 = 1mu (Mu50), 2048 = 1mu (Mu100), 4096 = 1mu-1photon"),
92 name = cms.string(
"Tau"),
94 sel = cms.string(
"type(84) && pt > 5 && coll('*Tau*') && ( filter('*LooseChargedIso*') || filter('*MediumChargedIso*') || filter('*DeepTau*') || filter('*TightChargedIso*') || filter('*TightOOSCPhotons*') || filter('hltL2TauIsoFilter') || filter('*OverlapFilterIsoMu*') || filter('*OverlapFilterIsoEle*') || filter('*L1HLTMatched*') || filter('*Dz02*') || filter('*DoublePFTau*') || filter('*SinglePFTau*') || filter('hlt*SelectedPFTau') || filter('*DisplPFTau*') )"),
95 l1seed = cms.string(
"type(-100)"), l1deltaR = cms.double(0.3),
96 l2seed = cms.string(
"type(84) && coll('hltL2TauJetsL1IsoTauSeeded')"), l2deltaR = cms.double(0.3),
97 skipObjectsNotPassingQualityBits = cms.bool(
True),
98 qualityBits = cms.string(
99 "filter('*LooseChargedIso*') + " \
100 "2*filter('*MediumChargedIso*') + " \
101 "4*filter('*TightChargedIso*') + " \
102 "8*filter('*DeepTau*') + " \
103 "16*filter('*TightOOSCPhotons*') + " \
104 "32*filter('*Hps*') + " \
105 "64*filter('hlt*DoublePFTau*TrackPt1*ChargedIsolation*Dz02*') + " \
106 "128*filter('hlt*DoublePFTau*DeepTau*L1HLTMatched') + " \
107 "256*filter('hlt*OverlapFilterIsoEle*WPTightGsf*PFTau*') + " \
108 "512*filter('hlt*OverlapFilterIsoMu*PFTau*') + " \
109 "1024*filter('hlt*SelectedPFTau*L1HLTMatched') + " \
110 "2048*filter('hlt*DoublePFTau*TrackPt1*ChargedIso*') + " \
111 "4096*filter('hlt*DoublePFTau*Track*ChargedIso*AgainstMuon') + " \
112 "8192*filter('hltHpsSinglePFTau*HLTMatched') + " \
113 "16384*filter('hltHpsOverlapFilterDeepTauDoublePFTau*PFJet*') + " \
114 "32768*filter('hlt*Double*ChargedIsoDisplPFTau*Dxy*') + " \
115 "65536*filter('*Monitoring') + " \
116 "131072*filter('*Reg') + " \
117 "262144*filter('*L1Seeded') + " \
118 "524288*filter('*1Prong')"),
119 qualityBitsDoc = cms.string(
"1 = LooseChargedIso, 2 = MediumChargedIso, 4 = TightChargedIso, 8 = DeepTau, 16 = TightID OOSC photons, 32 = HPS, 64 = charged iso di-tau, 128 = deeptau di-tau, 256 = e-tau, 512 = mu-tau, 1024 = single-tau/tau+MET, 2048 = run 2 VBF+ditau, 4096 = run 3 VBF+ditau, 8192 = run 3 double PF jets + ditau, 16384 = di-tau + PFJet, 32768 = Displaced Tau, 65536 = Monitoring, 131072 = regional paths, 262144 = L1 seeded paths, 524288 = 1 prong tau paths"),
122 name = cms.string(
"BoostedTau"),
123 id = cms.int32(1515),
124 sel = cms.string(
"type(85) && pt > 120 && coll('hltAK8PFJetsCorrected') && filter('hltAK8SinglePFJets*SoftDropMass40*ParticleNetTauTau')"),
125 l1seed = cms.string(
"type(-99)"), l1deltaR = cms.double(0.3),
126 l2seed = cms.string(
"type(85) && coll('hltAK8CaloJetsCorrectedIDPassed')"), l2deltaR = cms.double(0.3),
127 skipObjectsNotPassingQualityBits = cms.bool(
True),
128 qualityBits = cms.string(
129 "filter('hltAK8SinglePFJets*SoftDropMass40*ParticleNetTauTau')" 131 qualityBitsDoc = cms.string(
"Bit 0 for HLT_AK8PFJetX_SoftDropMass40_PFAK8ParticleNetTauTau0p30"),
134 name = cms.string(
"Jet"),
136 sel = cms.string(
"( type(0) || type(85) || type(86) || type(-99) )"),
137 l1seed = cms.string(
"type(-99)"), l1deltaR = cms.double(0.3),
138 l2seed = cms.string(
"type(85) || type(86) || type(-99)"), l2deltaR = cms.double(0.3),
139 skipObjectsNotPassingQualityBits = cms.bool(
True),
140 qualityBits = cms.string(
141 "1 * filter('hlt4PixelOnlyPFCentralJetTightIDPt20') + " \
142 "2 * filter('hlt3PixelOnlyPFCentralJetTightIDPt30') + " \
143 "4 * filter('hltPFJetFilterTwoC30') + " \
144 "8 * filter('hlt4PFCentralJetTightIDPt30') + " \
145 "16 * filter('hlt4PFCentralJetTightIDPt35') + " \
146 "32 * filter('hltQuadCentralJet30') + " \
147 "64 * filter('hlt2PixelOnlyPFCentralJetTightIDPt40') + " \
148 "128 * max(filter('hltL1sTripleJet1008572VBFIorHTTIorDoubleJetCIorSingleJet'), max(filter('hltL1sTripleJet1058576VBFIorHTTIorDoubleJetCIorSingleJet'), filter('hltL1sTripleJetVBFIorHTTIorSingleJet') ) ) + " \
149 "256 * filter('hlt3PFCentralJetTightIDPt40') + " \
150 "512 * filter('hlt3PFCentralJetTightIDPt45') + " \
151 "1024 * max(filter('hltL1sQuadJetC60IorHTT380IorHTT280QuadJetIorHTT300QuadJet'), filter('hltL1sQuadJetC50to60IorHTT280to500IorHTT250to340QuadJet') ) + " \
152 "2048 * filter('hltBTagCaloDeepCSVp17Double') + " \
153 "4096 * filter('hltPFCentralJetLooseIDQuad30') + " \
154 "8192 * filter('hlt1PFCentralJetLooseID75') + " \
155 "16384 * filter('hlt2PFCentralJetLooseID60') + " \
156 "32768 * filter('hlt3PFCentralJetLooseID45') + " \
157 "65536 * filter('hlt4PFCentralJetLooseID40') + " \
158 "131072 * filter('hltBTagPFDeepCSV4p5Triple') + " \
159 "262144 * filter('hltHpsOverlapFilterDeepTauDoublePFTau*PFJet*') + " \
160 "524288 * filter('*CrossCleaned*MediumDeepTauDitauWPPFTau*') + " \
161 "1048576 * filter('*CrossCleanedUsingDiJetCorrChecker*') + " \
162 "2097152 * filter('hltHpsOverlapFilterDeepTauPFTau*PFJet*') + " \
163 "4194304 * filter('hlt2PFCentralJetTightIDPt50') + " \
164 "8388608 * filter('hlt1PixelOnlyPFCentralJetTightIDPt60') + " \
165 "16777216 * filter('hlt1PFCentralJetTightIDPt70') + " \
166 "33554432 * filter('hltBTagPFDeepJet1p5Single') + " \
167 "67108864 * filter('hltBTagPFDeepJet4p5Triple') + " \
168 "134217728 * max(filter('hltBTagCentralJetPt35PFParticleNet2BTagSum0p65'), max(filter('hltBTagCentralJetPt30PFParticleNet2BTagSum0p65'), filter('hltPFJetTwoC30PFBTagParticleNet2BTagSum0p65') ) ) + " \
169 "268435456 * filter('hltBTagPFDeepCSV1p5Single')" 171 qualityBitsDoc = cms.string(
172 "Jet bits: bit 0 for hlt4PixelOnlyPFCentralJetTightIDPt20, bit 1 for hlt3PixelOnlyPFCentralJetTightIDPt30, bit 2 for hltPFJetFilterTwoC30, bit 3 for hlt4PFCentralJetTightIDPt30," \
173 " bit 4 for hlt4PFCentralJetTightIDPt35, bit 5 for hltQuadCentralJet30, bit 6 for hlt2PixelOnlyPFCentralJetTightIDPt40," \
174 " bit 7 for hltL1sTripleJet1008572VBFIorHTTIorDoubleJetCIorSingleJet' or hltL1sTripleJet1058576VBFIorHTTIorDoubleJetCIorSingleJet' or 'hltL1sTripleJetVBFIorHTTIorSingleJet," \
175 " bit 8 for hlt3PFCentralJetTightIDPt40, bit 9 for hlt3PFCentralJetTightIDPt45," \
176 " bit 10 for hltL1sQuadJetC60IorHTT380IorHTT280QuadJetIorHTT300QuadJet' or 'hltL1sQuadJetC50to60IorHTT280to500IorHTT250to340QuadJet," \
177 " bit 11 for hltBTagCaloDeepCSVp17Double, bit 12 for hltPFCentralJetLooseIDQuad30, bit 13 for hlt1PFCentralJetLooseID75," \
178 " bit 14 for hlt2PFCentralJetLooseID60, bit 15 for hlt3PFCentralJetLooseID45, bit 16 for hlt4PFCentralJetLooseID40," \
179 " bit 17 for hltBTagPFDeepCSV4p5Triple, bit 18 for (Double tau + jet) hltHpsOverlapFilterDeepTauDoublePFTau*PFJet*," \
180 " bit 19 for (VBF cross-cleaned from medium deeptau PFTau) *CrossCleaned*MediumDeepTauDitauWPPFTau*," \
181 " bit 20 for (VBF cross-cleaned using dijet correlation checker) *CrossCleanedUsingDiJetCorrChecker*," \
182 " bit 21 for (monitoring muon + tau + jet) hltHpsOverlapFilterDeepTauPFTau*PFJet*," \
183 " bit 22 for hlt2PFCentralJetTightIDPt50, bit 23 for hlt1PixelOnlyPFCentralJetTightIDPt60, bit 24 for hlt1PFCentralJetTightIDPt70," \
184 " bit 25 for hltBTagPFDeepJet1p5Single, bit 26 for hltBTagPFDeepJet4p5Triple," \
185 " bit 27 for hltBTagCentralJetPt35PFParticleNet2BTagSum0p65 or hltBTagCentralJetPt30PFParticleNet2BTagSum0p65 or hltPFJetTwoC30PFBTagParticleNet2BTagSum0p65," \
186 " bit 28 for hltBTagPFDeepCSV1p5Single")
189 name = cms.string(
"FatJet"),
191 sel = cms.string(
"type(85) && pt > 120 && coll('hltAK8PFJetsCorrected')"),
192 l1seed = cms.string(
"type(-99)"), l1deltaR = cms.double(0.3),
193 l2seed = cms.string(
"type(85) && coll('hltAK8CaloJetsCorrectedIDPassed')"), l2deltaR = cms.double(0.3),
194 skipObjectsNotPassingQualityBits = cms.bool(
True),
195 qualityBits = cms.string(
"0"), qualityBitsDoc = cms.string(
""),
198 name = cms.string(
"MET"),
200 sel = cms.string(
"type(87) && pt > 30 && coll('hltPFMETProducer')"),
201 l1seed = cms.string(
"type(-87) && coll('L1ETM')"), l1deltaR = cms.double(9999),
202 l1seed_2 = cms.string(
"type(-87) && coll('L1ETMHF')"), l1deltaR_2 = cms.double(9999),
203 l2seed = cms.string(
"type( 87) && coll('hltMetClean')"), l2deltaR = cms.double(9999),
204 skipObjectsNotPassingQualityBits = cms.bool(
True),
205 qualityBits = cms.string(
"0"), qualityBitsDoc = cms.string(
""),
208 name = cms.string(
"HT"),
210 sel = cms.string(
"type(89) || type(-89)"),
211 l1seed = cms.string(
"type(-89) && coll('L1HTT')"), l1deltaR = cms.double(9999),
212 l1seed_2 = cms.string(
"type(-89) && coll('L1HTTHF')"), l1deltaR_2 = cms.double(9999),
213 l2seed = cms.string(
"type(89) && coll('hltHtMhtJet30')"), l2deltaR = cms.double(9999),
214 skipObjectsNotPassingQualityBits = cms.bool(
True),
215 qualityBits = cms.string(
216 "1 * filter('hltL1sTripleJetVBFIorHTTIorDoubleJetCIorSingleJet') + " \
217 "2 * max(filter('hltL1sQuadJetC50IorQuadJetC60IorHTT280IorHTT300IorHTT320IorTripleJet846848VBFIorTripleJet887256VBFIorTripleJet927664VBF'), filter('hltL1sQuadJetCIorTripleJetVBFIorHTT')) + " \
218 "4 * max(filter('hltL1sQuadJetC60IorHTT380IorHTT280QuadJetIorHTT300QuadJet'), filter('hltL1sQuadJetC50to60IorHTT280to500IorHTT250to340QuadJet')) + " \
219 "8 * max(filter('hltCaloQuadJet30HT300'), filter('hltCaloQuadJet30HT320')) + " \
220 "16 * max(filter('hltPFCentralJetsLooseIDQuad30HT300'), filter('hltPFCentralJetsLooseIDQuad30HT330'))" 222 qualityBitsDoc = cms.string(
223 "HT bits: bit 0 for hltL1sTripleJetVBFIorHTTIorDoubleJetCIorSingleJet, bit 1 for hltL1sQuadJetC50IorQuadJetC60IorHTT280IorHTT300IorHTT320IorTripleJet846848VBFIorTripleJet887256VBFIorTripleJet927664VBF or hltL1sQuadJetCIorTripleJetVBFIorHTT, " \
224 "bit 2 for hltL1sQuadJetC60IorHTT380IorHTT280QuadJetIorHTT300QuadJet or hltL1sQuadJetC50to60IorHTT280to500IorHTT250to340QuadJet, " \
225 "bit 3 for hltCaloQuadJet30HT300 or hltCaloQuadJet30HT320, bit 4 for hltPFCentralJetsLooseIDQuad30HT300 or hltPFCentralJetsLooseIDQuad30HT330" 229 name = cms.string(
"MHT"),
231 sel = cms.string(
"type(90)"),
232 l1seed = cms.string(
"type(-90) && coll('L1HTM')"), l1deltaR = cms.double(9999),
233 l1seed_2 = cms.string(
"type(-90) && coll('L1HTMHF')"), l1deltaR_2 = cms.double(9999),
234 l2seed = cms.string(
"type(90) && coll('hltHtMhtJet30')"), l2deltaR = cms.double(9999),
235 skipObjectsNotPassingQualityBits = cms.bool(
True),
236 qualityBits = cms.string(
237 "1 * max(filter('hltCaloQuadJet30HT300'), filter('hltCaloQuadJet30HT320')) + " \
238 "2 * max(filter('hltPFCentralJetsLooseIDQuad30HT300'), filter('hltPFCentralJetsLooseIDQuad30HT330'))" 240 qualityBitsDoc = cms.string
242 "MHT bits: bit 0 for hltCaloQuadJet30HT300 or hltCaloQuadJet30HT320, bit 1 for hltPFCentralJetsLooseIDQuad30HT300 or hltPFCentralJetsLooseIDQuad30HT330" 252 selections2016 = copy.deepcopy(triggerObjectTable.selections)
253 for sel
in selections2016:
255 sel.sel = cms.string(
"type(83) && pt > 5 && (coll('hlt*L3MuonCandidates') || coll('hlt*TkMuonCands') || coll('hlt*TrkMuonCands'))")
256 sel.qualityBits = cms.string(
"filter('*RelTrkIso*Filtered0p4') + 2*filter('hltL3cr*IsoFiltered0p09') + 4*filter('*OverlapFilter*IsoMu*PFTau*') + 8*filter('hltL3f*IsoFiltered0p09') + 1024*max(filter('hltL3fL1sMu*L3Filtered50*'),filter('hltL3fL1sMu*TkFiltered50*'))")
257 sel.qualityBitsDoc = cms.string(
"1 = TrkIsoVVL, 2 = Iso, 4 = OverlapFilter PFTau, 8 = IsoTkMu, 1024 = 1mu (Mu50)")
258 elif sel.name==
'Tau':
259 sel.sel = cms.string(
"type(84) && pt > 5 && coll('*Tau*') && ( filter('*LooseIso*') || filter('*MediumIso*') || filter('*MediumComb*Iso*') || filter('hltL2TauIsoFilter') || filter('*OverlapFilter*IsoMu*') || filter('*OverlapFilter*IsoEle*') || filter('*L1HLTMatched*') || filter('*Dz02*') )")
260 sel.qualityBits = cms.string(
"(filter('*LooseIso*')-filter('*VLooseIso*'))+2*filter('*Medium*Iso*')+4*filter('*VLooseIso*')+8*0+16*filter('hltL2TauIsoFilter')+32*filter('*OverlapFilter*IsoMu*')+64*filter('*OverlapFilter*IsoEle*')+128*filter('*L1HLTMatched*')+256*filter('*Dz02*')")
261 sel.qualityBitsDoc = cms.string(
"1 = LooseIso, 2 = Medium(Comb)Iso, 4 = VLooseIso, 8 = None, 16 = L2p5 pixel iso, 32 = OverlapFilter IsoMu, 64 = OverlapFilter IsoEle, 128 = L1-HLT matched, 256 = Dz")
263 run2_HLTconditions_2016.toModify(
265 selections = selections2016
268 prefiringweight = cms.EDProducer(
'L1PrefiringWeightProducer',
269 TheMuons = cms.InputTag(
'slimmedMuons'),
270 ThePhotons = cms.InputTag(
'slimmedPhotons'),
271 TheJets = cms.InputTag(
'slimmedJets'),
272 L1Maps = cms.string(
'L1PrefiringMaps.root'),
273 L1MuonParametrizations = cms.string(
'L1MuonPrefiringParametriations.root'),
274 DataEraECAL = cms.string(
'2017BtoF'),
275 DataEraMuon = cms.string(
'2016'),
276 UseJetEMPt = cms.bool(
False),
277 PrefiringRateSystematicUnctyECAL = cms.double(0.2),
278 PrefiringRateSystematicUnctyMuon = cms.double(0.2),
279 JetMaxMuonFraction = cms.double(0.5),
280 mightGet = cms.optional.untracked.vstring
283 (run2_muon_2016 & tracker_apv_vfp30_2016).toModify( prefiringweight, DataEraECAL = cms.string(
"UL2016preVFP"), DataEraMuon = cms.string(
"2016preVFP"))
284 (run2_muon_2016 & ~tracker_apv_vfp30_2016).toModify( prefiringweight, DataEraECAL = cms.string(
"UL2016postVFP"), DataEraMuon = cms.string(
"2016postVFP"))
286 run2_jme_2017.toModify( prefiringweight, DataEraECAL = cms.string(
"UL2017BtoF"), DataEraMuon = cms.string(
"20172018"))
288 run2_muon_2018.toModify( prefiringweight, DataEraECAL = cms.string(
"None"), DataEraMuon = cms.string(
"20172018"))
291 l1PreFiringEventWeightTable = cms.EDProducer(
"GlobalVariablesTableProducer",
292 name = cms.string(
"L1PreFiringWeight"),
293 variables = cms.PSet(
294 Nom =
ExtVar(cms.InputTag(
"prefiringweight:nonPrefiringProb"),
"float", doc =
"L1 pre-firing event correction weight (1-probability)", precision=8),
295 Up =
ExtVar(cms.InputTag(
"prefiringweight:nonPrefiringProbUp"),
"float", doc =
"L1 pre-firing event correction weight (1-probability), up var.", precision=8),
296 Dn =
ExtVar(cms.InputTag(
"prefiringweight:nonPrefiringProbDown"),
"float", doc =
"L1 pre-firing event correction weight (1-probability), down var.", precision=8),
297 Muon_Nom =
ExtVar(cms.InputTag(
"prefiringweight:nonPrefiringProbMuon"),
"float", doc =
"Muon L1 pre-firing event correction weight (1-probability)", precision=8),
298 Muon_SystUp =
ExtVar(cms.InputTag(
"prefiringweight:nonPrefiringProbMuonSystUp"),
"float", doc =
"Muon L1 pre-firing event correction weight (1-probability), up var. syst.", precision=8),
299 Muon_SystDn =
ExtVar(cms.InputTag(
"prefiringweight:nonPrefiringProbMuonSystDown"),
"float", doc =
"Muon L1 pre-firing event correction weight (1-probability), down var. syst.", precision=8),
300 Muon_StatUp =
ExtVar(cms.InputTag(
"prefiringweight:nonPrefiringProbMuonStatUp"),
"float", doc =
"Muon L1 pre-firing event correction weight (1-probability), up var. stat.", precision=8),
301 Muon_StatDn =
ExtVar(cms.InputTag(
"prefiringweight:nonPrefiringProbMuonStatDown"),
"float", doc =
"Muon L1 pre-firing event correction weight (1-probability), down var. stat.", precision=8),
302 ECAL_Nom =
ExtVar(cms.InputTag(
"prefiringweight:nonPrefiringProbECAL"),
"float", doc =
"ECAL L1 pre-firing event correction weight (1-probability)", precision=8),
303 ECAL_Up =
ExtVar(cms.InputTag(
"prefiringweight:nonPrefiringProbECALUp"),
"float", doc =
"ECAL L1 pre-firing event correction weight (1-probability), up var.", precision=8),
304 ECAL_Dn =
ExtVar(cms.InputTag(
"prefiringweight:nonPrefiringProbECALDown"),
"float", doc =
"ECAL L1 pre-firing event correction weight (1-probability), down var.", precision=8),
308 l1bits=cms.EDProducer(
"L1TriggerResultsConverter",
309 src=cms.InputTag(
"gtStage2Digis"),
310 legacyL1=cms.bool(
False),
311 storeUnprefireableBit=cms.bool(
True),
312 src_ext=cms.InputTag(
"simGtExtUnprefireable"))
314 triggerObjectTablesTask = cms.Task( unpackedPatTrigger,triggerObjectTable,l1bits)
316 _triggerObjectTablesTask_withL1PreFiring = triggerObjectTablesTask.copy()
317 _triggerObjectTablesTask_withL1PreFiring.add(prefiringweight,l1PreFiringEventWeightTable)
318 (run2_HLTconditions_2016 | run2_HLTconditions_2017 | run2_HLTconditions_2018).toReplaceWith(triggerObjectTablesTask,_triggerObjectTablesTask_withL1PreFiring)
def ExtVar(tag, valtype, doc=None, precision=-1)