CMS 3D CMS Logo

tabp_muonValidation_cff.py
Go to the documentation of this file.
1 # configuration for FullSim: muon track validation using TrackAssociatorByPosition
2 # (backup solution, incomplete, not run by default)
3 #
4 import FWCore.ParameterSet.Config as cms
5 
8 import Validation.RecoMuon.MuonTrackValidator_cfi
9 
12 
13 trkMuonTrackVTrackAssoc = Validation.RecoMuon.MuonTrackValidator_cfi.muonTrackValidator.clone()
14 trkMuonTrackVTrackAssoc.associatormap = 'tpToTkmuTrackAssociation'
15 trkMuonTrackVTrackAssoc.associators = ('trackAssociatorByHits',)
16 #trkMuonTrackVTrackAssoc.label = ('generalTracks',)
17 trkMuonTrackVTrackAssoc.label = ('probeTracks',)
18 trkMuonTrackVTrackAssoc.usetracker = True
19 trkMuonTrackVTrackAssoc.usemuon = False
20 
21 staMuonTrackVTrackAssoc = Validation.RecoMuon.MuonTrackValidator_cfi.muonTrackValidator.clone()
22 staMuonTrackVTrackAssoc.associatormap = 'tpToStaTrackAssociation'
23 staMuonTrackVTrackAssoc.associators = ('trackAssociatorByDeltaR',)
24 staMuonTrackVTrackAssoc.label = ('standAloneMuons',)
25 staMuonTrackVTrackAssoc.usetracker = False
26 staMuonTrackVTrackAssoc.usemuon = True
27 
28 staUpdMuonTrackVTrackAssoc = Validation.RecoMuon.MuonTrackValidator_cfi.muonTrackValidator.clone()
29 staUpdMuonTrackVTrackAssoc.associatormap = 'tpToStaUpdTrackAssociation'
30 staUpdMuonTrackVTrackAssoc.associators = ('trackAssociatorByDeltaR',)
31 staUpdMuonTrackVTrackAssoc.label = ('standAloneMuons:UpdatedAtVtx',)
32 staUpdMuonTrackVTrackAssoc.usetracker = False
33 staUpdMuonTrackVTrackAssoc.usemuon = True
34 
35 glbMuonTrackVTrackAssoc = Validation.RecoMuon.MuonTrackValidator_cfi.muonTrackValidator.clone()
36 glbMuonTrackVTrackAssoc.associatormap = 'tpToGlbTrackAssociation'
37 glbMuonTrackVTrackAssoc.associators = ('trackAssociatorByDeltaR',)
38 glbMuonTrackVTrackAssoc.label = ('globalMuons',)
39 glbMuonTrackVTrackAssoc.usetracker = True
40 glbMuonTrackVTrackAssoc.usemuon = True
41 
42 staSETMuonTrackVTrackAssoc = Validation.RecoMuon.MuonTrackValidator_cfi.muonTrackValidator.clone()
43 staSETMuonTrackVTrackAssoc.associatormap = 'tpToStaSETTrackAssociation'
44 staSETMuonTrackVTrackAssoc.associators = ('trackAssociatorByDeltaR',)
45 staSETMuonTrackVTrackAssoc.label = ('standAloneSETMuons',)
46 staSETMuonTrackVTrackAssoc.usetracker = False
47 staSETMuonTrackVTrackAssoc.usemuon = True
48 
49 staSETUpdMuonTrackVTrackAssoc = Validation.RecoMuon.MuonTrackValidator_cfi.muonTrackValidator.clone()
50 staSETUpdMuonTrackVTrackAssoc.associatormap = 'tpToStaSETUpdTrackAssociation'
51 staSETUpdMuonTrackVTrackAssoc.associators = ('trackAssociatorByDeltaR',)
52 staSETUpdMuonTrackVTrackAssoc.label = ('standAloneSETMuons:UpdatedAtVtx',)
53 staSETUpdMuonTrackVTrackAssoc.usetracker = False
54 staSETUpdMuonTrackVTrackAssoc.usemuon = True
55 
56 glbSETMuonTrackVTrackAssoc = Validation.RecoMuon.MuonTrackValidator_cfi.muonTrackValidator.clone()
57 glbSETMuonTrackVTrackAssoc.associatormap = 'tpToGlbSETTrackAssociation'
58 glbSETMuonTrackVTrackAssoc.associators = ('trackAssociatorByDeltaR',)
59 glbSETMuonTrackVTrackAssoc.label = ('globalSETMuons',)
60 glbSETMuonTrackVTrackAssoc.usetracker = True
61 glbSETMuonTrackVTrackAssoc.usemuon = True
62 
63 tevMuonFirstTrackVTrackAssoc = Validation.RecoMuon.MuonTrackValidator_cfi.muonTrackValidator.clone()
64 tevMuonFirstTrackVTrackAssoc.associatormap = 'tpToTevFirstTrackAssociation'
65 tevMuonFirstTrackVTrackAssoc.associators = ('trackAssociatorByDeltaR',)
66 tevMuonFirstTrackVTrackAssoc.label = ('tevMuons:firstHit',)
67 tevMuonFirstTrackVTrackAssoc.usetracker = True
68 tevMuonFirstTrackVTrackAssoc.usemuon = True
69 
70 tevMuonPickyTrackVTrackAssoc = Validation.RecoMuon.MuonTrackValidator_cfi.muonTrackValidator.clone()
71 tevMuonPickyTrackVTrackAssoc.associatormap = 'tpToTevPickyTrackAssociation'
72 tevMuonPickyTrackVTrackAssoc.associators = ('trackAssociatorByDeltaR',)
73 tevMuonPickyTrackVTrackAssoc.label = ('tevMuons:picky',)
74 tevMuonPickyTrackVTrackAssoc.usetracker = True
75 tevMuonPickyTrackVTrackAssoc.usemuon = True
76 
77 tevMuonDytTrackVTrackAssoc = Validation.RecoMuon.MuonTrackValidator_cfi.muonTrackValidator.clone()
78 tevMuonDytTrackVTrackAssoc.associatormap = 'tpToTevDytTrackAssociation'
79 tevMuonDytTrackVTrackAssoc.associators = ('trackAssociatorByDeltaR',)
80 tevMuonDytTrackVTrackAssoc.label = ('tevMuons:dyt',)
81 tevMuonDytTrackVTrackAssoc.usetracker = True
82 tevMuonDytTrackVTrackAssoc.usemuon = True
83 
84 trkCosmicMuonTrackVTrackAssoc = Validation.RecoMuon.MuonTrackValidator_cfi.muonTrackValidator.clone()
85 trkCosmicMuonTrackVTrackAssoc.associatormap = 'tpToTkCosmicTrackAssociation'
86 trkCosmicMuonTrackVTrackAssoc.associators = ('trackAssociatorByHits',)
87 trkCosmicMuonTrackVTrackAssoc.label = ('ctfWithMaterialTracksP5LHCNavigation',)
88 trkCosmicMuonTrackVTrackAssoc.usetracker = True
89 trkCosmicMuonTrackVTrackAssoc.usemuon = False
90 
91 staCosmicMuonTrackVTrackAssoc = Validation.RecoMuon.MuonTrackValidator_cfi.muonTrackValidator.clone()
92 staCosmicMuonTrackVTrackAssoc.associatormap = 'tpToStaCosmicTrackAssociation'
93 staCosmicMuonTrackVTrackAssoc.associators = ('trackAssociatorByDeltaR',)
94 staCosmicMuonTrackVTrackAssoc.label = ('cosmicMuons',)
95 staCosmicMuonTrackVTrackAssoc.usetracker = False
96 staCosmicMuonTrackVTrackAssoc.usemuon = True
97 
98 glbCosmicMuonTrackVTrackAssoc = Validation.RecoMuon.MuonTrackValidator_cfi.muonTrackValidator.clone()
99 glbCosmicMuonTrackVTrackAssoc.associatormap = 'tpToGlbCosmicTrackAssociation'
100 glbCosmicMuonTrackVTrackAssoc.associators = ('trackAssociatorByDeltaR',)
101 glbCosmicMuonTrackVTrackAssoc.label = ('globalCosmicMuons',)
102 glbCosmicMuonTrackVTrackAssoc.usetracker = True
103 glbCosmicMuonTrackVTrackAssoc.usemuon = True
104 
105 #
106 # Muon validation sequences
107 #
108 muonValidation_seq = cms.Sequence(
109  probeTracks_seq
110  +trackAssociatorByHits + tpToTkmuTrackAssociation + trkMuonTrackVTrackAssoc
111  +tpToStaTrackAssociation + staMuonTrackVTrackAssoc
112  +tpToStaUpdTrackAssociation + staUpdMuonTrackVTrackAssoc
113  +tpToGlbTrackAssociation + glbMuonTrackVTrackAssoc
114  )
115 
116 muonValidationTEV_seq = cms.Sequence(
117  tpToTevFirstTrackAssociation + tevMuonFirstTrackVTrackAssoc
118  +tpToTevPickyTrackAssociation + tevMuonPickyTrackVTrackAssoc
119  +tpToTevDytTrackAssociation + tevMuonDytTrackVTrackAssoc
120  )
121 
122 muonValidationSET_seq = cms.Sequence(
123  tpToStaSETTrackAssociation + staSETMuonTrackVTrackAssoc
124  +tpToStaSETUpdTrackAssociation + staSETUpdMuonTrackVTrackAssoc
125  +tpToGlbSETTrackAssociation + glbSETMuonTrackVTrackAssoc
126  )
127 
128 muonValidationCosmic_seq = cms.Sequence(
129  tpToTkCosmicTrackAssociation + trkCosmicMuonTrackVTrackAssoc
130  +tpToStaCosmicTrackAssociation + staCosmicMuonTrackVTrackAssoc
131  +tpToGlbCosmicTrackAssociation + glbCosmicMuonTrackVTrackAssoc
132  )
133 
134 # The muon validation sequence
135 recoMuonValidation = cms.Sequence(
136  muonValidation_seq + muonValidationTEV_seq + muonValidationSET_seq
137  )
138 
139 # sequence for cosmic muons
140 recoCosmicMuonValidation = cms.Sequence(
141  muonValidationCosmic_seq
142  )