CMS 3D CMS Logo

HiRegionalRecoMuon_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
5 
6 # pretty much everything is as the pp sequence
7 hiReMuTracks = "hiGeneralAndRegitMuTracks"
8 
9 # global muon track
10 reglobalMuons = globalMuons.clone()
11 reglobalMuons.TrackerCollectionLabel = hiReMuTracks
12 
13 # tevMuons tracks
14 retevMuons = tevMuons.clone()
15 retevMuons.MuonCollectionLabel = cms.InputTag("reglobalMuons")
16 
17 
18 # trackquality collections
19 reglbTrackQual = glbTrackQual.clone()
20 reglbTrackQual.InputCollection = cms.InputTag("reglobalMuons")
21 reglbTrackQual.InputLinksCollection = cms.InputTag("reglobalMuons")
22 
23 
24 #recoMuons
25 remuons = muons1stStep.clone()
26 remuons.inputCollectionLabels = [hiReMuTracks, 'reglobalMuons', 'standAloneMuons:UpdatedAtVtx','retevMuons:firstHit','retevMuons:picky','retevMuons:dyt']
27 remuons.globalTrackQualityInputTag = cms.InputTag('reglbTrackQual')
28 remuons.JetExtractorPSet.JetCollectionLabel = cms.InputTag("iterativeConePu5CaloJets")
29 remuons.TrackExtractorPSet.inputTrackCollection = hiReMuTracks
30 remuons.minPt = cms.double(0.8)
31 
32 remuonEcalDetIds = muonEcalDetIds.clone()
33 remuonEcalDetIds.inputCollection = "remuons"
34 
35 #muons.fillGlobalTrackRefits = False
36 
37 # deposits
38 remuIsoDepositTk = muIsoDepositTk.clone()
39 remuIsoDepositTk.inputTags = cms.VInputTag(cms.InputTag("remuons:tracker"))
40 remuIsoDepositJets = muIsoDepositJets.clone()
41 remuIsoDepositJets.inputTags = cms.VInputTag(cms.InputTag("remuons:jets"))
42 remuIsoDepositCalByAssociatorTowers = muIsoDepositCalByAssociatorTowers.clone()
43 remuIsoDepositCalByAssociatorTowers.inputTags = cms.VInputTag(cms.InputTag("remuons:ecal"), cms.InputTag("remuons:hcal"), cms.InputTag("remuons:ho"))
44 
45 remuonShowerInformation = muonShowerInformation.clone()
46 remuonShowerInformation.muonCollection = "remuons"
47 
48 # replace the new names
49 
50 remuonIdProducerSequence = cms.Sequence(reglbTrackQual*remuons*remuonEcalDetIds*remuonShowerInformation)
51 remuIsoDeposits_muons = cms.Sequence(remuIsoDepositTk+remuIsoDepositCalByAssociatorTowers+remuIsoDepositJets)
52 remuIsolation_muons = cms.Sequence(remuIsoDeposits_muons)
53 remuIsolation = cms.Sequence(remuIsolation_muons)
54 #run this if there are no STA muons in events
55 muontracking = cms.Sequence(standAloneMuonSeeds * standAloneMuons * hiRegitMuTracking * reglobalMuons)
56 
57 #the default setting assumes the STA is already in the event
58 muontracking_re = cms.Sequence(hiRegitMuTracking * reglobalMuons)
59 muontracking_with_TeVRefinement_re = cms.Sequence(muontracking_re * retevMuons)
60 
61 muonreco_re = cms.Sequence(muontracking_re * remuonIdProducerSequence)
62 muonrecowith_TeVRefinemen_re = cms.Sequence(muontracking_with_TeVRefinement_re * remuonIdProducerSequence)
63 muonreco_plus_isolation_re = cms.Sequence(muonrecowith_TeVRefinemen_re * remuIsolation)
64 
65 reMuonTrackRecoPbPb = cms.Sequence(muontracking_re)
66 # HI muon sequence (passed to RecoHI.Configuration.Reconstruction_HI_cff)
67 regionalMuonRecoPbPb = cms.Sequence(muonreco_plus_isolation_re)