Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2023-03-17 11:18:13

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 from RecoMuon.Configuration.RecoMuonPPonly_cff import *
0004 
0005 hiTracks = 'hiGeneralTracks' #heavy ion track label
0006 
0007 # replace with heavy ion track label
0008 hiMuons1stStep = muons1stStep.clone(
0009     inputCollectionLabels = [hiTracks, 'globalMuons', 'standAloneMuons:UpdatedAtVtx','tevMuons:firstHit','tevMuons:picky','tevMuons:dyt'],
0010     inputCollectionTypes  = ['inner tracks', 'links', 'outer tracks','tev firstHit', 'tev picky', 'tev dyt'],
0011     TrackExtractorPSet    = dict(inputTrackCollection = hiTracks),
0012     minPt                 = 0.8,
0013     #iso deposits are not used in HI
0014     writeIsoDeposits      = False,
0015     #fillGlobalTrackRefits = False
0016 )
0017 
0018 muonEcalDetIds.inputCollection = "hiMuons1stStep"
0019 muIsoDepositTk.inputTags       = ["hiMuons1stStep:tracker"]
0020 muIsoDepositJets.inputTags     = ["hiMuons1stStep:jets"]
0021 muIsoDepositCalByAssociatorTowers.inputTags = ["hiMuons1stStep:ecal", "hiMuons1stStep:hcal", "hiMuons1stStep:ho"]
0022 muonShowerInformation.muonCollection        = "hiMuons1stStep"
0023 
0024 #don't modify somebody else's sequence, create a new one if needed
0025 #standalone muon tracking is already done... so remove standalonemuontracking from muontracking
0026 from FWCore.ParameterSet.SequenceTypes import ModuleNodeVisitor
0027 _excludes=[]
0028 _visitor=ModuleNodeVisitor(_excludes)
0029 standalonemuontracking.visit(_visitor)
0030 displacedGlobalMuonTracking.visit(_visitor)
0031 muonreco_plus_isolation_PbPbTask = muonreco_plus_isolationTask.copyAndExclude(_excludes)
0032 
0033 muonreco_plus_isolation_PbPbTask.replace(muons1stStep, hiMuons1stStep)
0034 #iso deposits are not used in HI
0035 muonreco_plus_isolation_PbPbTask.remove(muIsoDeposits_muonsTask)
0036 muonreco_plus_isolation_PbPb = cms.Sequence(muonreco_plus_isolation_PbPbTask)
0037 
0038 globalMuons.TrackerCollectionLabel = hiTracks
0039 
0040 # replace with heavy ion jet label
0041 hiMuons1stStep.JetExtractorPSet.JetCollectionLabel = "iterativeConePu5CaloJets"
0042 
0043 # turn off calo muons for timing considerations
0044 hiMuons1stStep.minPCaloMuon = 1.0E9
0045 
0046 # high level reco
0047 from RecoMuon.MuonIdentification.muons_cfi import muons
0048 muons = muons.clone(
0049     InputMuons          = "hiMuons1stStep",
0050     PFCandidates        = "particleFlowTmp",
0051     FillDetectorBasedIsolation = False,
0052     FillPFIsolation     = False,
0053     FillSelectorMaps    = False,
0054     FillShoweringInfo   = False,
0055     FillCosmicsIdMap    = False,
0056     vertices            = "hiSelectedVertex"
0057 )
0058 muonRecoHighLevelPbPbTask = cms.Task(muons)
0059 
0060 # HI muon sequence (passed to RecoHI.Configuration.Reconstruction_HI_cff)
0061 muonRecoPbPbTask = cms.Task(muonreco_plus_isolation_PbPbTask)