CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
RunI_PixelLessStep_cff.py
Go to the documentation of this file.
2 
3 ##########################################################################
4 # Large impact parameter tracking using TIB/TID/TEC stereo layer seeding #
5 ##########################################################################
6 
7 
8 pixelLessStepClusters = cms.EDProducer("TrackClusterRemover",
9  clusterLessSolution = cms.bool(True),
10  oldClusterRemovalInfo = cms.InputTag("mixedTripletStepClusters"),
11  trajectories = cms.InputTag("mixedTripletStepTracks"),
12  overrideTrkQuals = cms.InputTag('mixedTripletStep'),
13  TrackQuality = cms.string('highPurity'),
14  minNumberOfLayersWithMeasBeforeFiltering = cms.int32(0),
15  pixelClusters = cms.InputTag("siPixelClusters"),
16  stripClusters = cms.InputTag("siStripClusters"),
17  Common = cms.PSet(
18  maxChi2 = cms.double(9.0)
19  )
20 )
21 
22 # SEEDING LAYERS
23 pixelLessStepSeedLayers = cms.EDProducer("SeedingLayersEDProducer",
24  layerList = cms.vstring('TIB1+TIB2',
25  'TID1_pos+TID2_pos','TID2_pos+TID3_pos',
26  'TEC1_pos+TEC2_pos','TEC2_pos+TEC3_pos','TEC3_pos+TEC4_pos','TEC3_pos+TEC5_pos','TEC4_pos+TEC5_pos',
27  'TID1_neg+TID2_neg','TID2_neg+TID3_neg',
28  'TEC1_neg+TEC2_neg','TEC2_neg+TEC3_neg','TEC3_neg+TEC4_neg','TEC3_neg+TEC5_neg','TEC4_neg+TEC5_neg'),
29  TIB = cms.PSet(
30  TTRHBuilder = cms.string('WithTrackAngle'),
31  matchedRecHits = cms.InputTag("siStripMatchedRecHits","matchedRecHit"),
32  skipClusters = cms.InputTag('pixelLessStepClusters')
33  ),
34  TID = cms.PSet(
35  matchedRecHits = cms.InputTag("siStripMatchedRecHits","matchedRecHit"),
36  skipClusters = cms.InputTag('pixelLessStepClusters'),
37  useRingSlector = cms.bool(True),
38  TTRHBuilder = cms.string('WithTrackAngle'),
39  minRing = cms.int32(1),
40  maxRing = cms.int32(2)
41  ),
42  TEC = cms.PSet(
43  matchedRecHits = cms.InputTag("siStripMatchedRecHits","matchedRecHit"),
44  skipClusters = cms.InputTag('pixelLessStepClusters'),
45  useRingSlector = cms.bool(True),
46  TTRHBuilder = cms.string('WithTrackAngle'),
47  minRing = cms.int32(1),
48  maxRing = cms.int32(2)
49  )
50 )
51 
52 # SEEDS
54 pixelLessStepSeeds = RecoTracker.TkSeedGenerator.GlobalMixedSeeds_cff.globalMixedSeeds.clone()
55 pixelLessStepSeeds.OrderedHitsFactoryPSet.SeedingLayers = 'pixelLessStepSeedLayers'
56 pixelLessStepSeeds.RegionFactoryPSet.RegionPSet.ptMin = 0.7
57 pixelLessStepSeeds.RegionFactoryPSet.RegionPSet.originHalfLength = 15.0
58 pixelLessStepSeeds.RegionFactoryPSet.RegionPSet.originRadius = 2.5
59 pixelLessStepSeeds.SeedCreatorPSet.OriginTransverseErrorMultiplier = 2.0
60 
61 pixelLessStepSeeds.SeedComparitorPSet = cms.PSet(
62  ComponentName = cms.string('PixelClusterShapeSeedComparitor'),
63  FilterAtHelixStage = cms.bool(True),
64  FilterPixelHits = cms.bool(False),
65  FilterStripHits = cms.bool(True),
66  ClusterShapeHitFilterName = cms.string('ClusterShapeHitFilter'),
67  ClusterShapeCacheSrc = cms.InputTag("siPixelClusterShapeCache") # not really needed here since FilterPixelHits=False
68  )
69 
70 # QUALITY CUTS DURING TRACK BUILDING
72 pixelLessStepTrajectoryFilter = TrackingTools.TrajectoryFiltering.TrajectoryFilter_cff.CkfBaseTrajectoryFilter_block.clone(
73  maxLostHits = 0,
74  minimumNumberOfHits = 4,
75  minPt = 0.1
76  )
77 
79 pixelLessStepChi2Est = TrackingTools.KalmanUpdators.Chi2MeasurementEstimatorESProducer_cfi.Chi2MeasurementEstimator.clone(
80  ComponentName = cms.string('pixelLessStepChi2Est'),
81  nSigma = cms.double(3.0),
82  MaxChi2 = cms.double(9.0)
83 )
84 
85 # TRACK BUILDING
87 pixelLessStepTrajectoryBuilder = RecoTracker.CkfPattern.GroupedCkfTrajectoryBuilder_cfi.GroupedCkfTrajectoryBuilder.clone(
88  MeasurementTrackerName = '',
89  trajectoryFilter = cms.PSet(refToPSet_ = cms.string('pixelLessStepTrajectoryFilter')),
90  minNrOfHitsForRebuild = 4,
91  maxCand = 2,
92  alwaysUseInvalidHits = False,
93  estimator = cms.string('pixelLessStepChi2Est'),
94  maxDPhiForLooperReconstruction = cms.double(2.0),
95  maxPtForLooperReconstruction = cms.double(0.7)
96  )
97 
98 # MAKING OF TRACK CANDIDATES
100 pixelLessStepTrackCandidates = RecoTracker.CkfPattern.CkfTrackCandidates_cfi.ckfTrackCandidates.clone(
101  src = cms.InputTag('pixelLessStepSeeds'),
102  clustersToSkip = cms.InputTag('pixelLessStepClusters'),
103  ### these two parameters are relevant only for the CachingSeedCleanerBySharedInput
104  numHitsForSeedCleaner = cms.int32(50),
105  #onlyPixelHitsForSeedCleaner = cms.bool(True),
106  TrajectoryBuilderPSet = cms.PSet(refToPSet_ = cms.string('pixelLessStepTrajectoryBuilder'))
107 )
108 
109 from TrackingTools.TrajectoryCleaning.TrajectoryCleanerBySharedHits_cfi import trajectoryCleanerBySharedHits
110 pixelLessStepTrajectoryCleanerBySharedHits = trajectoryCleanerBySharedHits.clone(
111  ComponentName = cms.string('pixelLessStepTrajectoryCleanerBySharedHits'),
112  fractionShared = cms.double(0.11),
113  allowSharedFirstHit = cms.bool(True)
114  )
115 pixelLessStepTrackCandidates.TrajectoryCleaner = 'pixelLessStepTrajectoryCleanerBySharedHits'
116 
117 
118 # TRACK FITTING
120 pixelLessStepTracks = RecoTracker.TrackProducer.TrackProducer_cfi.TrackProducer.clone(
121  src = 'pixelLessStepTrackCandidates',
122  AlgorithmName = cms.string('iter5'),
123  Fitter = cms.string('FlexibleKFFittingSmoother')
124  )
125 
126 import RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi
127 pixelLessStepSelector = RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.multiTrackSelector.clone(
128  src='pixelLessStepTracks',
129  useAnyMVA = cms.bool(True),
130  GBRForestLabel = cms.string('MVASelectorIter5'),
131  trackSelectors= cms.VPSet(
132  RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.looseMTS.clone(
133  name = 'pixelLessStepLoose',
134  chi2n_par = 0.4,
135  res_par = ( 0.003, 0.001 ),
136  minNumberLayers = 4,
137  maxNumberLostLayers = 1,
138  minNumber3DLayers = 3,
139  d0_par1 = ( 1.2, 4.0 ),
140  dz_par1 = ( 1.2, 4.0 ),
141  d0_par2 = ( 1.2, 4.0 ),
142  dz_par2 = ( 1.2, 4.0 )
143  ),
144  RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.tightMTS.clone(
145  name = 'pixelLessStepTight',
146  preFilterName = 'pixelLessStepLoose',
147  chi2n_par = 0.3,
148  res_par = ( 0.003, 0.001 ),
149  minNumberLayers = 4,
150  maxNumberLostLayers = 0,
151  minNumber3DLayers = 3,
152  d0_par1 = ( 0.9, 4.0 ),
153  dz_par1 = ( 0.9, 4.0 ),
154  d0_par2 = ( 0.9, 4.0 ),
155  dz_par2 = ( 0.9, 4.0 )
156  ),
157  RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.highpurityMTS.clone(
158  name = 'pixelLessStep',
159  preFilterName = 'pixelLessStepTight',
160  chi2n_par = 0.2,
161  res_par = ( 0.003, 0.001 ),
162  minNumberLayers = 4,
163  maxNumberLostLayers = 0,
164  minNumber3DLayers = 3,
165  max_minMissHitOutOrIn = 2,
166  max_lostHitFraction = 1.0,
167  d0_par1 = ( 0.7, 4.0 ),
168  dz_par1 = ( 0.7, 4.0 ),
169  d0_par2 = ( 0.7, 4.0 ),
170  dz_par2 = ( 0.7, 4.0 )
171  ),
172  ) #end of vpset
173  ) #end of clone
174 
175 
176 PixelLessStep = cms.Sequence(pixelLessStepClusters*
177  pixelLessStepSeedLayers*
178  pixelLessStepSeeds*
179  pixelLessStepTrackCandidates*
180  pixelLessStepTracks*
181  pixelLessStepSelector)
182