1 import FWCore.ParameterSet.Config
as cms
12 from SimMuon.MCTruth.MuonAssociatorByHits_cfi
import muonAssociatorByHitsCommonParameters
15 muonAssociatorByHitsNoSimHitsHelperTrk = muonAssociatorByHitsNoSimHitsHelper.clone()
16 muonAssociatorByHitsNoSimHitsHelperTrk.UseTracker =
True
17 muonAssociatorByHitsNoSimHitsHelperTrk.UseMuon =
False
18 recoMuonVMuAssoc_trk = recoMuonValidator.clone()
19 recoMuonVMuAssoc_trk.subDir =
'Muons/RecoMuonV/RecoMuon_MuonAssoc_Trk'
20 recoMuonVMuAssoc_trk.muAssocLabel =
'muonAssociatorByHitsNoSimHitsHelperTrk'
21 recoMuonVMuAssoc_trk.trackType =
'inner'
22 recoMuonVMuAssoc_trk.selection =
"isTrackerMuon"
25 muonAssociatorByHitsNoSimHitsHelperTrkPF = muonAssociatorByHitsNoSimHitsHelper.clone()
26 muonAssociatorByHitsNoSimHitsHelperTrkPF.UseTracker =
True
27 muonAssociatorByHitsNoSimHitsHelperTrkPF.UseMuon =
False
28 recoMuonVMuAssoc_trkPF = recoMuonValidator.clone()
29 recoMuonVMuAssoc_trkPF.subDir =
'Muons/RecoMuonV/RecoMuon_MuonAssoc_TrkPF'
30 recoMuonVMuAssoc_trkPF.usePFMuon =
True
31 recoMuonVMuAssoc_trkPF.muAssocLabel =
'muonAssociatorByHitsNoSimHitsHelperTrkPF'
32 recoMuonVMuAssoc_trkPF.trackType =
'inner'
33 recoMuonVMuAssoc_trkPF.selection =
"isTrackerMuon & isPFMuon"
36 muonAssociatorByHitsNoSimHitsHelperStandalone = muonAssociatorByHitsNoSimHitsHelper.clone()
37 muonAssociatorByHitsNoSimHitsHelperStandalone.UseTracker =
False
38 muonAssociatorByHitsNoSimHitsHelperStandalone.UseMuon =
True
39 recoMuonVMuAssoc_sta = recoMuonValidator.clone()
40 recoMuonVMuAssoc_sta.subDir =
'Muons/RecoMuonV/RecoMuon_MuonAssoc_Sta'
41 recoMuonVMuAssoc_sta.muAssocLabel =
'muonAssociatorByHitsNoSimHitsHelperStandalone'
42 recoMuonVMuAssoc_sta.trackType =
'outer'
43 recoMuonVMuAssoc_sta.selection =
"isStandAloneMuon"
46 muonAssociatorByHitsNoSimHitsHelperSeedStandalone = muonAssociatorByHitsNoSimHitsHelper.clone()
47 muonAssociatorByHitsNoSimHitsHelperSeedStandalone.UseTracker =
False
48 muonAssociatorByHitsNoSimHitsHelperSeedStandalone.UseMuon =
True
49 recoMuonVMuAssoc_seedSta = recoMuonValidator.clone()
50 recoMuonVMuAssoc_seedSta.subDir =
'Muons/RecoMuonV/RecoMuon_MuonAssoc_SeedSta'
51 recoMuonVMuAssoc_seedSta.muAssocLabel =
'muonAssociatorByHitsNoSimHitsHelperStandalone'
52 recoMuonVMuAssoc_seedSta.trackType =
'outer'
53 recoMuonVMuAssoc_seedSta.selection =
""
56 muonAssociatorByHitsNoSimHitsHelperStandalonePF = muonAssociatorByHitsNoSimHitsHelper.clone()
57 muonAssociatorByHitsNoSimHitsHelperStandalonePF.UseTracker =
False
58 muonAssociatorByHitsNoSimHitsHelperStandalonePF.UseMuon =
True
59 recoMuonVMuAssoc_staPF = recoMuonValidator.clone()
60 recoMuonVMuAssoc_staPF.subDir =
'Muons/RecoMuonV/RecoMuon_MuonAssoc_StaPF'
61 recoMuonVMuAssoc_staPF.usePFMuon =
True
62 recoMuonVMuAssoc_staPF.muAssocLabel =
'muonAssociatorByHitsNoSimHitsHelperStandalonePF'
63 recoMuonVMuAssoc_staPF.trackType =
'outer'
64 recoMuonVMuAssoc_staPF.selection =
"isStandAloneMuon & isPFMuon"
67 muonAssociatorByHitsNoSimHitsHelperGlobal = muonAssociatorByHitsNoSimHitsHelper.clone()
68 muonAssociatorByHitsNoSimHitsHelperGlobal.UseTracker =
True
69 muonAssociatorByHitsNoSimHitsHelperGlobal.UseMuon =
True
70 recoMuonVMuAssoc_glb = recoMuonValidator.clone()
71 recoMuonVMuAssoc_glb.subDir =
'Muons/RecoMuonV/RecoMuon_MuonAssoc_Glb'
72 recoMuonVMuAssoc_glb.muAssocLabel =
'muonAssociatorByHitsNoSimHitsHelperGlobal'
73 recoMuonVMuAssoc_glb.trackType =
'global'
74 recoMuonVMuAssoc_glb.selection =
"isGlobalMuon"
77 muonAssociatorByHitsNoSimHitsHelperGlobalPF = muonAssociatorByHitsNoSimHitsHelper.clone()
78 muonAssociatorByHitsNoSimHitsHelperGlobalPF.UseTracker =
True
79 muonAssociatorByHitsNoSimHitsHelperGlobalPF.UseMuon =
True
80 recoMuonVMuAssoc_glbPF = recoMuonValidator.clone()
81 recoMuonVMuAssoc_glbPF.subDir =
'Muons/RecoMuonV/RecoMuon_MuonAssoc_GlbPF'
82 recoMuonVMuAssoc_glbPF.usePFMuon =
True
83 recoMuonVMuAssoc_glbPF.muAssocLabel =
'muonAssociatorByHitsNoSimHitsHelperGlobalPF'
84 recoMuonVMuAssoc_glbPF.trackType =
'global'
85 recoMuonVMuAssoc_glbPF.selection =
"isGlobalMuon & isPFMuon"
88 muonAssociatorByHitsNoSimHitsHelperTight = muonAssociatorByHitsNoSimHitsHelper.clone()
89 muonAssociatorByHitsNoSimHitsHelperTight.UseTracker =
True
90 muonAssociatorByHitsNoSimHitsHelperTight.UseMuon =
True
91 recoMuonVMuAssoc_tgt = recoMuonValidator.clone()
92 recoMuonVMuAssoc_tgt.subDir =
'Muons/RecoMuonV/RecoMuon_MuonAssoc_Tgt'
93 recoMuonVMuAssoc_tgt.muAssocLabel =
'muonAssociatorByHitsNoSimHitsHelperTight'
94 recoMuonVMuAssoc_tgt.trackType =
'global'
95 recoMuonVMuAssoc_tgt.selection =
'isGlobalMuon'
96 recoMuonVMuAssoc_tgt.wantTightMuon =
True
97 recoMuonVMuAssoc_tgt.beamSpot =
'offlineBeamSpot'
98 recoMuonVMuAssoc_tgt.primaryVertex =
'offlinePrimaryVertices'
104 muonValidationRMV_seq = cms.Sequence(
105 muonAssociatorByHitsNoSimHitsHelperTrk +recoMuonVMuAssoc_trk
106 +muonAssociatorByHitsNoSimHitsHelperStandalone +recoMuonVMuAssoc_sta
107 +muonAssociatorByHitsNoSimHitsHelperGlobal +recoMuonVMuAssoc_glb
108 +muonAssociatorByHitsNoSimHitsHelperTight +recoMuonVMuAssoc_tgt