CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
TrackValidation_cff.py
Go to the documentation of this file.
2 
10 import cutsRecoTracks_cfi
11 
14 
15 # Validation iterative steps
16 cutsRecoTracksInitialStep = cutsRecoTracks_cfi.cutsRecoTracks.clone()
17 cutsRecoTracksInitialStep.algorithm=cms.vstring("initialStep")
18 
19 cutsRecoTracksLowPtTripletStep = cutsRecoTracks_cfi.cutsRecoTracks.clone()
20 cutsRecoTracksLowPtTripletStep.algorithm=cms.vstring("lowPtTripletStep")
21 
22 cutsRecoTracksPixelPairStep = cutsRecoTracks_cfi.cutsRecoTracks.clone()
23 cutsRecoTracksPixelPairStep.algorithm=cms.vstring("pixelPairStep")
24 
25 cutsRecoTracksDetachedTripletStep = cutsRecoTracks_cfi.cutsRecoTracks.clone()
26 cutsRecoTracksDetachedTripletStep.algorithm=cms.vstring("detachedTripletStep")
27 
28 cutsRecoTracksMixedTripletStep = cutsRecoTracks_cfi.cutsRecoTracks.clone()
29 cutsRecoTracksMixedTripletStep.algorithm=cms.vstring("mixedTripletStep")
30 
31 cutsRecoTracksPixelLessStep = cutsRecoTracks_cfi.cutsRecoTracks.clone()
32 cutsRecoTracksPixelLessStep.algorithm=cms.vstring("pixelLessStep")
33 
34 cutsRecoTracksTobTecStep = cutsRecoTracks_cfi.cutsRecoTracks.clone()
35 cutsRecoTracksTobTecStep.algorithm=cms.vstring("tobTecStep")
36 
37 cutsRecoTracksJetCoreRegionalStep = cutsRecoTracks_cfi.cutsRecoTracks.clone()
38 cutsRecoTracksJetCoreRegionalStep.algorithm=cms.vstring("jetCoreRegionalStep")
39 
40 cutsRecoTracksMuonSeededStepInOut = cutsRecoTracks_cfi.cutsRecoTracks.clone()
41 cutsRecoTracksMuonSeededStepInOut.algorithm=cms.vstring("muonSeededStepInOut")
42 
43 cutsRecoTracksMuonSeededStepOutIn = cutsRecoTracks_cfi.cutsRecoTracks.clone()
44 cutsRecoTracksMuonSeededStepOutIn.algorithm=cms.vstring("muonSeededStepOutIn")
45 
46 # high purity
47 cutsRecoTracksHp = cutsRecoTracks_cfi.cutsRecoTracks.clone()
48 cutsRecoTracksHp.quality=cms.vstring("highPurity")
49 
50 cutsRecoTracksInitialStepHp = cutsRecoTracks_cfi.cutsRecoTracks.clone()
51 cutsRecoTracksInitialStepHp.algorithm=cms.vstring("initialStep")
52 cutsRecoTracksInitialStepHp.quality=cms.vstring("highPurity")
53 
54 cutsRecoTracksLowPtTripletStepHp = cutsRecoTracks_cfi.cutsRecoTracks.clone()
55 cutsRecoTracksLowPtTripletStepHp.algorithm=cms.vstring("lowPtTripletStep")
56 cutsRecoTracksLowPtTripletStepHp.quality=cms.vstring("highPurity")
57 
58 cutsRecoTracksPixelPairStepHp = cutsRecoTracks_cfi.cutsRecoTracks.clone()
59 cutsRecoTracksPixelPairStepHp.algorithm=cms.vstring("pixelPairStep")
60 cutsRecoTracksPixelPairStepHp.quality=cms.vstring("highPurity")
61 
62 cutsRecoTracksDetachedTripletStepHp = cutsRecoTracks_cfi.cutsRecoTracks.clone()
63 cutsRecoTracksDetachedTripletStepHp.algorithm=cms.vstring("detachedTripletStep")
64 cutsRecoTracksDetachedTripletStepHp.quality=cms.vstring("highPurity")
65 
66 cutsRecoTracksMixedTripletStepHp = cutsRecoTracks_cfi.cutsRecoTracks.clone()
67 cutsRecoTracksMixedTripletStepHp.algorithm=cms.vstring("mixedTripletStep")
68 cutsRecoTracksMixedTripletStepHp.quality=cms.vstring("highPurity")
69 
70 cutsRecoTracksPixelLessStepHp = cutsRecoTracks_cfi.cutsRecoTracks.clone()
71 cutsRecoTracksPixelLessStepHp.algorithm=cms.vstring("pixelLessStep")
72 cutsRecoTracksPixelLessStepHp.quality=cms.vstring("highPurity")
73 
74 cutsRecoTracksTobTecStepHp = cutsRecoTracks_cfi.cutsRecoTracks.clone()
75 cutsRecoTracksTobTecStepHp.algorithm=cms.vstring("tobTecStep")
76 cutsRecoTracksTobTecStepHp.quality=cms.vstring("highPurity")
77 
78 cutsRecoTracksJetCoreRegionalStepHp = cutsRecoTracks_cfi.cutsRecoTracks.clone()
79 cutsRecoTracksJetCoreRegionalStepHp.algorithm=cms.vstring("jetCoreRegionalStep")
80 cutsRecoTracksJetCoreRegionalStepHp.quality=cms.vstring("highPurity")
81 
82 cutsRecoTracksMuonSeededStepInOutHp = cutsRecoTracks_cfi.cutsRecoTracks.clone()
83 cutsRecoTracksMuonSeededStepInOutHp.algorithm=cms.vstring("muonSeededStepInOut")
84 cutsRecoTracksMuonSeededStepInOutHp.quality=cms.vstring("highPurity")
85 
86 cutsRecoTracksMuonSeededStepOutInHp = cutsRecoTracks_cfi.cutsRecoTracks.clone()
87 cutsRecoTracksMuonSeededStepOutInHp.algorithm=cms.vstring("muonSeededStepOutIn")
88 cutsRecoTracksMuonSeededStepOutInHp.quality=cms.vstring("highPurity")
89 
90 # BTV-like selection
91 import PhysicsTools.RecoAlgos.btvTracks_cfi as btvTracks_cfi
92 cutsRecoTracksBtvLike = btvTracks_cfi.btvTrackRefs.clone()
93 
94 # Select tracks associated to AK4 jets
96 ak4JetTracksAssociatorAtVertexPFAll = ak4JTA_cff.ak4JetTracksAssociatorAtVertexPF.clone(
97  jets = "ak4PFJets"
98 )
100 import CommonTools.RecoAlgos.jetTracksAssociationToTrackRefs_cfi as jetTracksAssociationToTrackRefs_cfi
101 cutsRecoTracksAK4PFJets = jetTracksAssociationToTrackRefs_cfi.jetTracksAssociationToTrackRefs.clone(
102  association = "ak4JetTracksAssociatorAtVertexPFAll",
103  jets = "ak4PFJets",
104  correctedPtMin = 10,
105 )
106 
107 trackValidator= Validation.RecoTrack.MultiTrackValidator_cfi.multiTrackValidator.clone()
108 
109 trackValidator.label=cms.VInputTag(cms.InputTag("generalTracks"),
110  cms.InputTag("cutsRecoTracksHp"),
111  cms.InputTag("cutsRecoTracksInitialStep"),
112  cms.InputTag("cutsRecoTracksInitialStepHp"),
113  cms.InputTag("cutsRecoTracksLowPtTripletStep"),
114  cms.InputTag("cutsRecoTracksLowPtTripletStepHp"),
115  cms.InputTag("cutsRecoTracksPixelPairStep"),
116  cms.InputTag("cutsRecoTracksPixelPairStepHp"),
117  cms.InputTag("cutsRecoTracksDetachedTripletStep"),
118  cms.InputTag("cutsRecoTracksDetachedTripletStepHp"),
119  cms.InputTag("cutsRecoTracksMixedTripletStep"),
120  cms.InputTag("cutsRecoTracksMixedTripletStepHp"),
121  cms.InputTag("cutsRecoTracksPixelLessStep"),
122  cms.InputTag("cutsRecoTracksPixelLessStepHp"),
123  cms.InputTag("cutsRecoTracksTobTecStep"),
124  cms.InputTag("cutsRecoTracksTobTecStepHp"),
125  cms.InputTag("cutsRecoTracksJetCoreRegionalStep"),
126  cms.InputTag("cutsRecoTracksJetCoreRegionalStepHp"),
127  cms.InputTag("cutsRecoTracksMuonSeededStepInOut"),
128  cms.InputTag("cutsRecoTracksMuonSeededStepInOutHp"),
129  cms.InputTag("cutsRecoTracksMuonSeededStepOutIn"),
130  cms.InputTag("cutsRecoTracksMuonSeededStepOutInHp"),
131  cms.InputTag("cutsRecoTracksBtvLike"),
132  cms.InputTag("cutsRecoTracksAK4PFJets"),
133  )
134 trackValidator.useLogPt=cms.untracked.bool(True)
135 trackValidator.dodEdxPlots = True
136 #trackValidator.minpT = cms.double(-1)
137 #trackValidator.maxpT = cms.double(3)
138 #trackValidator.nintpT = cms.int32(40)
139 
140 # the track selectors
141 tracksValidationSelectors = cms.Sequence(
142  cms.ignore(cutsRecoTracksHp)*
143  cms.ignore(cutsRecoTracksInitialStep)*
144  cms.ignore(cutsRecoTracksInitialStepHp)*
145  cms.ignore(cutsRecoTracksLowPtTripletStep)*
146  cms.ignore(cutsRecoTracksLowPtTripletStepHp)*
147  cms.ignore(cutsRecoTracksPixelPairStep)*
148  cms.ignore(cutsRecoTracksPixelPairStepHp)*
149  cms.ignore(cutsRecoTracksDetachedTripletStep)*
150  cms.ignore(cutsRecoTracksDetachedTripletStepHp)*
151  cms.ignore(cutsRecoTracksMixedTripletStep)*
152  cms.ignore(cutsRecoTracksMixedTripletStepHp)*
153  cms.ignore(cutsRecoTracksPixelLessStep)*
154  cms.ignore(cutsRecoTracksPixelLessStepHp)*
155  cms.ignore(cutsRecoTracksTobTecStep)*
156  cms.ignore(cutsRecoTracksTobTecStepHp)*
157  cms.ignore(cutsRecoTracksJetCoreRegionalStep)*
158  cms.ignore(cutsRecoTracksJetCoreRegionalStepHp)*
159  cms.ignore(cutsRecoTracksMuonSeededStepInOut)*
160  cms.ignore(cutsRecoTracksMuonSeededStepInOutHp)*
161  cms.ignore(cutsRecoTracksMuonSeededStepOutIn)*
162  cms.ignore(cutsRecoTracksMuonSeededStepOutInHp)*
163  cms.ignore(cutsRecoTracksBtvLike)*
164  ak4JetTracksAssociatorAtVertexPFAll*
165  cutsRecoTracksAK4PFJets
166 )
167 tracksValidationTruth = cms.Sequence(
168  tpClusterProducer +
169  quickTrackAssociatorByHits +
170  trackingParticleRecoTrackAsssociation +
171  VertexAssociatorByPositionAndTracks
172 )
173 tracksValidationTruthFS = cms.Sequence(
174  quickTrackAssociatorByHits +
175  trackingParticleRecoTrackAsssociation
176 )
177 
178 tracksPreValidation = cms.Sequence(
179  tracksValidationSelectors +
180  tracksValidationTruth
181 )
182 tracksPreValidationFS = cms.Sequence(
183  tracksValidationSelectors +
184  tracksValidationTruthFS
185 )
186 
187 # selectors go into separate "prevalidation" sequence
188 tracksValidation = cms.Sequence( trackValidator)
189 tracksValidationFS = cms.Sequence( trackValidator )
190 
191 tracksValidationStandalone = cms.Sequence(
192  ak4PFL1FastL2L3CorrectorChain+
193  tracksPreValidation+
194  tracksValidation
195 )