Go to the documentation of this file.00001 import FWCore.ParameterSet.Config as cms
00002
00003
00004 cosmicsVetoSeeds = cms.EDProducer("TrajectorySeedFromMuonProducer"
00005 ,muonCollectionTag = cms.InputTag("muons")
00006 ,trackCollectionTag = cms.InputTag("generalTracks")
00007
00008 ,skipMatchedMuons = cms.bool(False)
00009 )
00010
00011 from RecoTracker.CkfPattern.CkfTrackCandidatesP5_cff import *
00012 cosmicsVetoTrackCandidates = copy.deepcopy(ckfTrackCandidatesP5)
00013 cosmicsVetoTrackCandidates.src = cms.InputTag("cosmicsVetoSeeds")
00014 cosmicsVetoTrackCandidates.doSeedingRegionRebuilding = False
00015 cosmicsVetoTrackCandidates.RedundantSeedCleaner = "none"
00016
00017 from RecoTracker.TrackProducer.CTFFinalFitWithMaterialP5_cff import *
00018 cosmicsVetoTracksRaw = copy.deepcopy(ctfWithMaterialTracksCosmics)
00019 cosmicsVetoTracksRaw.src = cms.InputTag("cosmicsVetoTrackCandidates")
00020
00021
00022
00023 from RecoTracker.FinalTrackSelectors.cosmictrackSelector_cfi import *
00024 cosmicsVetoTracks = cosmictrackSelector.clone(
00025 src = cms.InputTag("cosmicsVetoTracksRaw")
00026 )
00027
00028 from RecoMuon.MuonIdentification.muonCosmicCompatibility_cfi import *
00029
00030 cosmicsVeto = cms.EDProducer("CosmicsMuonIdProducer"
00031 ,MuonCosmicCompatibilityParameters
00032 ,muonCollection = cms.InputTag("muons")
00033 ,trackCollections = cms.VInputTag(cms.InputTag("generalTracks"), cms.InputTag("cosmicsVetoTracks"))
00034
00035 )
00036
00037 cosmicsMuonIdSequence = cms.Sequence(cosmicsVetoSeeds*cosmicsVetoTrackCandidates*cosmicsVetoTracksRaw*cosmicsVetoTracks*cosmicsVeto)
00038
00039