CMS 3D CMS Logo

/data/doxygen/doxygen-1.7.3/gen/CMSSW_4_2_8/src/Validation/RecoMuon/python/associators_cff.py

Go to the documentation of this file.
00001 import FWCore.ParameterSet.Config as cms
00002 
00003 #Track selector
00004 from Validation.RecoMuon.selectors_cff import *
00005 
00006 #TrackAssociation
00007 from SimTracker.TrackAssociation.TrackAssociatorByChi2_cfi import *
00008 import SimTracker.TrackAssociation.TrackAssociatorByHits_cfi
00009 import SimTracker.TrackAssociation.TrackAssociatorByPosition_cfi
00010 
00011 TrackAssociatorByHits = SimTracker.TrackAssociation.TrackAssociatorByHits_cfi.TrackAssociatorByHits.clone()
00012 
00013 OnlineTrackAssociatorByHits = SimTracker.TrackAssociation.TrackAssociatorByHits_cfi.TrackAssociatorByHits.clone()
00014 OnlineTrackAssociatorByHits.ComponentName = 'OnlineTrackAssociatorByHits'
00015 OnlineTrackAssociatorByHits.UseGrouped = False
00016 OnlineTrackAssociatorByHits.UseSplitting = False
00017 OnlineTrackAssociatorByHits.ThreeHitTracksAreSpecial = False
00018 
00019 TrackAssociatorByPosDeltaR = SimTracker.TrackAssociation.TrackAssociatorByPosition_cfi.TrackAssociatorByPosition.clone()
00020 TrackAssociatorByPosDeltaR.ComponentName = 'TrackAssociatorByDeltaR'
00021 TrackAssociatorByPosDeltaR.method = cms.string('momdr')
00022 TrackAssociatorByPosDeltaR.QCut = cms.double(0.5)
00023 TrackAssociatorByPosDeltaR.ConsiderAllSimHits = cms.bool(True)
00024 
00025 #
00026 # Configuration for Muon track extractor
00027 #
00028 
00029 import SimMuon.MCTruth.MuonTrackProducer_cfi
00030 extractedGlobalMuons = SimMuon.MCTruth.MuonTrackProducer_cfi.muonTrackProducer.clone()
00031 extractedGlobalMuons.selectionTags = ('AllGlobalMuons',)
00032 extractedGlobalMuons.trackType = "globalTrack"
00033 extractedMuonTracks_seq = cms.Sequence( extractedGlobalMuons )
00034 
00035 #
00036 # Associators for Full Sim + Reco:
00037 #
00038 
00039 tpToTkmuTrackAssociation = cms.EDProducer('TrackAssociatorEDProducer',
00040     associator = cms.string('TrackAssociatorByHits'),
00041     label_tp = cms.InputTag('mergedtruth', 'MergedTrackTruth'),
00042     label_tr = cms.InputTag('generalTracks')
00043 )
00044 
00045 tpToStaTrackAssociation = cms.EDProducer('TrackAssociatorEDProducer',
00046     associator = cms.string('TrackAssociatorByDeltaR'),
00047     label_tp = cms.InputTag('mergedtruth', 'MergedTrackTruth'),
00048     label_tr = cms.InputTag('standAloneMuons','')
00049 )
00050 
00051 tpToStaUpdTrackAssociation = cms.EDProducer('TrackAssociatorEDProducer',
00052     associator = cms.string('TrackAssociatorByDeltaR'),
00053     label_tp = cms.InputTag('mergedtruth', 'MergedTrackTruth'),
00054     label_tr = cms.InputTag('standAloneMuons','UpdatedAtVtx')
00055 )
00056 
00057 tpToGlbTrackAssociation = cms.EDProducer('TrackAssociatorEDProducer',
00058     associator = cms.string('TrackAssociatorByDeltaR'),
00059     label_tp = cms.InputTag('mergedtruth', 'MergedTrackTruth'),
00060     label_tr = cms.InputTag('extractedGlobalMuons')
00061 )
00062 
00063 tpToStaSETTrackAssociation = cms.EDProducer('TrackAssociatorEDProducer',
00064     associator = cms.string('TrackAssociatorByDeltaR'),
00065     label_tp = cms.InputTag('mergedtruth', 'MergedTrackTruth'),
00066     label_tr = cms.InputTag('standAloneSETMuons','')
00067 )
00068 
00069 tpToStaSETUpdTrackAssociation = cms.EDProducer('TrackAssociatorEDProducer',
00070     associator = cms.string('TrackAssociatorByDeltaR'),
00071     label_tp = cms.InputTag('mergedtruth', 'MergedTrackTruth'),
00072     label_tr = cms.InputTag('standAloneSETMuons','UpdatedAtVtx')
00073 )
00074 
00075 tpToGlbSETTrackAssociation = cms.EDProducer('TrackAssociatorEDProducer',
00076     associator = cms.string('TrackAssociatorByDeltaR'),
00077     label_tp = cms.InputTag('mergedtruth', 'MergedTrackTruth'),
00078     label_tr = cms.InputTag('globalSETMuons')
00079 )
00080 
00081 tpToTevFirstTrackAssociation = cms.EDProducer('TrackAssociatorEDProducer',
00082     associator = cms.string('TrackAssociatorByDeltaR'),
00083     label_tp = cms.InputTag('mergedtruth', 'MergedTrackTruth'),
00084     label_tr = cms.InputTag('tevMuons','firstHit')
00085 )
00086 
00087 tpToTevPickyTrackAssociation = cms.EDProducer('TrackAssociatorEDProducer',
00088     associator = cms.string('TrackAssociatorByDeltaR'),
00089     label_tp = cms.InputTag('mergedtruth', 'MergedTrackTruth'),
00090     label_tr = cms.InputTag('tevMuons','picky')
00091 )
00092 tpToTevDytTrackAssociation = cms.EDProducer('TrackAssociatorEDProducer',
00093     associator = cms.string('TrackAssociatorByDeltaR'),
00094     label_tp = cms.InputTag('mergedtruth', 'MergedTrackTruth'),
00095     label_tr = cms.InputTag('tevMuons','dyt')
00096 )
00097 
00098 tpToL2TrackAssociation = cms.EDProducer('TrackAssociatorEDProducer',
00099     ignoremissingtrackcollection=cms.untracked.bool(True),
00100     associator = cms.string('TrackAssociatorByDeltaR'),
00101     label_tp = cms.InputTag('mergedtruth', 'MergedTrackTruth'),
00102     label_tr = cms.InputTag('hltL2Muons','')
00103 )
00104 
00105 tpToL2UpdTrackAssociation = cms.EDProducer('TrackAssociatorEDProducer',
00106     ignoremissingtrackcollection=cms.untracked.bool(True),
00107     associator = cms.string('TrackAssociatorByDeltaR'),
00108     label_tp = cms.InputTag('mergedtruth', 'MergedTrackTruth'),
00109     label_tr = cms.InputTag('hltL2Muons','UpdatedAtVtx')
00110 )
00111 
00112 tpToL3TrackAssociation = cms.EDProducer("TrackAssociatorEDProducer",
00113     ignoremissingtrackcollection=cms.untracked.bool(True),
00114     associator = cms.string('TrackAssociatorByDeltaR'),
00115     label_tp = cms.InputTag('mergedtruth', 'MergedTrackTruth'),
00116     label_tr = cms.InputTag('hltL3Muons')
00117 )
00118 
00119 tpToL3TkTrackTrackAssociation = cms.EDProducer("TrackAssociatorEDProducer",
00120     ignoremissingtrackcollection=cms.untracked.bool(True),
00121     associator = cms.string('OnlineTrackAssociatorByHits'),
00122     label_tp = cms.InputTag('mergedtruth','MergedTrackTruth'),
00123     label_tr = cms.InputTag('hltL3TkTracksFromL2','')
00124 )
00125 
00126 tpToL3L2TrackTrackAssociation = cms.EDProducer("TrackAssociatorEDProducer",
00127     ignoremissingtrackcollection=cms.untracked.bool(True),
00128     associator = cms.string('OnlineTrackAssociatorByHits'),
00129     label_tp = cms.InputTag('mergedtruth','MergedTrackTruth'),
00130     label_tr = cms.InputTag('hltL3Muons:L2Seeded')
00131 )
00132 
00133 
00134 
00135 #MuonAssociation
00136 import SimMuon.MCTruth.MuonAssociatorByHits_cfi
00137 
00138 tpToTkMuonAssociation = SimMuon.MCTruth.MuonAssociatorByHits_cfi.muonAssociatorByHits.clone()
00139 tpToStaMuonAssociation = SimMuon.MCTruth.MuonAssociatorByHits_cfi.muonAssociatorByHits.clone()
00140 tpToStaUpdMuonAssociation = SimMuon.MCTruth.MuonAssociatorByHits_cfi.muonAssociatorByHits.clone()
00141 tpToGlbMuonAssociation = SimMuon.MCTruth.MuonAssociatorByHits_cfi.muonAssociatorByHits.clone()
00142 tpToStaSETMuonAssociation = SimMuon.MCTruth.MuonAssociatorByHits_cfi.muonAssociatorByHits.clone()
00143 tpToStaSETUpdMuonAssociation = SimMuon.MCTruth.MuonAssociatorByHits_cfi.muonAssociatorByHits.clone()
00144 tpToGlbSETMuonAssociation = SimMuon.MCTruth.MuonAssociatorByHits_cfi.muonAssociatorByHits.clone()
00145 tpToTevFirstMuonAssociation = SimMuon.MCTruth.MuonAssociatorByHits_cfi.muonAssociatorByHits.clone()
00146 tpToTevPickyMuonAssociation = SimMuon.MCTruth.MuonAssociatorByHits_cfi.muonAssociatorByHits.clone()
00147 tpToTevDytMuonAssociation = SimMuon.MCTruth.MuonAssociatorByHits_cfi.muonAssociatorByHits.clone()
00148 tpToL3TkMuonAssociation = SimMuon.MCTruth.MuonAssociatorByHits_cfi.muonAssociatorByHits.clone()
00149 tpToL2MuonAssociation = SimMuon.MCTruth.MuonAssociatorByHits_cfi.muonAssociatorByHits.clone()
00150 tpToL2UpdMuonAssociation = SimMuon.MCTruth.MuonAssociatorByHits_cfi.muonAssociatorByHits.clone()
00151 tpToL3MuonAssociation = SimMuon.MCTruth.MuonAssociatorByHits_cfi.muonAssociatorByHits.clone()
00152 
00153 tpToTkMuonAssociation.tpTag = 'mergedtruth:MergedTrackTruth'
00154 tpToTkMuonAssociation.tracksTag = 'generalTracks'
00155 tpToTkMuonAssociation.UseTracker = True
00156 tpToTkMuonAssociation.UseMuon = False
00157 
00158 tpToStaMuonAssociation.tpTag = 'mergedtruth:MergedTrackTruth'
00159 tpToStaMuonAssociation.tracksTag = 'standAloneMuons'
00160 tpToStaMuonAssociation.UseTracker = False
00161 tpToStaMuonAssociation.UseMuon = True
00162 
00163 tpToStaUpdMuonAssociation.tpTag = 'mergedtruth:MergedTrackTruth'
00164 tpToStaUpdMuonAssociation.tracksTag = 'standAloneMuons:UpdatedAtVtx'
00165 tpToStaUpdMuonAssociation.UseTracker = False
00166 tpToStaUpdMuonAssociation.UseMuon = True
00167 
00168 tpToGlbMuonAssociation.tpTag = 'mergedtruth:MergedTrackTruth'
00169 tpToGlbMuonAssociation.tracksTag = 'extractedGlobalMuons'
00170 tpToGlbMuonAssociation.UseTracker = True
00171 tpToGlbMuonAssociation.UseMuon = True
00172 
00173 tpToStaSETMuonAssociation.tpTag = 'mergedtruth:MergedTrackTruth'
00174 tpToStaSETMuonAssociation.tracksTag = 'standAloneSETMuons'
00175 tpToStaSETMuonAssociation.UseTracker = False
00176 tpToStaSETMuonAssociation.UseMuon = True
00177 
00178 tpToStaSETUpdMuonAssociation.tpTag = 'mergedtruth:MergedTrackTruth'
00179 tpToStaSETUpdMuonAssociation.tracksTag = 'standAloneSETMuons:UpdatedAtVtx'
00180 tpToStaSETUpdMuonAssociation.UseTracker = False
00181 tpToStaSETUpdMuonAssociation.UseMuon = True
00182 
00183 tpToGlbSETMuonAssociation.tpTag = 'mergedtruth:MergedTrackTruth'
00184 tpToGlbSETMuonAssociation.tracksTag = 'globalSETMuons'
00185 tpToGlbSETMuonAssociation.UseTracker = True
00186 tpToGlbSETMuonAssociation.UseMuon = True
00187 
00188 tpToTevFirstMuonAssociation.tpTag = 'mergedtruth:MergedTrackTruth'
00189 tpToTevFirstMuonAssociation.tracksTag = 'tevMuons:firstHit'
00190 tpToTevFirstMuonAssociation.UseTracker = True
00191 tpToTevFirstMuonAssociation.UseMuon = True
00192 
00193 tpToTevPickyMuonAssociation.tpTag = 'mergedtruth:MergedTrackTruth'
00194 tpToTevPickyMuonAssociation.tracksTag = 'tevMuons:picky'
00195 tpToTevPickyMuonAssociation.UseTracker = True
00196 tpToTevPickyMuonAssociation.UseMuon = True
00197 
00198 tpToTevDytMuonAssociation.tpTag = 'mergedtruth:MergedTrackTruth'
00199 tpToTevDytMuonAssociation.tracksTag = 'tevMuons:dyt'
00200 tpToTevDytMuonAssociation.UseTracker = True
00201 tpToTevDytMuonAssociation.UseMuon = True
00202 
00203 tpToL3TkMuonAssociation.tpTag = 'mergedtruth:MergedTrackTruth'
00204 tpToL3TkMuonAssociation.tracksTag = 'hltL3TkTracksFromL2'
00205 tpToL3TkMuonAssociation.DTrechitTag = 'hltDt1DRecHits'
00206 tpToL3TkMuonAssociation.UseTracker = True
00207 tpToL3TkMuonAssociation.UseMuon = False
00208 tpToL3TkMuonAssociation.ignoreMissingTrackCollection = True
00209 tpToL3TkMuonAssociation.UseSplitting = False
00210 tpToL3TkMuonAssociation.UseGrouped = False
00211 
00212 tpToL2MuonAssociation.tpTag = 'mergedtruth:MergedTrackTruth'
00213 tpToL2MuonAssociation.tracksTag = 'hltL2Muons'
00214 tpToL2MuonAssociation.DTrechitTag = 'hltDt1DRecHits'
00215 tpToL2MuonAssociation.UseTracker = False
00216 tpToL2MuonAssociation.UseMuon = True
00217 tpToL2MuonAssociation.ignoreMissingTrackCollection = True
00218 
00219 tpToL2UpdMuonAssociation.tpTag = 'mergedtruth:MergedTrackTruth'
00220 tpToL2UpdMuonAssociation.tracksTag = 'hltL2Muons:UpdatedAtVtx'
00221 tpToL2UpdMuonAssociation.DTrechitTag = 'hltDt1DRecHits'
00222 tpToL2UpdMuonAssociation.UseTracker = False
00223 tpToL2UpdMuonAssociation.UseMuon = True
00224 tpToL2UpdMuonAssociation.ignoreMissingTrackCollection = True
00225 
00226 tpToL3MuonAssociation.tpTag = 'mergedtruth:MergedTrackTruth'
00227 tpToL3MuonAssociation.tracksTag = 'hltL3Muons'
00228 tpToL3MuonAssociation.DTrechitTag = 'hltDt1DRecHits'
00229 tpToL3MuonAssociation.UseTracker = True
00230 tpToL3MuonAssociation.UseMuon = True
00231 tpToL3MuonAssociation.ignoreMissingTrackCollection = True
00232 tpToL3MuonAssociation.UseSplitting = False
00233 tpToL3MuonAssociation.UseGrouped = False
00234 
00235 #
00236 # Associators for cosmics:
00237 #
00238 
00239 tpToTkCosmicTrackAssociation = cms.EDProducer('TrackAssociatorEDProducer',
00240     associator = cms.string('TrackAssociatorByHits'),
00241     label_tp = cms.InputTag('mergedtruth', 'MergedTrackTruth'),
00242     label_tr = cms.InputTag('ctfWithMaterialTracksP5LHCNavigation')
00243 )
00244 
00245 tpToStaCosmicTrackAssociation = cms.EDProducer('TrackAssociatorEDProducer',
00246     associator = cms.string('TrackAssociatorByDeltaR'),
00247     label_tp = cms.InputTag('mergedtruth', 'MergedTrackTruth'),
00248     label_tr = cms.InputTag('cosmicMuons')
00249 )
00250 
00251 tpToGlbCosmicTrackAssociation = cms.EDProducer('TrackAssociatorEDProducer',
00252     associator = cms.string('TrackAssociatorByDeltaR'),
00253     label_tp = cms.InputTag('mergedtruth', 'MergedTrackTruth'),
00254     label_tr = cms.InputTag('globalCosmicMuons')
00255 )
00256 
00257 tpToTkCosmicMuonAssociation = SimMuon.MCTruth.MuonAssociatorByHits_cfi.muonAssociatorByHits.clone()
00258 tpToStaCosmicMuonAssociation = SimMuon.MCTruth.MuonAssociatorByHits_cfi.muonAssociatorByHits.clone()
00259 tpToGlbCosmicMuonAssociation = SimMuon.MCTruth.MuonAssociatorByHits_cfi.muonAssociatorByHits.clone()
00260 
00261 tpToTkCosmicMuonAssociation.tpTag = 'mergedtruth:MergedTrackTruth'
00262 tpToTkCosmicMuonAssociation.tracksTag = 'ctfWithMaterialTracksP5LHCNavigation'
00263 tpToTkCosmicMuonAssociation.UseTracker = True
00264 tpToTkCosmicMuonAssociation.UseMuon = False
00265 
00266 tpToStaCosmicMuonAssociation.tpTag = 'mergedtruth:MergedTrackTruth'
00267 tpToStaCosmicMuonAssociation.tracksTag = 'cosmicMuons'
00268 tpToStaCosmicMuonAssociation.UseTracker = False
00269 tpToStaCosmicMuonAssociation.UseMuon = True
00270 
00271 tpToGlbCosmicMuonAssociation.tpTag = 'mergedtruth:MergedTrackTruth'
00272 tpToGlbCosmicMuonAssociation.tracksTag = 'globalCosmicMuons'
00273 tpToGlbCosmicMuonAssociation.UseTracker = True
00274 tpToGlbCosmicMuonAssociation.UseMuon = True
00275 
00276 
00277 #
00278 # The full-sim association sequences
00279 #
00280 
00281 muonAssociation_seq = cms.Sequence(
00282     extractedMuonTracks_seq
00283     +(tpToTkMuonAssociation+tpToStaMuonAssociation+tpToStaUpdMuonAssociation+tpToGlbMuonAssociation)
00284     +(tpToTkmuTrackAssociation)
00285 #   +(tpToTkmuTrackAssociation+tpToStaTrackAssociation+tpToStaUpdTrackAssociation+tpToGlbTrackAssociation)
00286 )
00287 muonAssociationTEV_seq = cms.Sequence(
00288     (tpToTevFirstMuonAssociation+tpToTevPickyMuonAssociation+tpToTevDytMuonAssociation)
00289 #    +(tpToTevFirstTrackAssociation+tpToTevPickyTrackAssociation)
00290 )
00291 muonAssociationSET_seq = cms.Sequence(
00292     (tpToStaSETMuonAssociation+tpToStaSETUpdMuonAssociation+tpToGlbSETMuonAssociation)
00293 #    +(tpToStaSETTrackAssociation+tpToStaSETUpdTrackAssociation+tpToGlbSETTrackAssociation)
00294 )
00295 muonAssociationCosmic_seq = cms.Sequence(
00296     (tpToTkCosmicMuonAssociation+tpToStaCosmicMuonAssociation+tpToGlbCosmicMuonAssociation)
00297 #    +(tpToTkCosmicTrackAssociation+tpToStaCosmicTrackAssociation+tpToGlbCosmicTrackAssociation)
00298 )
00299 muonAssociationHLT_seq = cms.Sequence(
00300     (tpToL2MuonAssociation+tpToL2UpdMuonAssociation+tpToL3MuonAssociation+tpToL3TkMuonAssociation)
00301 #    +(tpToL2TrackAssociation+tpToL2UpdTrackAssociation+tpToL3TrackAssociation+tpToL3TkTrackTrackAssociation)
00302 )
00303 
00304 
00305 #
00306 # Associators for Fast Sim
00307 #
00308 
00309 tpToTkmuTrackAssociationFS = cms.EDProducer('TrackAssociatorEDProducer',
00310     associator = cms.string('TrackAssociatorByHits'),
00311     label_tp = cms.InputTag('mergedtruth', 'MergedTrackTruth'),
00312     label_tr = cms.InputTag('generalTracks')
00313 )
00314 
00315 tpToStaTrackAssociationFS = cms.EDProducer('TrackAssociatorEDProducer',
00316     associator = cms.string('TrackAssociatorByDeltaR'),
00317     label_tp = cms.InputTag('mergedtruthMuon', 'MergedTrackTruth'),
00318     label_tr = cms.InputTag('standAloneMuons','')
00319 )
00320 
00321 tpToStaUpdTrackAssociationFS = cms.EDProducer('TrackAssociatorEDProducer',
00322     associator = cms.string('TrackAssociatorByDeltaR'),
00323     label_tp = cms.InputTag('mergedtruthMuon', 'MergedTrackTruth'),
00324     label_tr = cms.InputTag('standAloneMuons','UpdatedAtVtx')
00325 )
00326 
00327 tpToGlbTrackAssociationFS = cms.EDProducer('TrackAssociatorEDProducer',
00328     associator = cms.string('TrackAssociatorByDeltaR'),
00329     label_tp = cms.InputTag('mergedtruth', 'MergedTrackTruth'),
00330     label_tr = cms.InputTag('extractedGlobalMuons')
00331 )
00332 
00333 tpToTevFirstTrackAssociationFS = cms.EDProducer('TrackAssociatorEDProducer',
00334     associator = cms.string('TrackAssociatorByDeltaR'),
00335     label_tp = cms.InputTag('mergedtruth', 'MergedTrackTruth'),
00336     label_tr = cms.InputTag('tevMuons','firstHit')
00337 )
00338 
00339 tpToTevPickyTrackAssociationFS = cms.EDProducer('TrackAssociatorEDProducer',
00340     associator = cms.string('TrackAssociatorByDeltaR'),
00341     label_tp = cms.InputTag('mergedtruth', 'MergedTrackTruth'),
00342     label_tr = cms.InputTag('tevMuons','picky')
00343 )
00344 
00345 tpToTevDytTrackAssociationFS = cms.EDProducer('TrackAssociatorEDProducer',
00346     associator = cms.string('TrackAssociatorByDeltaR'),
00347     label_tp = cms.InputTag('mergedtruth', 'MergedTrackTruth'),
00348     label_tr = cms.InputTag('tevMuons','dyt')
00349 )
00350 
00351 tpToL2TrackAssociationFS = cms.EDProducer('TrackAssociatorEDProducer',
00352     ignoremissingtrackcollection=cms.untracked.bool(True),
00353     associator = cms.string('TrackAssociatorByDeltaR'),
00354     label_tp = cms.InputTag('mergedtruthMuon', 'MergedTrackTruth'),
00355     label_tr = cms.InputTag('hltL2Muons','')
00356 )
00357 
00358 tpToL2UpdTrackAssociationFS = cms.EDProducer('TrackAssociatorEDProducer',
00359     ignoremissingtrackcollection=cms.untracked.bool(True),
00360     associator = cms.string('TrackAssociatorByDeltaR'),
00361     label_tp = cms.InputTag('mergedtruthMuon', 'MergedTrackTruth'),
00362     label_tr = cms.InputTag('hltL2Muons','UpdatedAtVtx')
00363 )
00364 
00365 tpToL3TrackAssociationFS = cms.EDProducer("TrackAssociatorEDProducer",
00366     ignoremissingtrackcollection=cms.untracked.bool(True),
00367     associator = cms.string('TrackAssociatorByDeltaR'),
00368     label_tp = cms.InputTag('mergedtruth', 'MergedTrackTruth'),
00369     label_tr = cms.InputTag('hltL3Muons')
00370 )
00371 
00372 tpToL3TkTrackTrackAssociationFS = cms.EDProducer("TrackAssociatorEDProducer",
00373     ignoremissingtrackcollection=cms.untracked.bool(True),
00374     associator = cms.string('OnlineTrackAssociatorByHits'),
00375     label_tp = cms.InputTag('mergedtruth','MergedTrackTruth'),
00376     label_tr = cms.InputTag('hltL3TkTracksFromL2','')
00377 )
00378 
00379 tpToL3L2TrackTrackAssociationFS = cms.EDProducer("TrackAssociatorEDProducer",
00380     ignoremissingtrackcollection=cms.untracked.bool(True),
00381     associator = cms.string('OnlineTrackAssociatorByHits'),
00382     label_tp = cms.InputTag('mergedtruth','MergedTrackTruth'),
00383     label_tr = cms.InputTag('hltL3Muons:L2Seeded')
00384 )
00385 
00386 
00387 #MuonAssociation
00388 import SimMuon.MCTruth.MuonAssociatorByHits_cfi
00389 
00390 baseMuonAssociatorFS = SimMuon.MCTruth.MuonAssociatorByHits_cfi.muonAssociatorByHits.clone()
00391 baseMuonAssociatorFS.tpTag = 'mergedtruthMuon:MergedTrackTruth'
00392 baseMuonAssociatorFS.UseTracker = True
00393 baseMuonAssociatorFS.UseMuon = True
00394 baseMuonAssociatorFS.simtracksTag = "famosSimHits"
00395 baseMuonAssociatorFS.DTsimhitsTag  = "MuonSimHits:MuonDTHits"
00396 baseMuonAssociatorFS.CSCsimHitsTag = "MuonSimHits:MuonCSCHits"
00397 baseMuonAssociatorFS.RPCsimhitsTag = "MuonSimHits:MuonRPCHits"
00398 baseMuonAssociatorFS.simtracksXFTag = "mix:famosSimHits"
00399 baseMuonAssociatorFS.DTsimhitsXFTag  = "mix:MuonSimHitsMuonDTHits"
00400 baseMuonAssociatorFS.CSCsimHitsXFTag = "mix:MuonSimHitsMuonCSCHits"
00401 baseMuonAssociatorFS.RPCsimhitsXFTag = "mix:MuonSimHitsMuonRPCHits"
00402 baseMuonAssociatorFS.ROUList = ['famosSimHitsTrackerHits']
00403 
00404 
00405 tpToTkMuonAssociationFS   = baseMuonAssociatorFS.clone()
00406 tpToStaMuonAssociationFS  = baseMuonAssociatorFS.clone()
00407 tpToStaUpdMuonAssociationFS  = baseMuonAssociatorFS.clone()
00408 tpToGlbMuonAssociationFS  = baseMuonAssociatorFS.clone()
00409 tpToTevFirstMuonAssociationFS = baseMuonAssociatorFS.clone()
00410 tpToTevPickyMuonAssociationFS = baseMuonAssociatorFS.clone()
00411 tpToTevDytMuonAssociationFS = baseMuonAssociatorFS.clone()
00412 tpToL3TkMuonAssociationFS = baseMuonAssociatorFS.clone()
00413 tpToL2MuonAssociationFS   = baseMuonAssociatorFS.clone()
00414 tpToL2UpdMuonAssociationFS   = baseMuonAssociatorFS.clone()
00415 tpToL3MuonAssociationFS   = baseMuonAssociatorFS.clone()
00416 
00417 tpToTkMuonAssociationFS.tracksTag = 'generalTracks'
00418 tpToTkMuonAssociationFS.tpTag = 'mergedtruth:MergedTrackTruth'
00419 tpToTkMuonAssociationFS.UseTracker = True
00420 tpToTkMuonAssociationFS.UseMuon = False
00421 
00422 tpToStaMuonAssociationFS.tracksTag = 'standAloneMuons'
00423 tpToStaMuonAssociationFS.UseTracker = False
00424 tpToStaMuonAssociationFS.UseMuon = True
00425 
00426 tpToStaUpdMuonAssociationFS.tracksTag = 'standAloneMuons:UpdatedAtVtx'
00427 tpToStaUpdMuonAssociationFS.UseTracker = False
00428 tpToStaUpdMuonAssociationFS.UseMuon = True
00429 
00430 tpToGlbMuonAssociationFS.tracksTag = 'extractedGlobalMuons'
00431 tpToGlbMuonAssociationFS.tpTag = 'mergedtruth:MergedTrackTruth'
00432 tpToGlbMuonAssociationFS.UseTracker = True
00433 tpToGlbMuonAssociationFS.UseMuon = True
00434 
00435 tpToTevFirstMuonAssociationFS.tracksTag = 'tevMuons:firstHit'
00436 tpToTevFirstMuonAssociationFS.tpTag = 'mergedtruth:MergedTrackTruth'
00437 tpToTevFirstMuonAssociationFS.UseTracker = True
00438 tpToTevFirstMuonAssociationFS.UseMuon = True
00439 
00440 tpToTevPickyMuonAssociationFS.tracksTag = 'tevMuons:picky'
00441 tpToTevPickyMuonAssociationFS.tpTag = 'mergedtruth:MergedTrackTruth'
00442 tpToTevPickyMuonAssociationFS.UseTracker = True
00443 tpToTevPickyMuonAssociationFS.UseMuon = True
00444 
00445 tpToTevDytMuonAssociationFS.tracksTag = 'tevMuons:dyt'
00446 tpToTevDytMuonAssociationFS.tpTag = 'mergedtruth:MergedTrackTruth'
00447 tpToTevDytMuonAssociationFS.UseTracker = True
00448 tpToTevDytMuonAssociationFS.UseMuon = True
00449 
00450 tpToL3TkMuonAssociationFS.tracksTag = 'hltL3TkTracksFromL2'
00451 tpToL3TkMuonAssociationFS.tpTag = 'mergedtruth:MergedTrackTruth'
00452 tpToL3TkMuonAssociationFS.UseTracker = True
00453 tpToL3TkMuonAssociationFS.UseMuon = False
00454 tpToL3TkMuonAssociationFS.ignoreMissingTrackCollection = True
00455 tpToL3TkMuonAssociationFS.UseSplitting = False
00456 tpToL3TkMuonAssociationFS.UseGrouped = False
00457 
00458 tpToL2MuonAssociationFS.tracksTag = 'hltL2Muons'
00459 tpToL2MuonAssociationFS.UseTracker = False
00460 tpToL2MuonAssociationFS.UseMuon = True
00461 tpToL2MuonAssociationFS.ignoreMissingTrackCollection = True
00462 
00463 tpToL2UpdMuonAssociationFS.tracksTag = 'hltL2Muons:UpdatedAtVtx'
00464 tpToL2UpdMuonAssociationFS.UseTracker = False
00465 tpToL2UpdMuonAssociationFS.UseMuon = True
00466 tpToL2UpdMuonAssociationFS.ignoreMissingTrackCollection = True
00467 
00468 tpToL3MuonAssociationFS.tracksTag = 'hltL3Muons'
00469 tpToL3MuonAssociationFS.tpTag = 'mergedtruth:MergedTrackTruth'
00470 tpToL3MuonAssociationFS.UseTracker = True
00471 tpToL3MuonAssociationFS.UseMuon = True
00472 tpToL3MuonAssociationFS.ignoreMissingTrackCollection = True
00473 tpToL3MuonAssociationFS.UseSplitting = False
00474 tpToL3MuonAssociationFS.UseGrouped = False
00475 
00476 
00477 
00478 muonAssociationFastSim_seq = cms.Sequence(
00479         extractedMuonTracks_seq
00480         +(tpToTkMuonAssociationFS+tpToStaMuonAssociationFS+tpToStaUpdMuonAssociationFS+tpToGlbMuonAssociationFS)
00481         +(tpToTevFirstMuonAssociationFS+tpToTevPickyMuonAssociationFS+tpToTevDytMuonAssociationFS)
00482         +tpToTkmuTrackAssociationFS
00483 #        +tpToStaTrackAssociationFS+tpToStaUpdTrackAssociationFS+tpToGlbTrackAssociationFS
00484 #        +tpToTevFirstTrackAssociationFS+tpToTevPickyTrackAssociationFS
00485         )
00486 muonAssociationHLTFastSim_seq = cms.Sequence(
00487     tpToL2MuonAssociationFS+tpToL2UpdMuonAssociationFS+tpToL3MuonAssociationFS+tpToL3TkMuonAssociationFS
00488 #    +tpToL2TrackAssociationFS+tpToL2UpdTrackAssociationFS+tpToL3TrackAssociationFS+tpToL3TkTrackTrackAssociationFS
00489     )
00490