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