CMS 3D CMS Logo

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