test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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 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 calomuons.inputTracks = hiTracks
19 calomuons.inputCollection = 'hiMuons1stStep'
20 calomuons.inputMuons = 'hiMuons1stStep'
21 muIsoDepositTk.inputTags = cms.VInputTag(cms.InputTag("hiMuons1stStep:tracker"))
22 muIsoDepositJets. inputTags = cms.VInputTag(cms.InputTag("hiMuons1stStep:jets"))
23 muIsoDepositCalByAssociatorTowers.inputTags = cms.VInputTag(cms.InputTag("hiMuons1stStep:ecal"), cms.InputTag("hiMuons1stStep:hcal"), cms.InputTag("hiMuons1stStep:ho"))
24 
25 muonShowerInformation.muonCollection = "hiMuons1stStep"
26 
27 #don't modify somebody else's sequence, create a new one if needed
28 #standalone muon tracking is already done... so remove standalonemuontracking from muontracking
29 muonreco_plus_isolation_PbPb = muonreco_plus_isolation.copyAndExclude(standalonemuontracking._seq._collection + displacedGlobalMuonTracking._seq._collection)
30 muonreco_plus_isolation_PbPb.replace(muons1stStep, hiMuons1stStep)
31 #iso deposits are not used in HI
32 muonreco_plus_isolation_PbPb.remove(muIsoDeposits_muons)
33 
34 
35 globalMuons.TrackerCollectionLabel = hiTracks
36 
37 # replace with heavy ion jet label
38 hiMuons1stStep.JetExtractorPSet.JetCollectionLabel = cms.InputTag("iterativeConePu5CaloJets")
39 
40 # turn off calo muons for timing considerations
41 hiMuons1stStep.minPCaloMuon = cms.double( 1.0E9 )
42 
43 # high level reco
45 muons.InputMuons = cms.InputTag("hiMuons1stStep")
46 muons.PFCandidates = cms.InputTag("particleFlowTmp")
47 muons.FillDetectorBasedIsolation = cms.bool(False)
48 muons.FillPFIsolation = cms.bool(False)
49 muons.FillSelectorMaps = cms.bool(False)
50 muons.FillShoweringInfo = cms.bool(False)
51 muons.FillCosmicsIdMap = cms.bool(False)
52 muonRecoHighLevelPbPb = cms.Sequence(muons)
53 
54 # HI muon sequence (passed to RecoHI.Configuration.Reconstruction_HI_cff)
55 
56 muonRecoPbPb = cms.Sequence(muonreco_plus_isolation_PbPb)
57 
High level sequence (i.e., post PF reconstruction) ###.