CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 # calomuons
37 recalomuons = calomuons.clone()
38 recalomuons.inputTracks = hiReMuTracks
39 recalomuons.inputCollection = 'remuons'
40 recalomuons.inputMuons = 'remuons'
41 
42 # deposits
43 remuIsoDepositTk = muIsoDepositTk.clone()
44 remuIsoDepositTk.inputTags = cms.VInputTag(cms.InputTag("remuons:tracker"))
45 remuIsoDepositJets = muIsoDepositJets.clone()
46 remuIsoDepositJets.inputTags = cms.VInputTag(cms.InputTag("remuons:jets"))
47 remuIsoDepositCalByAssociatorTowers = muIsoDepositCalByAssociatorTowers.clone()
48 remuIsoDepositCalByAssociatorTowers.inputTags = cms.VInputTag(cms.InputTag("remuons:ecal"), cms.InputTag("remuons:hcal"), cms.InputTag("remuons:ho"))
49 
50 remuonShowerInformation = muonShowerInformation.clone()
51 remuonShowerInformation.muonCollection = "remuons"
52 
53 # replace the new names
54 
55 remuonIdProducerSequence = cms.Sequence(reglbTrackQual*remuons*recalomuons*remuonEcalDetIds*remuonShowerInformation)
56 remuIsoDeposits_muons = cms.Sequence(remuIsoDepositTk+remuIsoDepositCalByAssociatorTowers+remuIsoDepositJets)
57 remuIsolation_muons = cms.Sequence(remuIsoDeposits_muons)
58 remuIsolation = cms.Sequence(remuIsolation_muons)
59 #run this if there are no STA muons in events
60 muontracking = cms.Sequence(standAloneMuonSeeds * standAloneMuons * hiRegitMuTracking * reglobalMuons)
61 
62 #the default setting assumes the STA is already in the event
63 muontracking_re = cms.Sequence(hiRegitMuTracking * reglobalMuons)
64 muontracking_with_TeVRefinement_re = cms.Sequence(muontracking_re * retevMuons)
65 
66 muonreco_re = cms.Sequence(muontracking_re * remuonIdProducerSequence)
67 muonrecowith_TeVRefinemen_re = cms.Sequence(muontracking_with_TeVRefinement_re * remuonIdProducerSequence)
68 muonreco_plus_isolation_re = cms.Sequence(muonrecowith_TeVRefinemen_re * remuIsolation)
69 
70 reMuonTrackRecoPbPb = cms.Sequence(muontracking_re)
71 # HI muon sequence (passed to RecoHI.Configuration.Reconstruction_HI_cff)
72 regionalMuonRecoPbPb = cms.Sequence(muonreco_plus_isolation_re)