CMS 3D CMS Logo

RecoMuonValidator_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 
6 
9 #
11 from SimMuon.MCTruth.MuonAssociatorByHits_cfi import muonAssociatorByHitsCommonParameters
12 
13 #tracker
14 muonAssociatorByHitsNoSimHitsHelperTrk = muonAssociatorByHitsNoSimHitsHelper.clone(
15  UseTracker = True,
16  UseMuon = False
17 )
18 recoMuonVMuAssoc_trk = recoMuonValidator.clone(
19  subDir = 'Muons/RecoMuonV/RecoMuon_MuonAssoc_Trk',
20  muAssocLabel = 'muonAssociatorByHitsNoSimHitsHelperTrk',
21  trackType = 'inner',
22  selection = "isTrackerMuon",
23  simLabel = ("TPmu"),
24  tpRefVector = True
25 )
26 recoMuonVMuAssoc_trk.tpSelector.src = ("TPmu")
27 #standalone
28 muonAssociatorByHitsNoSimHitsHelperStandalone = muonAssociatorByHitsNoSimHitsHelper.clone(
29  UseTracker = False,
30  UseMuon = True
31 )
32 recoMuonVMuAssoc_sta = recoMuonValidator.clone(
33  subDir = 'Muons/RecoMuonV/RecoMuon_MuonAssoc_Sta',
34  muAssocLabel = 'muonAssociatorByHitsNoSimHitsHelperStandalone',
35  trackType = 'outer',
36  selection = "isStandAloneMuon",
37  simLabel = ("TPmu"),
38  tpRefVector = True
39 
40 )
41 recoMuonVMuAssoc_sta.tpSelector.src = ("TPmu")
42 #global
43 muonAssociatorByHitsNoSimHitsHelperGlobal = muonAssociatorByHitsNoSimHitsHelper.clone(
44  UseTracker = True,
45  UseMuon = True
46 )
47 recoMuonVMuAssoc_glb = recoMuonValidator.clone(
48  subDir = 'Muons/RecoMuonV/RecoMuon_MuonAssoc_Glb',
49  muAssocLabel = 'muonAssociatorByHitsNoSimHitsHelperGlobal',
50  trackType = 'global',
51  selection = "isGlobalMuon",
52  simLabel = ("TPmu"),
53  tpRefVector = True,
54 )
55 recoMuonVMuAssoc_glb.tpSelector.src = ("TPmu")
56 #tight
57 muonAssociatorByHitsNoSimHitsHelperTight = muonAssociatorByHitsNoSimHitsHelper.clone(
58  UseTracker = True,
59  UseMuon = True
60 )
61 recoMuonVMuAssoc_tgt = recoMuonValidator.clone(
62  subDir = 'Muons/RecoMuonV/RecoMuon_MuonAssoc_Tgt',
63  muAssocLabel = 'muonAssociatorByHitsNoSimHitsHelperTight',
64  trackType = 'global',
65  selection = 'isGlobalMuon',
66  wantTightMuon = True,
67  beamSpot = 'offlineBeamSpot',
68  primaryVertex = 'offlinePrimaryVertices',
69  simLabel = ("TPmu"),
70  tpRefVector = True,
71 )
72 recoMuonVMuAssoc_tgt.tpSelector.src = ("TPmu")
73 
76 
77 muonValidationRMV_seq = cms.Sequence(
78  muonAssociatorByHitsNoSimHitsHelperTrk +recoMuonVMuAssoc_trk
79  +muonAssociatorByHitsNoSimHitsHelperStandalone +recoMuonVMuAssoc_sta
80  +muonAssociatorByHitsNoSimHitsHelperGlobal +recoMuonVMuAssoc_glb
81  +muonAssociatorByHitsNoSimHitsHelperTight +recoMuonVMuAssoc_tgt
82  )
83 
84 # not used
85 #
86 #tracker and PF
87 #muonAssociatorByHitsNoSimHitsHelperTrkPF = muonAssociatorByHitsNoSimHitsHelper.clone()
88 #muonAssociatorByHitsNoSimHitsHelperTrkPF.UseTracker = True
89 #muonAssociatorByHitsNoSimHitsHelperTrkPF.UseMuon = False
90 #recoMuonVMuAssoc_trkPF = recoMuonValidator.clone()
91 #recoMuonVMuAssoc_trkPF.subDir = 'Muons/RecoMuonV/RecoMuon_MuonAssoc_TrkPF'
92 #recoMuonVMuAssoc_trkPF.usePFMuon = True
93 #recoMuonVMuAssoc_trkPF.muAssocLabel = 'muonAssociatorByHitsNoSimHitsHelperTrkPF'
94 #recoMuonVMuAssoc_trkPF.trackType = 'inner'
95 #recoMuonVMuAssoc_trkPF.selection = "isTrackerMuon & isPFMuon"
96 #
97 #seed of StandAlone
98 #muonAssociatorByHitsNoSimHitsHelperSeedStandalone = muonAssociatorByHitsNoSimHitsHelper.clone()
99 #muonAssociatorByHitsNoSimHitsHelperSeedStandalone.UseTracker = False
100 #muonAssociatorByHitsNoSimHitsHelperSeedStandalone.UseMuon = True
101 #recoMuonVMuAssoc_seedSta = recoMuonValidator.clone()
102 #recoMuonVMuAssoc_seedSta.subDir = 'Muons/RecoMuonV/RecoMuon_MuonAssoc_SeedSta'
103 #recoMuonVMuAssoc_seedSta.muAssocLabel = 'muonAssociatorByHitsNoSimHitsHelperStandalone'
104 #recoMuonVMuAssoc_seedSta.trackType = 'outer'
105 #recoMuonVMuAssoc_seedSta.selection = ""
106 #
107 #standalone and PF
108 #muonAssociatorByHitsNoSimHitsHelperStandalonePF = muonAssociatorByHitsNoSimHitsHelper.clone()
109 #muonAssociatorByHitsNoSimHitsHelperStandalonePF.UseTracker = False
110 #muonAssociatorByHitsNoSimHitsHelperStandalonePF.UseMuon = True
111 #recoMuonVMuAssoc_staPF = recoMuonValidator.clone()
112 #recoMuonVMuAssoc_staPF.subDir = 'Muons/RecoMuonV/RecoMuon_MuonAssoc_StaPF'
113 #recoMuonVMuAssoc_staPF.usePFMuon = True
114 #recoMuonVMuAssoc_staPF.muAssocLabel = 'muonAssociatorByHitsNoSimHitsHelperStandalonePF'
115 #recoMuonVMuAssoc_staPF.trackType = 'outer'
116 #recoMuonVMuAssoc_staPF.selection = "isStandAloneMuon & isPFMuon"
117 #
118 #global and PF
119 #muonAssociatorByHitsNoSimHitsHelperGlobalPF = muonAssociatorByHitsNoSimHitsHelper.clone()
120 #muonAssociatorByHitsNoSimHitsHelperGlobalPF.UseTracker = True
121 #muonAssociatorByHitsNoSimHitsHelperGlobalPF.UseMuon = True
122 #recoMuonVMuAssoc_glbPF = recoMuonValidator.clone()
123 #recoMuonVMuAssoc_glbPF.subDir = 'Muons/RecoMuonV/RecoMuon_MuonAssoc_GlbPF'
124 #recoMuonVMuAssoc_glbPF.usePFMuon = True
125 #recoMuonVMuAssoc_glbPF.muAssocLabel = 'muonAssociatorByHitsNoSimHitsHelperGlobalPF'
126 #recoMuonVMuAssoc_glbPF.trackType = 'global'
127 #recoMuonVMuAssoc_glbPF.selection = "isGlobalMuon & isPFMuon"
128 #
129 #muonValidationRMV_seq = cms.Sequence(
130 # muonAssociatorByHitsNoSimHitsHelperTrk +recoMuonVMuAssoc_trk
131 # +muonAssociatorByHitsNoSimHitsHelperStandalone +recoMuonVMuAssoc_sta
132 # +muonAssociatorByHitsNoSimHitsHelperGlobal +recoMuonVMuAssoc_glb
133 # +muonAssociatorByHitsNoSimHitsHelperTight +recoMuonVMuAssoc_tgt
134 #
135 # +muonAssociatorByHitsNoSimHitsHelperTrkPF +recoMuonVMuAssoc_trkPF
136 # +muonAssociatorByHitsNoSimHitsHelperStandalonePF +recoMuonVMuAssoc_staPF
137 # +muonAssociatorByHitsNoSimHitsHelperGlobalPF +recoMuonVMuAssoc_glbPF
138 # )
139 #