CMS 3D CMS Logo

cosmics_id.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 # -*-SH-*-
4 cosmicsVetoSeeds = cms.EDProducer("TrajectorySeedFromMuonProducer"
5  ,muonCollectionTag = cms.InputTag("muons1stStep")
6  ,trackCollectionTag = cms.InputTag("generalTracks")
7  # ,skipMatchedMuons = cms.bool(True)
8  ,skipMatchedMuons = cms.bool(False)
9  )
10 
12 cosmicsVetoTrackCandidates = copy.deepcopy(ckfTrackCandidatesP5)
13 cosmicsVetoTrackCandidates.src = cms.InputTag("cosmicsVetoSeeds")
14 cosmicsVetoTrackCandidates.doSeedingRegionRebuilding = False
15 cosmicsVetoTrackCandidates.RedundantSeedCleaner = "none"
16 
18 cosmicsVetoTracksRaw = copy.deepcopy(ctfWithMaterialTracksCosmics)
19 cosmicsVetoTracksRaw.src = cms.InputTag("cosmicsVetoTrackCandidates")
20 # need to clone FittingSmootherRKP5 if I want to change its parameters
21 # process.FittingSmootherRKP5.EstimateCut = cms.double(-1.0) # turn off the OutlierRejection
22 
24 cosmicsVetoTracks = cosmictrackSelector.clone(
25  src = cms.InputTag("cosmicsVetoTracksRaw")
26 )
27 
29 
30 cosmicsVeto = cms.EDProducer("CosmicsMuonIdProducer"
31  ,MuonCosmicCompatibilityParameters
32  ,muonCollection = cms.InputTag("muons1stStep")
33  ,trackCollections = cms.VInputTag(cms.InputTag("generalTracks"), cms.InputTag("cosmicsVetoTracks"))
34 
35  )
36 
37 cosmicsMuonIdTask = cms.Task(cosmicsVetoSeeds,cosmicsVetoTrackCandidates,cosmicsVetoTracksRaw,cosmicsVetoTracks,cosmicsVeto)
38 cosmicsMuonIdSequence = cms.Sequence(cosmicsMuonIdTask)