CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_5_3_14/src/RecoHI/HiMuonAlgos/python/HiReRecoMuon_cff.py

Go to the documentation of this file.
00001 import FWCore.ParameterSet.Config as cms
00002 
00003 from RecoMuon.Configuration.RecoMuonPPonly_cff import *
00004 from RecoHI.HiMuonAlgos.hiMuonIterativeTk_cff import *
00005 
00006 # pretty much everything is as the pp sequence
00007 hiTracks = 'hiRegitMuGeneralTracks'
00008 
00009 # global muon track
00010 reglobalMuons = globalMuons.clone()
00011 reglobalMuons.TrackerCollectionLabel                                     = hiTracks
00012 
00013 # tevMuons tracks
00014 retevMuons    = tevMuons.clone()
00015 retevMuons.MuonCollectionLabel = cms.InputTag("reglobalMuons")
00016 
00017 
00018 # trackquality collections
00019 reglbTrackQual = glbTrackQual.clone()
00020 reglbTrackQual.InputCollection      = cms.InputTag("reglobalMuons")
00021 reglbTrackQual.InputLinksCollection = cms.InputTag("reglobalMuons")
00022 
00023 
00024 #recoMuons
00025 remuons       = muons1stStep.clone()
00026 remuons.inputCollectionLabels                   = [hiTracks, 'reglobalMuons', 'standAloneMuons:UpdatedAtVtx','retevMuons:firstHit','retevMuons:picky','retevMuons:dyt']
00027 remuons.globalTrackQualityInputTag              = cms.InputTag('reglbTrackQual')
00028 remuons.JetExtractorPSet.JetCollectionLabel     = cms.InputTag("iterativeConePu5CaloJets")
00029 remuons.TrackExtractorPSet.inputTrackCollection = hiTracks
00030 
00031 remuonEcalDetIds = muonEcalDetIds.clone()
00032 remuonEcalDetIds.inputCollection                = "remuons"
00033 
00034 #muons.fillGlobalTrackRefits = False
00035 # calomuons
00036 recalomuons   = calomuons.clone()
00037 recalomuons.inputTracks          = hiTracks
00038 recalomuons.inputCollection      = 'remuons'
00039 recalomuons.inputMuons           = 'remuons'
00040 
00041 # deposits
00042 remuIsoDepositTk = muIsoDepositTk.clone()
00043 remuIsoDepositTk.inputTags                    = cms.VInputTag(cms.InputTag("remuons:tracker"))
00044 remuIsoDepositJets = muIsoDepositJets.clone()
00045 remuIsoDepositJets.inputTags                  = cms.VInputTag(cms.InputTag("remuons:jets"))
00046 remuIsoDepositCalByAssociatorTowers = muIsoDepositCalByAssociatorTowers.clone()
00047 remuIsoDepositCalByAssociatorTowers.inputTags = cms.VInputTag(cms.InputTag("remuons:ecal"), cms.InputTag("remuons:hcal"), cms.InputTag("remuons:ho"))
00048 
00049 remuonShowerInformation                       = muonShowerInformation.clone()
00050 remuonShowerInformation.muonCollection        = "remuons"
00051 
00052 # replace the new names
00053 muonIdProducerSequence.replace(glbTrackQual,reglbTrackQual)
00054 muonIdProducerSequence.replace(muons1stStep,remuons)
00055 muonIdProducerSequence.replace(tevMuons,retevMuons)
00056 muonIdProducerSequence.replace(calomuons,recalomuons)
00057 muonIdProducerSequence.replace(muonEcalDetIds,remuonEcalDetIds)
00058 muonIdProducerSequence.replace(muonShowerInformation,remuonShowerInformation)
00059 muIsolation.replace(muIsoDepositTk,remuIsoDepositTk)
00060 muIsolation.replace(muIsoDepositJets,remuIsoDepositJets)
00061 muIsolation.replace(muIsoDepositCalByAssociatorTowers,remuIsoDepositCalByAssociatorTowers)
00062 
00063 #run this if there are no STA muons in events
00064 muontracking                        = cms.Sequence(standAloneMuonSeeds * standAloneMuons * hiRegitMuonIterTracking * globalMuons)
00065 
00066 #the default setting assumes the STA is already in the event
00067 muontracking_re                     = cms.Sequence(hiRegitMuonIterTracking * reglobalMuons)
00068 muontracking_with_TeVRefinement_re  = cms.Sequence(muontracking_re * retevMuons)
00069 muonrecowith_TeVRefinemen_re        = cms.Sequence(muontracking_with_TeVRefinement_re * muonIdProducerSequence)
00070 muonreco_plus_isolation_re          = cms.Sequence(muonrecowith_TeVRefinemen_re * muIsolation)
00071 
00072 reMuonTrackRecoPbPb                 = cms.Sequence(muontracking_re)
00073 # HI muon sequence (passed to RecoHI.Configuration.Reconstruction_HI_cff)
00074 reMuonRecoPbPb                      = cms.Sequence(muonreco_plus_isolation_re)