Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:34:45

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 from RecoMuon.Configuration.RecoMuonPPonly_cff import *
0004 from RecoHI.HiMuonAlgos.hiMuonIterativeTk_cff import *
0005 
0006 # pretty much everything is as the pp sequence
0007 hiReMuTracks = "hiGeneralAndRegitMuTracks" 
0008 
0009 # global muon track
0010 reglobalMuons = globalMuons.clone(
0011     TrackerCollectionLabel =  hiReMuTracks
0012 )
0013 # tevMuons tracks
0014 retevMuons    = tevMuons.clone(
0015     MuonCollectionLabel = "reglobalMuons"
0016 )
0017 
0018 # trackquality collections
0019 reglbTrackQual = glbTrackQual.clone(
0020     InputCollection      = "reglobalMuons",
0021     InputLinksCollection = "reglobalMuons"
0022 )
0023 
0024 #recoMuons
0025 remuons = muons1stStep.clone(
0026     inputCollectionLabels      = [hiReMuTracks, 'reglobalMuons', 'standAloneMuons:UpdatedAtVtx','retevMuons:firstHit','retevMuons:picky','retevMuons:dyt'],
0027     globalTrackQualityInputTag = 'reglbTrackQual',
0028     JetExtractorPSet           = dict( JetCollectionLabel   = "iterativeConePu5CaloJets"),
0029     TrackExtractorPSet         = dict( inputTrackCollection = hiReMuTracks),
0030     minPt                      = 0.8
0031 )
0032 remuonEcalDetIds = muonEcalDetIds.clone(
0033     inputCollection = "remuons"
0034 )
0035 #muons.fillGlobalTrackRefits = False
0036 
0037 # deposits
0038 remuIsoDepositTk = muIsoDepositTk.clone(
0039     inputTags = ["remuons:tracker"]
0040 )
0041 remuIsoDepositJets = muIsoDepositJets.clone(
0042     inputTags = ["remuons:jets"]
0043 )
0044 remuIsoDepositCalByAssociatorTowers = muIsoDepositCalByAssociatorTowers.clone(
0045     inputTags = ["remuons:ecal", "remuons:hcal", "remuons:ho"]
0046 )
0047 remuonShowerInformation = muonShowerInformation.clone(
0048     muonCollection = "remuons"
0049 )
0050 # replace the new names
0051 
0052 remuonIdProducerTask      = cms.Task(reglbTrackQual,remuons,remuonEcalDetIds,remuonShowerInformation)
0053 remuIsoDeposits_muonsTask = cms.Task(remuIsoDepositTk,remuIsoDepositCalByAssociatorTowers,remuIsoDepositJets)
0054 remuIsolation_muonsTask   = cms.Task(remuIsoDeposits_muonsTask)
0055 remuIsolationTask         = cms.Task(remuIsolation_muonsTask)
0056 #run this if there are no STA muons in events
0057 muontrackingTask                    = cms.Task(standAloneMuonSeedsTask , standAloneMuons , hiRegitMuTrackingTask , reglobalMuons)
0058 
0059 #the default setting assumes the STA is already in the event
0060 muontracking_reTask                 = cms.Task(hiRegitMuTrackingTask , reglobalMuons)
0061 muontracking_with_TeVRefinement_reTask  = cms.Task(muontracking_reTask , retevMuons)
0062 muonreco_reTask                     = cms.Task(muontracking_reTask , remuonIdProducerTask)
0063 muonreco_re                         = cms.Sequence(muonreco_reTask)
0064 muonrecowith_TeVRefinemen_reTask    = cms.Task(muontracking_with_TeVRefinement_reTask , remuonIdProducerTask)
0065 muonrecowith_TeVRefinemen_re        = cms.Sequence(muonrecowith_TeVRefinemen_reTask)
0066 muonreco_plus_isolation_reTask      = cms.Task(muonrecowith_TeVRefinemen_reTask , remuIsolationTask)
0067 muonreco_plus_isolation_re          = cms.Sequence(muonreco_plus_isolation_reTask)
0068 
0069 reMuonTrackRecoPbPb                 = cms.Sequence(muontracking_reTask)
0070 # HI muon sequence (passed to RecoHI.Configuration.Reconstruction_HI_cff)
0071 regionalMuonRecoPbPb                      = cms.Sequence(muonreco_plus_isolation_reTask)