CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
PhotonConversionTrajectorySeedProducerFromSingleLeg_cff.py
Go to the documentation of this file.
2 
4 
6 TrackRefitterStd = TrackRefitter.clone(src=cms.InputTag("generalTracks"))
7 
8 
9 convFilter = cms.EDProducer("QualityFilter",
10  TrackQuality = cms.string('loose'),
11  recTracks = cms.InputTag("TrackRefitterStd")
12  )
13 
14 convClusters = cms.EDProducer("TrackClusterRemover",
15  trajectories = cms.InputTag("convFilter"),
16  pixelClusters = cms.InputTag("siPixelClusters"),
17  stripClusters = cms.InputTag("siStripClusters"),
18  Common = cms.PSet(maxChi2 = cms.double(30.0))
19  )
20 
22 convPixelRecHits = RecoLocalTracker.SiPixelRecHits.SiPixelRecHits_cfi.siPixelRecHits.clone(
23  src = 'convClusters'
24  )
25 
27 convStripRecHits = RecoLocalTracker.SiStripRecHitConverter.SiStripRecHitConverter_cfi.siStripMatchedRecHits.clone(
28  ClusterProducer = 'convClusters'
29  )
30 
31 convLayerPairs = cms.ESProducer("SeedingLayersESProducer",
32  ComponentName = cms.string('convLayerPairs'),
33  layerList = cms.vstring('BPix1+BPix2',
34 
35  'BPix2+BPix3',
36  'BPix2+FPix1_pos',
37  'BPix2+FPix1_neg',
38  'BPix2+FPix2_pos',
39  'BPix2+FPix2_neg',
40 
41  'FPix1_pos+FPix2_pos',
42  'FPix1_neg+FPix2_neg',
43 
44  'BPix3+TIB1',
45  'BPix3+TIB2',
46 
47  'TIB1+TID1_pos',
48  'TIB1+TID1_neg',
49  'TIB1+TID2_pos',
50  'TIB1+TID2_neg',
51  'TIB1+TIB2',
52  'TIB1+TIB3',
53 
54  'TIB2+TID1_pos',
55  'TIB2+TID1_neg',
56  'TIB2+TID2_pos',
57  'TIB2+TID2_neg',
58  'TIB2+TIB3',
59  'TIB2+TIB4',
60 
61  'TIB3+TIB4',
62  'TIB3+TOB1',
63  'TIB3+TID1_pos',
64  'TIB3+TID1_neg',
65 
66  'TIB4+TOB1',
67  'TIB4+TOB2',
68 
69  'TOB1+TOB2',
70  'TOB1+TOB3',
71  'TOB1+TEC1_pos',
72  'TOB1+TEC1_neg',
73 
74  'TOB2+TOB3',
75  'TOB2+TOB4',
76  'TOB2+TEC1_pos',
77  'TOB2+TEC1_neg',
78 
79  'TOB3+TOB4',
80  'TOB3+TOB5',
81  'TOB3+TEC1_pos',
82  'TOB3+TEC1_neg',
83 
84  'TOB4+TOB5',
85  'TOB4+TOB6',
86 
87  'TOB5+TOB6',
88 
89  'TID1_pos+TID2_pos',
90  'TID2_pos+TID3_pos',
91  'TID3_pos+TEC1_pos',
92 
93  'TID1_neg+TID2_neg',
94  'TID2_neg+TID3_neg',
95  'TID3_neg+TEC1_neg',
96 
97  'TEC1_pos+TEC2_pos',
98  'TEC2_pos+TEC3_pos',
99  'TEC3_pos+TEC4_pos',
100  'TEC4_pos+TEC5_pos',
101  'TEC5_pos+TEC6_pos',
102  'TEC6_pos+TEC7_pos',
103  'TEC7_pos+TEC8_pos',
104 
105  'TEC1_neg+TEC2_neg',
106  'TEC2_neg+TEC3_neg',
107  'TEC3_neg+TEC4_neg',
108  'TEC4_neg+TEC5_neg',
109  'TEC5_neg+TEC6_neg',
110  'TEC6_neg+TEC7_neg',
111  'TEC7_neg+TEC8_neg'
112  #other combinations could be added
113  ),
114 
115  BPix = cms.PSet(
116  hitErrorRZ = cms.double(0.006),
117  hitErrorRPhi = cms.double(0.0027),
118  TTRHBuilder = cms.string('TTRHBuilderWithoutAngle4PixelPairs'),
119  HitProducer = cms.string('convPixelRecHits'),
120  useErrorsFromParam = cms.bool(True)
121  ),
122  FPix = cms.PSet(
123  hitErrorRZ = cms.double(0.0036),
124  hitErrorRPhi = cms.double(0.0051),
125  TTRHBuilder = cms.string('TTRHBuilderWithoutAngle4PixelPairs'),
126  HitProducer = cms.string('convPixelRecHits'),
127  useErrorsFromParam = cms.bool(True)
128  ),
129  TIB1 = cms.PSet(
130  TTRHBuilder = cms.string('WithTrackAngle'),
131  matchedRecHits = cms.InputTag("convStripRecHits","matchedRecHit"),
132  #useSimpleRphiHitsCleaner = cms.bool(False),
133  #stereoRecHits = cms.InputTag("siStripMatchedRecHits","stereoRecHitUnmatched"),
134  #rphiRecHits = cms.InputTag("siStripMatchedRecHits","rphiRecHitUnmatched")
135  ),
136  TIB2 = cms.PSet(
137  TTRHBuilder = cms.string('WithTrackAngle'),
138  matchedRecHits = cms.InputTag("convStripRecHits","matchedRecHit"),
139  #useSimpleRphiHitsCleaner = cms.bool(False),
140  #stereoRecHits = cms.InputTag("siStripMatchedRecHits","stereoRecHitUnmatched"),
141  #rphiRecHits = cms.InputTag("siStripMatchedRecHits","rphiRecHitUnmatched")
142  ),
143  TIB3 = cms.PSet(
144  TTRHBuilder = cms.string('WithTrackAngle'),
145  rphiRecHits = cms.InputTag("convStripRecHits","rphiRecHit")
146  ),
147  TIB4 = cms.PSet(
148  TTRHBuilder = cms.string('WithTrackAngle'),
149  rphiRecHits = cms.InputTag("convStripRecHits","rphiRecHit")
150  ),
151  TID1 = cms.PSet(
152  useSimpleRphiHitsCleaner = cms.bool(False),
153  stereoRecHits = cms.InputTag("convStripRecHits","stereoRecHitUnmatched"),
154  matchedRecHits = cms.InputTag("convStripRecHits","matchedRecHit"),
155  useRingSlector = cms.bool(True),
156  TTRHBuilder = cms.string('WithTrackAngle'),
157  rphiRecHits = cms.InputTag("convStripRecHits","rphiRecHitUnmatched"),
158  maxRing = cms.int32(3),
159  minRing = cms.int32(1)
160  ),
161  TID2 = cms.PSet(
162  useSimpleRphiHitsCleaner = cms.bool(False),
163  stereoRecHits = cms.InputTag("convStripRecHits","stereoRecHitUnmatched"),
164  matchedRecHits = cms.InputTag("convStripRecHits","matchedRecHit"),
165  useRingSlector = cms.bool(True),
166  TTRHBuilder = cms.string('WithTrackAngle'),
167  rphiRecHits = cms.InputTag("convStripRecHits","rphiRecHitUnmatched"),
168  maxRing = cms.int32(3),
169  minRing = cms.int32(1)
170  ),
171  TID3 = cms.PSet(
172  useSimpleRphiHitsCleaner = cms.bool(False),
173  stereoRecHits = cms.InputTag("convStripRecHits","stereoRecHitUnmatched"),
174  matchedRecHits = cms.InputTag("convStripRecHits","matchedRecHit"),
175  useRingSlector = cms.bool(True),
176  TTRHBuilder = cms.string('WithTrackAngle'),
177  rphiRecHits = cms.InputTag("convStripRecHits","rphiRecHitUnmatched"),
178  maxRing = cms.int32(2),
179  minRing = cms.int32(1)
180  ),
181  TEC = cms.PSet(
182  useSimpleRphiHitsCleaner = cms.bool(False),
183  minRing = cms.int32(1),
184  matchedRecHits = cms.InputTag("convStripRecHits","matchedRecHit"),
185  useRingSlector = cms.bool(True),
186  TTRHBuilder = cms.string('WithTrackAngle'),
187  rphiRecHits = cms.InputTag("convStripRecHits","rphiRecHitUnmatched"),
188  maxRing = cms.int32(2),
189  stereoRecHits = cms.InputTag("convStripRecHits","stereoRecHitUnmatched")
190  ),
191  TOB1 = cms.PSet(
192  matchedRecHits = cms.InputTag("convStripRecHits","matchedRecHit"),
193  TTRHBuilder = cms.string('WithTrackAngle')
194  ),
195  TOB2 = cms.PSet(
196  matchedRecHits = cms.InputTag("convStripRecHits","matchedRecHit"),
197  TTRHBuilder = cms.string('WithTrackAngle')
198  ),
199  TOB3 = cms.PSet(
200  TTRHBuilder = cms.string('WithTrackAngle'),
201  rphiRecHits = cms.InputTag("convStripRecHits","rphiRecHit")
202  ),
203  TOB4 = cms.PSet(
204  TTRHBuilder = cms.string('WithTrackAngle'),
205  rphiRecHits = cms.InputTag("convStripRecHits","rphiRecHit")
206  ),
207  TOB5 = cms.PSet(
208  TTRHBuilder = cms.string('WithTrackAngle'),
209  rphiRecHits = cms.InputTag("convStripRecHits","rphiRecHit")
210  ),
211  TOB6 = cms.PSet(
212  TTRHBuilder = cms.string('WithTrackAngle'),
213  rphiRecHits = cms.InputTag("convStripRecHits","rphiRecHit")
214  )
215  )
216 
217 
218 photonConvTrajSeedFromSingleLeg.TrackRefitter = cms.InputTag('TrackRefitterStd')
219 
220 # TRACKER DATA CONTROL
222 convMeasurementTracker = RecoTracker.MeasurementDet.MeasurementTrackerESProducer_cfi.MeasurementTracker.clone(
223  ComponentName = 'convMeasurementTracker',
224  pixelClusterProducer = 'convClusters',
225  stripClusterProducer = 'convClusters'
226  )
227 
228 # QUALITY CUTS DURING TRACK BUILDING
229 import TrackingTools.TrajectoryFiltering.TrajectoryFilterESProducer_cfi
230 convCkfTrajectoryFilter = TrackingTools.TrajectoryFiltering.TrajectoryFilterESProducer_cfi.trajectoryFilterESProducer.clone(
231  ComponentName = 'convCkfTrajectoryFilter',
232  filterPset = TrackingTools.TrajectoryFiltering.TrajectoryFilterESProducer_cfi.trajectoryFilterESProducer.filterPset.clone(
233  maxLostHits = 1,
234  minimumNumberOfHits = 3,
235  minPt = 0.1
236  )
237  )
238 
239 # TRACK BUILDING
241 convCkfTrajectoryBuilder = RecoTracker.CkfPattern.GroupedCkfTrajectoryBuilderESProducer_cfi.GroupedCkfTrajectoryBuilder.clone(
242  ComponentName = 'convCkfTrajectoryBuilder',
243  MeasurementTrackerName = 'convMeasurementTracker',
244  trajectoryFilterName = 'convCkfTrajectoryFilter',
245  minNrOfHitsForRebuild = 3
246  )
247 
248 # MAKING OF TRACK CANDIDATES
250 convTrackCandidates = RecoTracker.CkfPattern.CkfTrackCandidates_cfi.ckfTrackCandidates.clone(
251  src = cms.InputTag('photonConvTrajSeedFromSingleLeg:convSeedCandidates'),
252  TrajectoryBuilder = 'convCkfTrajectoryBuilder'
253 )
254 
255 # TRACK FITTING
257 convStepTracks = RecoTracker.TrackProducer.TrackProducer_cfi.TrackProducer.clone(
258  src = 'convTrackCandidates',
259  clusterRemovalInfo = 'convClusters',
260  AlgorithmName = cms.string('iter8')
261  )
262 # TRACK SELECTION AND QUALITY FLAG SETTING.
263 import RecoTracker.FinalTrackSelectors.selectLoose_cfi
264 import RecoTracker.FinalTrackSelectors.selectTight_cfi
265 import RecoTracker.FinalTrackSelectors.selectHighPurity_cfi
266 import RecoTracker.FinalTrackSelectors.simpleTrackListMerger_cfi
267 #since they are equal I comment out the first
268 # convStepLoose = RecoTracker.FinalTrackSelectors.selectLoose_cfi.selectLoose.clone(
269 # src = 'convStepTracks',
270 # keepAllTracks = True,
271 # copyExtras = False,
272 # copyTrajectories = True,
273 # chi2n_par = 2.,
274 # res_par = ( 0.003, 0.001 ),
275 # minNumberLayers = 3,
276 # maxNumberLostLayers = 1,
277 # minNumber3DLayers = 1,
278 # d0_par1 = ( 5., 8.0 ),
279 # dz_par1 = ( 5., 8.0 ),
280 # d0_par2 = ( 5., 8.0 ),
281 # dz_par2 = ( 5., 8.0 )
282 # )
283 # convStepTight = RecoTracker.FinalTrackSelectors.selectTight_cfi.selectTight.clone(
284 # src = 'convStepLoose',
285 # keepAllTracks = True,
286 # copyExtras = False,
287 # copyTrajectories = True,
288 # chi2n_par = 2.,
289 # res_par = ( 0.003, 0.001 ),
290 # minNumberLayers = 3,
291 # maxNumberLostLayers = 1,
292 # minNumber3DLayers = 1,
293 # d0_par1 = ( 5., 8.0 ),
294 # dz_par1 = ( 5., 8.0 ),
295 # d0_par2 = ( 5., 8.0 ),
296 # dz_par2 = ( 5., 8.0 )
297 # )
298 convStep = RecoTracker.FinalTrackSelectors.selectHighPurity_cfi.selectHighPurity.clone(
299 # src = 'convStepTight',
300  src = 'convStepTracks',
301  keepAllTracks = True,
302  copyExtras = False,
303  copyTrajectories = True,
304  applyAdaptedPVCuts = False,
305  chi2n_par = 2.,
306  res_par = ( 0.003, 0.001 ),
307  minNumberLayers = 3,
308  maxNumberLostLayers = 1,
309  minNumber3DLayers = 1,
310  d0_par1 = ( 5., 8.0 ),
311  dz_par1 = ( 5., 8.0 ),
312  d0_par2 = ( 5., 8.0 ),
313  dz_par2 = ( 5., 8.0 )
314  )
315 
316 convSequence = cms.Sequence( TrackRefitterStd * convFilter * convClusters * convPixelRecHits * convStripRecHits
317  * photonConvTrajSeedFromSingleLeg
318  *convTrackCandidates*convStepTracks
319  #*convStepLoose*convStepTight
320  *convStep)
321 
322 
323 
324