CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Phase1PU70_PixelPairStep_cff.py
Go to the documentation of this file.
2 
3 
4 # NEW CLUSTERS (remove previously used clusters)
5 pixelPairStepClusters = cms.EDProducer("TrackClusterRemover",
6  clusterLessSolution = cms.bool(True),
7  oldClusterRemovalInfo = cms.InputTag("mixedTripletStepClusters"),
8  trajectories = cms.InputTag("mixedTripletStepTracks"),
9  overrideTrkQuals = cms.InputTag('mixedTripletStep'),
10  TrackQuality = cms.string('highPurity'),
11  minNumberOfLayersWithMeasBeforeFiltering = cms.int32(0),
12  pixelClusters = cms.InputTag("siPixelClusters"),
13  stripClusters = cms.InputTag("siStripClusters"),
14  Common = cms.PSet(
15  maxChi2 = cms.double(9.0)
16  )
17 )
18 
19 # SEEDING LAYERS
20 pixelPairStepSeedLayers = cms.EDProducer("SeedingLayersEDProducer",
21  layerList = cms.vstring('BPix1+BPix2', 'BPix1+BPix3', 'BPix2+BPix3',
22  'BPix2+BPix4', 'BPix3+BPix4',
23  'BPix1+FPix1_pos', 'BPix1+FPix1_neg',
24  'BPix2+FPix1_pos', 'BPix2+FPix1_neg',
25  'FPix1_pos+FPix2_pos', 'FPix1_neg+FPix2_neg',
26  'FPix2_pos+FPix3_pos', 'FPix2_neg+FPix3_neg'),
27  BPix = cms.PSet(
28  TTRHBuilder = cms.string('TTRHBuilderWithoutAngle4PixelPairs'),
29  HitProducer = cms.string('siPixelRecHits'),
30  skipClusters = cms.InputTag('pixelPairStepClusters')
31  ),
32  FPix = cms.PSet(
33  TTRHBuilder = cms.string('TTRHBuilderWithoutAngle4PixelPairs'),
34  HitProducer = cms.string('siPixelRecHits'),
35  skipClusters = cms.InputTag('pixelPairStepClusters')
36  )
37 )
38 
39 # SEEDS
41 pixelPairStepSeeds = RecoTracker.TkSeedGenerator.GlobalSeedsFromPairsWithVertices_cff.globalSeedsFromPairsWithVertices.clone()
42 pixelPairStepSeeds.RegionFactoryPSet.RegionPSet.ptMin = 1.2
43 pixelPairStepSeeds.RegionFactoryPSet.RegionPSet.originRadius = 0.015
44 pixelPairStepSeeds.RegionFactoryPSet.RegionPSet.fixedError = 0.03
45 pixelPairStepSeeds.OrderedHitsFactoryPSet.SeedingLayers = cms.InputTag('pixelPairStepSeedLayers')
46 
47 pixelPairStepSeeds.SeedComparitorPSet = cms.PSet(
48  ComponentName = cms.string('PixelClusterShapeSeedComparitor'),
49  FilterAtHelixStage = cms.bool(True),
50  FilterPixelHits = cms.bool(True),
51  FilterStripHits = cms.bool(False),
52  ClusterShapeHitFilterName = cms.string('ClusterShapeHitFilter')
53  )
54 pixelPairStepSeeds.ClusterCheckPSet.doClusterCheck = cms.bool(False)
55 pixelPairStepSeeds.OrderedHitsFactoryPSet.maxElement = cms.uint32(0)
56 
57 # QUALITY CUTS DURING TRACK BUILDING
58 import TrackingTools.TrajectoryFiltering.TrajectoryFilterESProducer_cfi
59 pixelPairStepTrajectoryFilter = TrackingTools.TrajectoryFiltering.TrajectoryFilterESProducer_cfi.trajectoryFilterESProducer.clone(
60  ComponentName = 'pixelPairStepTrajectoryFilter',
61  filterPset = TrackingTools.TrajectoryFiltering.TrajectoryFilterESProducer_cfi.trajectoryFilterESProducer.filterPset.clone(
62  maxLostHitsFraction = cms.double(1./10.),
63  constantValueForLostHitsFractionFilter = cms.double(0.801),
64  minimumNumberOfHits = 3,
65  minPt = 0.1
66  )
67  )
68 
70 pixelPairStepChi2Est = TrackingTools.KalmanUpdators.Chi2MeasurementEstimatorESProducer_cfi.Chi2MeasurementEstimator.clone(
71  ComponentName = cms.string('pixelPairStepChi2Est'),
72  nSigma = cms.double(3.0),
73  MaxChi2 = cms.double(16.0)
74 )
75 
76 # TRACK BUILDING
78 pixelPairStepTrajectoryBuilder = RecoTracker.CkfPattern.GroupedCkfTrajectoryBuilderESProducer_cfi.GroupedCkfTrajectoryBuilder.clone(
79  ComponentName = 'pixelPairStepTrajectoryBuilder',
80  MeasurementTrackerName = '',
81  trajectoryFilterName = 'pixelPairStepTrajectoryFilter',
82  clustersToSkip = cms.InputTag('pixelPairStepClusters'),
83  maxCand = 3,
84  estimator = cms.string('pixelPairStepChi2Est'),
85  maxDPhiForLooperReconstruction = cms.double(2.0),
86  maxPtForLooperReconstruction = cms.double(0.7)
87  )
88 
89 # MAKING OF TRACK CANDIDATES
91 pixelPairStepTrackCandidates = RecoTracker.CkfPattern.CkfTrackCandidates_cfi.ckfTrackCandidates.clone(
92  src = cms.InputTag('pixelPairStepSeeds'),
93  TrajectoryBuilder = 'pixelPairStepTrajectoryBuilder',
94  ### these two parameters are relevant only for the CachingSeedCleanerBySharedInput
95  numHitsForSeedCleaner = cms.int32(50),
96  onlyPixelHitsForSeedCleaner = cms.bool(True)
97 )
98 
99 from TrackingTools.TrajectoryCleaning.TrajectoryCleanerBySharedHits_cfi import trajectoryCleanerBySharedHits
100 pixelPairStepTrajectoryCleanerBySharedHits = trajectoryCleanerBySharedHits.clone(
101  ComponentName = cms.string('pixelPairStepTrajectoryCleanerBySharedHits'),
102  fractionShared = cms.double(0.095),
103  allowSharedFirstHit = cms.bool(True)
104  )
105 pixelPairStepTrackCandidates.TrajectoryCleaner = 'pixelPairStepTrajectoryCleanerBySharedHits'
106 
107 # TRACK FITTING
109 pixelPairStepTracks = RecoTracker.TrackProducer.TrackProducer_cfi.TrackProducer.clone(
110  AlgorithmName = cms.string('iter6'),
111  src = 'pixelPairStepTrackCandidates',
112  Fitter = cms.string('FlexibleKFFittingSmoother'),
113  TTRHBuilder=cms.string('WithTrackAngle')
114  )
115 
116 # Final selection
117 import RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi
118 pixelPairStepSelector = RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.multiTrackSelector.clone(
119  src='pixelPairStepTracks',
120  trackSelectors= cms.VPSet(
121  RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.looseMTS.clone(
122  name = 'pixelPairStepLoose',
123  chi2n_par = 0.9,
124  res_par = ( 0.003, 0.002 ),
125  minNumberLayers = 3,
126  maxNumberLostLayers = 3,
127  minNumber3DLayers = 3,
128  d0_par1 = ( 0.4, 4.0 ),
129  dz_par1 = ( 0.4, 4.0 ),
130  d0_par2 = ( 0.4, 4.0 ),
131  dz_par2 = ( 0.4, 4.0 )
132  ), #end of pset
133  RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.tightMTS.clone(
134  name = 'pixelPairStepTight',
135  preFilterName = 'pixelPairStepLoose',
136  chi2n_par = 0.6,
137  res_par = ( 0.003, 0.002 ),
138  minNumberLayers = 4,
139  maxNumberLostLayers = 2,
140  minNumber3DLayers = 3,
141  d0_par1 = ( 0.3, 4.0 ),
142  dz_par1 = ( 0.3, 4.0 ),
143  d0_par2 = ( 0.3, 4.0 ),
144  dz_par2 = ( 0.3, 4.0 )
145  ),
146  RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.highpurityMTS.clone(
147  name = 'pixelPairStep',
148  preFilterName = 'pixelPairStepTight',
149  chi2n_par = 0.4,
150  res_par = ( 0.003, 0.001 ),
151  minNumberLayers = 4,
152  maxNumberLostLayers = 1,
153  minNumber3DLayers = 3,
154  d0_par1 = ( 0.2, 4.0 ),
155  dz_par1 = ( 0.25, 4.0 ),
156  d0_par2 = ( 0.25, 4.0 ),
157  dz_par2 = ( 0.25, 4.0 )
158  ),
159  ) #end of vpset
160  ) #end of clone
161 
162 # Final sequence
163 PixelPairStep = cms.Sequence(pixelPairStepClusters*
164  pixelPairStepSeedLayers*
165  pixelPairStepSeeds*
166  pixelPairStepTrackCandidates*
167  pixelPairStepTracks*
168  pixelPairStepSelector)