CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Phase1PU140_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("detachedQuadStepClusters"),
8  trajectories = cms.InputTag("detachedQuadStepTracks"),
9  overrideTrkQuals = cms.InputTag('detachedQuadStep'),
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.5
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  ClusterShapeCacheSrc = cms.InputTag('siPixelClusterShapeCache')
54  )
55 pixelPairStepSeeds.ClusterCheckPSet.doClusterCheck = cms.bool(False)
56 pixelPairStepSeeds.OrderedHitsFactoryPSet.maxElement = cms.uint32(0)
57 
58 # QUALITY CUTS DURING TRACK BUILDING
60 pixelPairStepTrajectoryFilter = TrackingTools.TrajectoryFiltering.TrajectoryFilter_cff.CkfBaseTrajectoryFilter_block.clone(
61  maxLostHitsFraction = cms.double(1./10.),
62  constantValueForLostHitsFractionFilter = cms.double(0.701),
63  minimumNumberOfHits = 3,
64  minPt = 0.1
65  )
66 
68 pixelPairStepChi2Est = TrackingTools.KalmanUpdators.Chi2MeasurementEstimatorESProducer_cfi.Chi2MeasurementEstimator.clone(
69  ComponentName = cms.string('pixelPairStepChi2Est'),
70  nSigma = cms.double(3.0),
71  MaxChi2 = cms.double(9.0)
72 )
73 
74 # TRACK BUILDING
76 pixelPairStepTrajectoryBuilder = RecoTracker.CkfPattern.GroupedCkfTrajectoryBuilder_cfi.GroupedCkfTrajectoryBuilder.clone(
77  MeasurementTrackerName = '',
78  trajectoryFilter = cms.PSet(refToPSet_ = cms.string('pixelPairStepTrajectoryFilter')),
79  clustersToSkip = cms.InputTag('pixelPairStepClusters'),
80  maxCand = 3,
81  estimator = cms.string('pixelPairStepChi2Est'),
82  maxDPhiForLooperReconstruction = cms.double(2.0),
83  maxPtForLooperReconstruction = cms.double(0.7)
84  )
85 
86 # MAKING OF TRACK CANDIDATES
88 pixelPairStepTrackCandidates = RecoTracker.CkfPattern.CkfTrackCandidates_cfi.ckfTrackCandidates.clone(
89  src = cms.InputTag('pixelPairStepSeeds'),
90  TrajectoryBuilderPSet = cms.PSet(refToPSet_ = cms.string('pixelPairStepTrajectoryBuilder')),
91  ### these two parameters are relevant only for the CachingSeedCleanerBySharedInput
92  numHitsForSeedCleaner = cms.int32(50),
93  onlyPixelHitsForSeedCleaner = cms.bool(True)
94 )
95 
96 from TrackingTools.TrajectoryCleaning.TrajectoryCleanerBySharedHits_cfi import trajectoryCleanerBySharedHits
97 pixelPairStepTrajectoryCleanerBySharedHits = trajectoryCleanerBySharedHits.clone(
98  ComponentName = cms.string('pixelPairStepTrajectoryCleanerBySharedHits'),
99  fractionShared = cms.double(0.09),
100  allowSharedFirstHit = cms.bool(True)
101  )
102 pixelPairStepTrackCandidates.TrajectoryCleaner = 'pixelPairStepTrajectoryCleanerBySharedHits'
103 
104 # TRACK FITTING
106 pixelPairStepTracks = RecoTracker.TrackProducer.TrackProducer_cfi.TrackProducer.clone(
107  AlgorithmName = cms.string('iter5'),
108  src = 'pixelPairStepTrackCandidates',
109  Fitter = cms.string('FlexibleKFFittingSmoother'),
110  TTRHBuilder=cms.string('WithTrackAngle')
111  )
112 
113 # Final selection
114 import RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi
115 pixelPairStepSelector = RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.multiTrackSelector.clone(
116  src='pixelPairStepTracks',
117  trackSelectors= cms.VPSet(
118  RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.looseMTS.clone(
119  name = 'pixelPairStepLoose',
120  chi2n_par = 0.7,
121  res_par = ( 0.003, 0.002 ),
122  minNumberLayers = 3,
123  maxNumberLostLayers = 2,
124  minNumber3DLayers = 3,
125  d0_par1 = ( 0.3, 4.0 ),
126  dz_par1 = ( 0.35, 4.0 ),
127  d0_par2 = ( 0.35, 4.0 ),
128  dz_par2 = ( 0.35, 4.0 )
129  ), #end of pset
130  RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.tightMTS.clone(
131  name = 'pixelPairStepTight',
132  preFilterName = 'pixelPairStepLoose',
133  chi2n_par = 0.5,
134  res_par = ( 0.003, 0.002 ),
135  minNumberLayers = 4,
136  maxNumberLostLayers = 2,
137  minNumber3DLayers = 3,
138  d0_par1 = ( 0.2, 4.0 ),
139  dz_par1 = ( 0.25, 4.0 ),
140  d0_par2 = ( 0.25, 4.0 ),
141  dz_par2 = ( 0.25, 4.0 )
142  ),
143  RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.highpurityMTS.clone(
144  name = 'pixelPairStep',
145  preFilterName = 'pixelPairStepTight',
146  chi2n_par = 0.25,
147  res_par = ( 0.003, 0.001 ),
148  minNumberLayers = 5,
149  maxNumberLostLayers = 1,
150  minNumber3DLayers = 4,
151  d0_par1 = ( 0.15, 4.0 ),
152  dz_par1 = ( 0.2, 4.0 ),
153  d0_par2 = ( 0.2, 4.0 ),
154  dz_par2 = ( 0.2, 4.0 )
155  ),
156  ) #end of vpset
157  ) #end of clone
158 
159 # Final sequence
160 PixelPairStep = cms.Sequence(pixelPairStepClusters*
161  pixelPairStepSeedLayers*
162  pixelPairStepSeeds*
163  pixelPairStepTrackCandidates*
164  pixelPairStepTracks*
165  pixelPairStepSelector)