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 remuonIdProducerTask = cms.Task(reglbTrackQual,remuons,remuonEcalDetIds,remuonShowerInformation)
51 remuIsoDeposits_muonsTask = cms.Task(remuIsoDepositTk,remuIsoDepositCalByAssociatorTowers,remuIsoDepositJets)
52 remuIsolation_muonsTask = cms.Task(remuIsoDeposits_muonsTask)
53 remuIsolationTask = cms.Task(remuIsolation_muonsTask)
54 #run this if there are no STA muons in events
55 muontrackingTask = cms.Task(standAloneMuonSeedsTask , standAloneMuons , hiRegitMuTrackingTask , reglobalMuons)
56 
57 #the default setting assumes the STA is already in the event
58 muontracking_reTask = cms.Task(hiRegitMuTrackingTask , reglobalMuons)
59 muontracking_with_TeVRefinement_reTask = cms.Task(muontracking_reTask , retevMuons)
60 muonreco_reTask = cms.Task(muontracking_reTask , remuonIdProducerTask)
61 muonreco_re = cms.Sequence(muonreco_reTask)
62 muonrecowith_TeVRefinemen_reTask = cms.Task(muontracking_with_TeVRefinement_reTask , remuonIdProducerTask)
63 muonrecowith_TeVRefinemen_re = cms.Sequence(muonrecowith_TeVRefinemen_reTask)
64 muonreco_plus_isolation_reTask = cms.Task(muonrecowith_TeVRefinemen_reTask , remuIsolationTask)
65 muonreco_plus_isolation_re = cms.Sequence(muonreco_plus_isolation_reTask)
66 
67 reMuonTrackRecoPbPb = cms.Sequence(muontracking_reTask)
68 # HI muon sequence (passed to RecoHI.Configuration.Reconstruction_HI_cff)
69 regionalMuonRecoPbPb = cms.Sequence(muonreco_plus_isolation_reTask)
hiMuonIterativeTk_cff
RecoMuonPPonly_cff