CMS 3D CMS Logo

/data/doxygen/doxygen-1.7.3/gen/CMSSW_4_2_8/src/RecoMuon/MuonIdentification/python/cosmics_id.py

Go to the documentation of this file.
00001 import FWCore.ParameterSet.Config as cms
00002 
00003 # -*-SH-*-
00004 cosmicsVetoSeeds = cms.EDProducer("TrajectorySeedFromMuonProducer"
00005                                 ,muonCollectionTag = cms.InputTag("muons")
00006                                 ,trackCollectionTag = cms.InputTag("generalTracks")
00007                                 # ,skipMatchedMuons = cms.bool(True)
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 # need to clone FittingSmootherRKP5 if I want to change its parameters
00021 # process.FittingSmootherRKP5.EstimateCut = cms.double(-1.0) # turn off the OutlierRejection
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