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