test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
OpenHLT_BJet_cff.py
Go to the documentation of this file.
1 ### Open-HLT includes, modules and paths for b-jet
2 import copy
3 import FWCore.ParameterSet.Config as cms
4 
6 
7 ### lifetime-based b-tag OpenHLT ######################################
8 # L1 filter is skipped
9 # L2 reco sequence is common to all paths, and taken from the global table
10 # L2.5 and L3 sequences are rewritten to bypass selectors and filters
11 
12 # L2.5 reco modules
13 
14 ###### Use corrected jets same as 5E32 Menu
15 BJetinputjetCollection="hltCaloJetCorrected"
16 
17 openHltBLifetimeL25Associator = copy.deepcopy(hltBLifetimeL25AssociatorSingleTop)
18 openHltBLifetimeL25Associator.jets = cms.InputTag(BJetinputjetCollection)
19 
20 openHltBLifetimeL25TagInfos = copy.deepcopy(hltBLifetimeL25TagInfosSingleTop)
21 openHltBLifetimeL25TagInfos.jetTracks = cms.InputTag("openHltBLifetimeL25Associator")
22 
23 openHltBLifetimeL25BJetTags = copy.deepcopy(hltBLifetimeL25BJetTagsSingleTop)
24 openHltBLifetimeL25BJetTags.tagInfos = cms.VInputTag(cms.InputTag("openHltBLifetimeL25TagInfos"))
25 
26 ###### Use corrected jets with L1FastJet PU subtraction
27 BJetinputjetCollectionL1FastJet="hltCaloJetL1FastJetCorrected"
28 
29 openHltBLifetimeL25AssociatorL1FastJet = copy.deepcopy(hltBLifetimeL25AssociatorSingleTop)
30 openHltBLifetimeL25AssociatorL1FastJet.jets = cms.InputTag(BJetinputjetCollectionL1FastJet)
31 
32 openHltBLifetimeL25TagInfosL1FastJet = copy.deepcopy(hltBLifetimeL25TagInfosSingleTop)
33 openHltBLifetimeL25TagInfosL1FastJet.jetTracks = cms.InputTag("openHltBLifetimeL25AssociatorL1FastJet")
34 
35 openHltBLifetimeL25BJetTagsL1FastJet = copy.deepcopy(hltBLifetimeL25BJetTagsSingleTop)
36 openHltBLifetimeL25BJetTagsL1FastJet.tagInfos = cms.VInputTag(cms.InputTag("openHltBLifetimeL25TagInfosL1FastJet"))
37 
38 
39 ###### Use PFJets
40 BJetinputpfjetCollection="hltAntiKT5PFJets"
41 
42 
43 # Modules specific to Single Track TC
44 hltESPTrackCounting3D1st = cms.ESProducer( "TrackCountingESProducer",
45  appendToDataLabel = cms.string( "" ),
46  nthTrack = cms.int32( 1 ),
47  impactParameterType = cms.int32( 0 ),
48  deltaR = cms.double( -1.0 ),
49  maximumDecayLength = cms.double( 5.0 ),
50  maximumDistanceToJetAxis = cms.double( 0.07 ),
51  trackQualityClass = cms.string( "any" )
52  )
53 
54 
55 hltBLifetimeL25BJetTagsSingleTrack = cms.EDProducer( "JetTagProducer",
56  jetTagComputer = cms.string( "hltESPTrackCounting3D1st" ),
57  tagInfos = cms.VInputTag( 'hltBLifetimeL25TagInfosSingleTop' )
58  )
59 
60 
61 hltBLifetimeL3BJetTagsSingleTrack = cms.EDProducer( "JetTagProducer",
62  jetTagComputer = cms.string( "hltESPTrackCounting3D1st" ),
63  tagInfos = cms.VInputTag( 'hltBLifetimeL3TagInfosSingleTop' )
64  )
65 
66 hltBLifetimeL25BJetTagsSingleTrackL1FastJet = cms.EDProducer( "JetTagProducer",
67  jetTagComputer = cms.string( "hltESPTrackCounting3D1st" ),
68  tagInfos = cms.VInputTag( 'openHltBLifetimeL25TagInfosL1FastJet' )
69  )
70 
71 
72 hltBLifetimeL3BJetTagsSingleTrackL1FastJet = cms.EDProducer( "JetTagProducer",
73  jetTagComputer = cms.string( "hltESPTrackCounting3D1st" ),
74  tagInfos = cms.VInputTag( 'openHltBLifetimeL3TagInfosL1FastJet' )
75  )
76 
77 # Single Track TC
78 openHltBLifetimeL25BJetTagsSingleTrack = copy.deepcopy(hltBLifetimeL25BJetTagsSingleTrack)
79 openHltBLifetimeL25BJetTagsSingleTrack.tagInfos = cms.VInputTag(cms.InputTag("openHltBLifetimeL25TagInfos"))
80 
81 openHltBLifetimeL25BJetTagsSingleTrackL1FastJet = copy.deepcopy(hltBLifetimeL25BJetTagsSingleTrackL1FastJet)
82 openHltBLifetimeL25BJetTagsSingleTrackL1FastJet.tagInfos = cms.VInputTag(cms.InputTag("openHltBLifetimeL25TagInfos"))
83 
84 
85 
86 
87 # L2.5 reco sequence for lifetime tagger
88 OpenHLTBLifetimeL25recoSequence = cms.Sequence(
89  HLTDoLocalPixelSequence +
90  HLTRecopixelvertexingSequence +
91  openHltBLifetimeL25Associator +
92  openHltBLifetimeL25TagInfos +
93  openHltBLifetimeL25AssociatorL1FastJet +
94  openHltBLifetimeL25TagInfosL1FastJet +
95  openHltBLifetimeL25BJetTagsSingleTrack +
96  openHltBLifetimeL25BJetTagsSingleTrackL1FastJet +
97  openHltBLifetimeL25BJetTags +
98  openHltBLifetimeL25BJetTagsL1FastJet )
99 
100 # L3 reco modules
101 openHltBLifetimeRegionalPixelSeedGenerator = copy.deepcopy(hltBLifetimeRegionalPixelSeedGeneratorSingleTop)
102 openHltBLifetimeRegionalPixelSeedGenerator.RegionFactoryPSet.RegionPSet.JetSrc = cms.InputTag(BJetinputjetCollection)
103 
104 openHltBLifetimeRegionalCkfTrackCandidates = copy.deepcopy(hltBLifetimeRegionalCkfTrackCandidatesSingleTop)
105 openHltBLifetimeRegionalCkfTrackCandidates.src = cms.InputTag("openHltBLifetimeRegionalPixelSeedGenerator")
106 
107 openHltBLifetimeRegionalCtfWithMaterialTracks = copy.deepcopy(hltBLifetimeRegionalCtfWithMaterialTracksSingleTop)
108 openHltBLifetimeRegionalCtfWithMaterialTracks.src = cms.InputTag("openHltBLifetimeRegionalCkfTrackCandidates")
109 
110 openHltBLifetimeL3Associator = copy.deepcopy(hltBLifetimeL3AssociatorSingleTop)
111 openHltBLifetimeL3Associator.jets = cms.InputTag(BJetinputjetCollection)
112 openHltBLifetimeL3Associator.tracks = cms.InputTag("openHltBLifetimeRegionalCtfWithMaterialTracks")
113 
114 openHltBLifetimeL3TagInfos = copy.deepcopy(hltBLifetimeL3TagInfosSingleTop)
115 openHltBLifetimeL3TagInfos.jetTracks = cms.InputTag("openHltBLifetimeL3Associator")
116 
117 openHltBLifetimeL3BJetTags = copy.deepcopy(hltBLifetimeL3BJetTagsSingleTop)
118 openHltBLifetimeL3BJetTags.tagInfos = cms.VInputTag(cms.InputTag("openHltBLifetimeL3TagInfos"))
119 
120 # L1FastJet
121 openHltBLifetimeRegionalPixelSeedGeneratorL1FastJet = copy.deepcopy(hltBLifetimeRegionalPixelSeedGeneratorSingleTop)
122 openHltBLifetimeRegionalPixelSeedGeneratorL1FastJet.RegionFactoryPSet.RegionPSet.JetSrc = cms.InputTag(BJetinputjetCollectionL1FastJet)
123 
124 openHltBLifetimeRegionalCkfTrackCandidatesL1FastJet = copy.deepcopy(hltBLifetimeRegionalCkfTrackCandidatesSingleTop)
125 openHltBLifetimeRegionalCkfTrackCandidatesL1FastJet.src = cms.InputTag("openHltBLifetimeRegionalPixelSeedGeneratorL1FastJet")
126 
127 openHltBLifetimeRegionalCtfWithMaterialTracksL1FastJet = copy.deepcopy(hltBLifetimeRegionalCtfWithMaterialTracksSingleTop)
128 openHltBLifetimeRegionalCtfWithMaterialTracksL1FastJet.src = cms.InputTag("openHltBLifetimeRegionalCkfTrackCandidatesL1FastJet")
129 
130 openHltBLifetimeL3AssociatorL1FastJet = copy.deepcopy(hltBLifetimeL3AssociatorSingleTop)
131 openHltBLifetimeL3AssociatorL1FastJet.jets = cms.InputTag(BJetinputjetCollectionL1FastJet)
132 openHltBLifetimeL3AssociatorL1FastJet.tracks = cms.InputTag("openHltBLifetimeRegionalCtfWithMaterialTracksL1FastJet")
133 
134 openHltBLifetimeL3TagInfosL1FastJet = copy.deepcopy(hltBLifetimeL3TagInfosSingleTop)
135 openHltBLifetimeL3TagInfosL1FastJet.jetTracks = cms.InputTag("openHltBLifetimeL3AssociatorL1FastJet")
136 
137 openHltBLifetimeL3BJetTagsL1FastJet = copy.deepcopy(hltBLifetimeL3BJetTagsSingleTop)
138 openHltBLifetimeL3BJetTagsL1FastJet.tagInfos = cms.VInputTag(cms.InputTag("openHltBLifetimeL3TagInfosL1FastJet"))
139 
140 #PF jets
141 openHltBLifetimeL3AssociatorPF = copy.deepcopy(hltBLifetimeL3AssociatorSingleTop)
142 openHltBLifetimeL3AssociatorPF.jets = cms.InputTag(BJetinputpfjetCollection)
143 openHltBLifetimeL3AssociatorPF.tracks = cms.InputTag("hltIter4Merged")
144 openHltBLifetimeL3AssociatorPF.pvSrc = cms.InputTag("hltPixelVertices")
145 
146 openHltBLifetimeL3TagInfosPF = copy.deepcopy(hltBLifetimeL3TagInfosSingleTop)
147 openHltBLifetimeL3TagInfosPF.jetTracks = cms.InputTag("openHltBLifetimeL3AssociatorPF")
148 
149 openHltBLifetimeL3BJetTagsPF = copy.deepcopy(hltBLifetimeL3BJetTagsSingleTop)
150 openHltBLifetimeL3BJetTagsPF.tagInfos = cms.VInputTag(cms.InputTag("openHltBLifetimeL3TagInfosPF"))
151 
152 # Single Track TC
153 openHltBLifetimeL3BJetTagsSingleTrack = copy.deepcopy(hltBLifetimeL3BJetTagsSingleTrack)
154 openHltBLifetimeL3BJetTagsSingleTrack.tagInfos = cms.VInputTag(cms.InputTag("openHltBLifetimeL3TagInfos"))
155 
156 openHltBLifetimeL3BJetTagsSingleTrackL1FastJet = copy.deepcopy(hltBLifetimeL3BJetTagsSingleTrackL1FastJet)
157 openHltBLifetimeL3BJetTagsSingleTrackL1FastJet.tagInfos = cms.VInputTag(cms.InputTag("openHltBLifetimeL3TagInfosL1FastJet"))
158 
159 # L3 reco sequence for lifetime tagger
160 OpenHLTBLifetimeL3recoSequence = cms.Sequence(
161  HLTDoLocalPixelSequence +
162  HLTRecopixelvertexingSequence +
163  HLTDoLocalStripSequence +
164  HLTPFReconstructionSequence +
165  openHltBLifetimeRegionalPixelSeedGenerator +
166  openHltBLifetimeRegionalCkfTrackCandidates +
167  openHltBLifetimeRegionalCtfWithMaterialTracks +
168  openHltBLifetimeRegionalPixelSeedGeneratorL1FastJet +
169  openHltBLifetimeRegionalCkfTrackCandidatesL1FastJet +
170  openHltBLifetimeRegionalCtfWithMaterialTracksL1FastJet +
171  openHltBLifetimeL3Associator +
172  openHltBLifetimeL3TagInfos +
173  openHltBLifetimeL3AssociatorL1FastJet +
174  openHltBLifetimeL3TagInfosL1FastJet +
175  openHltBLifetimeL3AssociatorPF +
176  openHltBLifetimeL3TagInfosPF +
177  openHltBLifetimeL3BJetTagsSingleTrack +
178  openHltBLifetimeL3BJetTagsSingleTrackL1FastJet +
179  openHltBLifetimeL3BJetTags +
180  openHltBLifetimeL3BJetTagsL1FastJet +
181  openHltBLifetimeL3BJetTagsPF )
182 
183 ### soft-muon-based b-tag OpenHLT (ideal, start up, and performance meas.) ####
184 # L1 filter is skipped
185 # L2 reco sequence is common to all paths, and taken from the global table
186 # L2.5 and L3 sequences are rewritten to bypass selectors and filters
187 
188 openHltBSoftmuonL25TagInfos = copy.deepcopy(hltBSoftMuonDiJet20L25TagInfos)
189 openHltBSoftmuonL25TagInfos.jets = cms.InputTag(BJetinputjetCollection)
190 
191 #### BTagMu paths make use of SoftMuonByDR both at L2.5 and L3
192 openHltBSoftmuonL25BJetTags = copy.deepcopy(hltBSoftMuonDiJet20L25BJetTagsByDR)
193 openHltBSoftmuonL25BJetTags.tagInfos = cms.VInputTag(cms.InputTag("openHltBSoftmuonL25TagInfos"))
194 
195 openHltBSoftmuonL3TagInfos = copy.deepcopy(hltBSoftMuonDiJet20Mu5SelL3TagInfos)
196 openHltBSoftmuonL3TagInfos.jets = cms.InputTag(BJetinputjetCollection)
197 openHltBSoftmuonL3TagInfos.leptons = cms.InputTag("hltL3Muons") #Feed the entire L3Muons not the filtered ones
198 
199 #### BTagMu paths make use of SoftMuonByDR both at L2.5 and L3
200 openHltBPerfMeasL3BJetTags = copy.deepcopy(hltBSoftMuonDiJet20Mu5SelL3BJetTagsByDR)
201 openHltBPerfMeasL3BJetTags.tagInfos = cms.VInputTag(cms.InputTag("openHltBSoftmuonL3TagInfos"))
202 
203 # L1FastJet
204 
205 openHltBSoftmuonL25TagInfosL1FastJet = copy.deepcopy(hltBSoftMuonDiJet20L25TagInfos)
206 openHltBSoftmuonL25TagInfosL1FastJet.jets = cms.InputTag(BJetinputjetCollectionL1FastJet)
207 
208 #### BTagMu paths make use of SoftMuonByDR both at L2.5 and L3
209 openHltBSoftmuonL25BJetTagsL1FastJet = copy.deepcopy(hltBSoftMuonDiJet20L25BJetTagsByDR)
210 openHltBSoftmuonL25BJetTagsL1FastJet.tagInfos = cms.VInputTag(cms.InputTag("openHltBSoftmuonL25TagInfosL1FastJet"))
211 
212 openHltBSoftmuonL3TagInfosL1FastJet = copy.deepcopy(hltBSoftMuonDiJet20Mu5SelL3TagInfos)
213 openHltBSoftmuonL3TagInfosL1FastJet.jets = cms.InputTag(BJetinputjetCollectionL1FastJet)
214 openHltBSoftmuonL3TagInfosL1FastJet.leptons = cms.InputTag("hltL3Muons") #Feed the entire L3Muons not the filtered ones
215 
216 #### BTagMu paths make use of SoftMuonByDR both at L2.5 and L3
217 openHltBPerfMeasL3BJetTagsL1FastJet = copy.deepcopy(hltBSoftMuonDiJet20Mu5SelL3BJetTagsByDR)
218 openHltBPerfMeasL3BJetTagsL1FastJet.tagInfos = cms.VInputTag(cms.InputTag("openHltBSoftmuonL3TagInfosL1FastJet"))
219 
220 
221 
222 OpenHLTBSoftMuonL25recoSequence = cms.Sequence(
223  HLTL2muonrecoNocandSequence +
224  openHltBSoftmuonL25TagInfos +
225  openHltBSoftmuonL25TagInfosL1FastJet +
226  openHltBSoftmuonL25BJetTags +
227  openHltBSoftmuonL25BJetTagsL1FastJet )
228 
229 OpenHLTBSoftMuonL3recoSequence = cms.Sequence(
230  HLTL3muonrecoNocandSequence +
231  openHltBSoftmuonL3TagInfos +
232  openHltBSoftmuonL3TagInfosL1FastJet +
233  openHltBPerfMeasL3BJetTags +
234  openHltBPerfMeasL3BJetTagsL1FastJet )
235 
236