CMS 3D CMS Logo

HiRecoMuon_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
4 
5 hiTracks = 'hiGeneralTracks' #heavy ion track label
6 
7 # replace with heavy ion track label
8 hiMuons1stStep = muons1stStep.clone()
9 hiMuons1stStep.inputCollectionLabels = [hiTracks, 'globalMuons', 'standAloneMuons:UpdatedAtVtx','tevMuons:firstHit','tevMuons:picky','tevMuons:dyt']
10 hiMuons1stStep.inputCollectionTypes = ['inner tracks', 'links', 'outer tracks','tev firstHit', 'tev picky', 'tev dyt']
11 hiMuons1stStep.TrackExtractorPSet.inputTrackCollection = hiTracks
12 hiMuons1stStep.minPt = cms.double(0.8)
13 #iso deposits are not used in HI
14 hiMuons1stStep.writeIsoDeposits = False
15 #hiMuons1stStep.fillGlobalTrackRefits = False
16 muonEcalDetIds.inputCollection = "hiMuons1stStep"
17 
18 muIsoDepositTk.inputTags = cms.VInputTag(cms.InputTag("hiMuons1stStep:tracker"))
19 muIsoDepositJets. inputTags = cms.VInputTag(cms.InputTag("hiMuons1stStep:jets"))
20 muIsoDepositCalByAssociatorTowers.inputTags = cms.VInputTag(cms.InputTag("hiMuons1stStep:ecal"), cms.InputTag("hiMuons1stStep:hcal"), cms.InputTag("hiMuons1stStep:ho"))
21 
22 muonShowerInformation.muonCollection = "hiMuons1stStep"
23 
24 #don't modify somebody else's sequence, create a new one if needed
25 #standalone muon tracking is already done... so remove standalonemuontracking from muontracking
26 from FWCore.ParameterSet.SequenceTypes import ModuleNodeVisitor
27 _excludes=[]
28 _visitor=ModuleNodeVisitor(_excludes)
29 standalonemuontracking.visit(_visitor)
30 displacedGlobalMuonTracking.visit(_visitor)
31 muonreco_plus_isolation_PbPbTask = muonreco_plus_isolationTask.copyAndExclude(_excludes)
32 
33 muonreco_plus_isolation_PbPbTask.replace(muons1stStep, hiMuons1stStep)
34 #iso deposits are not used in HI
35 muonreco_plus_isolation_PbPbTask.remove(muIsoDeposits_muonsTask)
36 muonreco_plus_isolation_PbPb = cms.Sequence(muonreco_plus_isolation_PbPbTask)
37 
38 globalMuons.TrackerCollectionLabel = hiTracks
39 
40 # replace with heavy ion jet label
41 hiMuons1stStep.JetExtractorPSet.JetCollectionLabel = cms.InputTag("iterativeConePu5CaloJets")
42 
43 # turn off calo muons for timing considerations
44 hiMuons1stStep.minPCaloMuon = cms.double( 1.0E9 )
45 
46 # high level reco
48 muons.InputMuons = cms.InputTag("hiMuons1stStep")
49 muons.PFCandidates = cms.InputTag("particleFlowTmp")
50 muons.FillDetectorBasedIsolation = cms.bool(False)
51 muons.FillPFIsolation = cms.bool(False)
52 muons.FillSelectorMaps = cms.bool(False)
53 muons.FillShoweringInfo = cms.bool(False)
54 muons.FillCosmicsIdMap = cms.bool(False)
55 muons.vertices = cms.InputTag("hiSelectedVertex")
56 muonRecoHighLevelPbPb = cms.Sequence(muons)
57 
58 # HI muon sequence (passed to RecoHI.Configuration.Reconstruction_HI_cff)
59 
60 muonRecoPbPb = cms.Sequence(muonreco_plus_isolation_PbPbTask)
61 
High level sequence (i.e., post PF reconstruction) ###.