CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules 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  TrackerCollectionLabel = hiReMuTracks
12 )
13 # tevMuons tracks
14 retevMuons = tevMuons.clone(
15  MuonCollectionLabel = "reglobalMuons"
16 )
17 
18 # trackquality collections
19 reglbTrackQual = glbTrackQual.clone(
20  InputCollection = "reglobalMuons",
21  InputLinksCollection = "reglobalMuons"
22 )
23 
24 #recoMuons
25 remuons = muons1stStep.clone(
26  inputCollectionLabels = [hiReMuTracks, 'reglobalMuons', 'standAloneMuons:UpdatedAtVtx','retevMuons:firstHit','retevMuons:picky','retevMuons:dyt'],
27  globalTrackQualityInputTag = 'reglbTrackQual',
28  JetExtractorPSet = dict( JetCollectionLabel = "iterativeConePu5CaloJets"),
29  TrackExtractorPSet = dict( inputTrackCollection = hiReMuTracks),
30  minPt = 0.8
31 )
32 remuonEcalDetIds = muonEcalDetIds.clone(
33  inputCollection = "remuons"
34 )
35 #muons.fillGlobalTrackRefits = False
36 
37 # deposits
38 remuIsoDepositTk = muIsoDepositTk.clone(
39  inputTags = ["remuons:tracker"]
40 )
41 remuIsoDepositJets = muIsoDepositJets.clone(
42  inputTags = ["remuons:jets"]
43 )
44 remuIsoDepositCalByAssociatorTowers = muIsoDepositCalByAssociatorTowers.clone(
45  inputTags = ["remuons:ecal", "remuons:hcal", "remuons:ho"]
46 )
47 remuonShowerInformation = muonShowerInformation.clone(
48  muonCollection = "remuons"
49 )
50 # replace the new names
51 
52 remuonIdProducerTask = cms.Task(reglbTrackQual,remuons,remuonEcalDetIds,remuonShowerInformation)
53 remuIsoDeposits_muonsTask = cms.Task(remuIsoDepositTk,remuIsoDepositCalByAssociatorTowers,remuIsoDepositJets)
54 remuIsolation_muonsTask = cms.Task(remuIsoDeposits_muonsTask)
55 remuIsolationTask = cms.Task(remuIsolation_muonsTask)
56 #run this if there are no STA muons in events
57 muontrackingTask = cms.Task(standAloneMuonSeedsTask , standAloneMuons , hiRegitMuTrackingTask , reglobalMuons)
58 
59 #the default setting assumes the STA is already in the event
60 muontracking_reTask = cms.Task(hiRegitMuTrackingTask , reglobalMuons)
61 muontracking_with_TeVRefinement_reTask = cms.Task(muontracking_reTask , retevMuons)
62 muonreco_reTask = cms.Task(muontracking_reTask , remuonIdProducerTask)
63 muonreco_re = cms.Sequence(muonreco_reTask)
64 muonrecowith_TeVRefinemen_reTask = cms.Task(muontracking_with_TeVRefinement_reTask , remuonIdProducerTask)
65 muonrecowith_TeVRefinemen_re = cms.Sequence(muonrecowith_TeVRefinemen_reTask)
66 muonreco_plus_isolation_reTask = cms.Task(muonrecowith_TeVRefinemen_reTask , remuIsolationTask)
67 muonreco_plus_isolation_re = cms.Sequence(muonreco_plus_isolation_reTask)
68 
69 reMuonTrackRecoPbPb = cms.Sequence(muontracking_reTask)
70 # HI muon sequence (passed to RecoHI.Configuration.Reconstruction_HI_cff)
71 regionalMuonRecoPbPb = cms.Sequence(muonreco_plus_isolation_reTask)