CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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  inputCollectionLabels = [hiTracks, 'globalMuons', 'standAloneMuons:UpdatedAtVtx','tevMuons:firstHit','tevMuons:picky','tevMuons:dyt'],
10  inputCollectionTypes = ['inner tracks', 'links', 'outer tracks','tev firstHit', 'tev picky', 'tev dyt'],
11  TrackExtractorPSet = dict(inputTrackCollection = hiTracks),
12  minPt = 0.8,
13  #iso deposits are not used in HI
14  writeIsoDeposits = False,
15  #fillGlobalTrackRefits = False
16 )
17 
18 muonEcalDetIds.inputCollection = "hiMuons1stStep"
19 muIsoDepositTk.inputTags = ["hiMuons1stStep:tracker"]
20 muIsoDepositJets.inputTags = ["hiMuons1stStep:jets"]
21 muIsoDepositCalByAssociatorTowers.inputTags = ["hiMuons1stStep:ecal", "hiMuons1stStep:hcal", "hiMuons1stStep:ho"]
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 = "iterativeConePu5CaloJets"
42 
43 # turn off calo muons for timing considerations
44 hiMuons1stStep.minPCaloMuon = 1.0E9
45 
46 # high level reco
48 muons = muons.clone(
49  InputMuons = "hiMuons1stStep",
50  PFCandidates = "particleFlowTmp",
51  FillDetectorBasedIsolation = False,
52  FillPFIsolation = False,
53  FillSelectorMaps = False,
54  FillShoweringInfo = False,
55  FillCosmicsIdMap = False,
56  vertices = "hiSelectedVertex"
57 )
58 muonRecoHighLevelPbPbTask = cms.Task(muons)
59 
60 # HI muon sequence (passed to RecoHI.Configuration.Reconstruction_HI_cff)
61 muonRecoPbPbTask = cms.Task(muonreco_plus_isolation_PbPbTask)
High level sequence (i.e., post PF reconstruction) ###.