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)
6 pixelPairStepClusters = trackClusterRemover.clone(
7  maxChi2 = cms.double(9.0),
8  trajectories = cms.InputTag("detachedQuadStepTracks"),
9  pixelClusters = cms.InputTag("siPixelClusters"),
10  stripClusters = cms.InputTag("siStripClusters"),
11  oldClusterRemovalInfo = cms.InputTag("detachedQuadStepClusters"),
12  overrideTrkQuals = cms.InputTag('detachedQuadStep'),
13  TrackQuality = cms.string('highPurity'),
14  minNumberOfLayersWithMeasBeforeFiltering = cms.int32(0),
15 )
16 
17 # SEEDING LAYERS
18 pixelPairStepSeedLayers = cms.EDProducer("SeedingLayersEDProducer",
19  layerList = cms.vstring('BPix1+BPix2', 'BPix1+BPix3', 'BPix2+BPix3',
20  'BPix2+BPix4', 'BPix3+BPix4',
21  'BPix1+FPix1_pos', 'BPix1+FPix1_neg',
22  'BPix2+FPix1_pos', 'BPix2+FPix1_neg',
23  'FPix1_pos+FPix2_pos', 'FPix1_neg+FPix2_neg',
24  'FPix2_pos+FPix3_pos', 'FPix2_neg+FPix3_neg'),
25  BPix = cms.PSet(
26  TTRHBuilder = cms.string('WithTrackAngle'),
27  HitProducer = cms.string('siPixelRecHits'),
28  skipClusters = cms.InputTag('pixelPairStepClusters')
29  ),
30  FPix = cms.PSet(
31  TTRHBuilder = cms.string('WithTrackAngle'),
32  HitProducer = cms.string('siPixelRecHits'),
33  skipClusters = cms.InputTag('pixelPairStepClusters')
34  )
35 )
36 
37 # SEEDS
39 pixelPairStepSeeds = RecoTracker.TkSeedGenerator.GlobalSeedsFromPairsWithVertices_cff.globalSeedsFromPairsWithVertices.clone()
40 pixelPairStepSeeds.RegionFactoryPSet.RegionPSet.ptMin = 1.5
41 pixelPairStepSeeds.RegionFactoryPSet.RegionPSet.originRadius = 0.015
42 pixelPairStepSeeds.RegionFactoryPSet.RegionPSet.fixedError = 0.03
43 pixelPairStepSeeds.OrderedHitsFactoryPSet.SeedingLayers = cms.InputTag('pixelPairStepSeedLayers')
44 
45 pixelPairStepSeeds.SeedComparitorPSet = cms.PSet(
46  ComponentName = cms.string('PixelClusterShapeSeedComparitor'),
47  FilterAtHelixStage = cms.bool(True),
48  FilterPixelHits = cms.bool(True),
49  FilterStripHits = cms.bool(False),
50  ClusterShapeHitFilterName = cms.string('ClusterShapeHitFilter'),
51  ClusterShapeCacheSrc = cms.InputTag('siPixelClusterShapeCache')
52  )
53 pixelPairStepSeeds.ClusterCheckPSet.doClusterCheck = cms.bool(False)
54 pixelPairStepSeeds.OrderedHitsFactoryPSet.maxElement = cms.uint32(0)
55 pixelPairStepSeeds.SeedCreatorPSet.magneticField = ''
56 pixelPairStepSeeds.SeedCreatorPSet.propagator = 'PropagatorWithMaterial'
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  maxCand = 3,
80  estimator = cms.string('pixelPairStepChi2Est'),
81  maxDPhiForLooperReconstruction = cms.double(2.0),
82  maxPtForLooperReconstruction = cms.double(0.7)
83  )
84 
85 # MAKING OF TRACK CANDIDATES
87 pixelPairStepTrackCandidates = RecoTracker.CkfPattern.CkfTrackCandidates_cfi.ckfTrackCandidates.clone(
88  src = cms.InputTag('pixelPairStepSeeds'),
89  clustersToSkip = cms.InputTag('pixelPairStepClusters'),
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('pixelPairStep'),
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)