CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
LowPU_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("lowPtTripletStepTracks"),
9  pixelClusters = cms.InputTag("siPixelClusters"),
10  stripClusters = cms.InputTag("siStripClusters"),
11  oldClusterRemovalInfo = cms.InputTag("lowPtTripletStepClusters"),
12  overrideTrkQuals = cms.InputTag('lowPtTripletStepSelector','lowPtTripletStep'),
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  'BPix1+FPix1_pos', 'BPix1+FPix1_neg',
21  'BPix2+FPix1_pos', 'BPix2+FPix1_neg',
22  'BPix1+FPix2_pos', 'BPix1+FPix2_neg',
23  'FPix1_pos+FPix2_pos', 'FPix1_neg+FPix2_neg'),
24  BPix = cms.PSet(
25  TTRHBuilder = cms.string('WithTrackAngle'),
26  HitProducer = cms.string('siPixelRecHits'),
27  skipClusters = cms.InputTag('pixelPairStepClusters')
28  ),
29  FPix = cms.PSet(
30  TTRHBuilder = cms.string('WithTrackAngle'),
31  HitProducer = cms.string('siPixelRecHits'),
32  skipClusters = cms.InputTag('pixelPairStepClusters')
33  )
34 )
35 
36 # SEEDS
38 pixelPairStepSeeds = RecoTracker.TkSeedGenerator.GlobalSeedsFromPairsWithVertices_cff.globalSeedsFromPairsWithVertices.clone()
39 pixelPairStepSeeds.RegionFactoryPSet.RegionPSet.ptMin = 0.3
40 pixelPairStepSeeds.RegionFactoryPSet.RegionPSet.originRadius = 0.015
41 pixelPairStepSeeds.RegionFactoryPSet.RegionPSet.fixedError = 0.03
42 pixelPairStepSeeds.OrderedHitsFactoryPSet.SeedingLayers = cms.InputTag('pixelPairStepSeedLayers')
43 
44 # QUALITY CUTS DURING TRACK BUILDING
46 pixelPairStepTrajectoryFilter = TrackingTools.TrajectoryFiltering.TrajectoryFilter_cff.CkfBaseTrajectoryFilter_block.clone(
47  minimumNumberOfHits = 3,
48  minPt = 0.05
49  )
50 
52 pixelPairStepChi2Est = TrackingTools.KalmanUpdators.Chi2MeasurementEstimatorESProducer_cfi.Chi2MeasurementEstimator.clone(
53  ComponentName = cms.string('pixelPairStepChi2Est'),
54  nSigma = cms.double(3.0),
55  MaxChi2 = cms.double(25.0)
56 )
57 
58 # TRACK BUILDING
60 pixelPairStepTrajectoryBuilder = RecoTracker.CkfPattern.GroupedCkfTrajectoryBuilder_cfi.GroupedCkfTrajectoryBuilder.clone(
61  MeasurementTrackerName = '',
62  trajectoryFilter = cms.PSet(refToPSet_ = cms.string('pixelPairStepTrajectoryFilter')),
63  clustersToSkip = cms.InputTag('pixelPairStepClusters'),
64  maxCand = 6,
65  estimator = cms.string('pixelPairStepChi2Est'),
66  maxDPhiForLooperReconstruction = cms.double(2.0),
67  maxPtForLooperReconstruction = cms.double(0.7)
68  )
69 
70 # MAKING OF TRACK CANDIDATES
72 pixelPairStepTrackCandidates = RecoTracker.CkfPattern.CkfTrackCandidates_cfi.ckfTrackCandidates.clone(
73  src = cms.InputTag('pixelPairStepSeeds'),
74  TrajectoryBuilderPSet = cms.PSet(refToPSet_ = cms.string('pixelPairStepTrajectoryBuilder')),
75  ### these two parameters are relevant only for the CachingSeedCleanerBySharedInput
76  numHitsForSeedCleaner = cms.int32(50),
77  onlyPixelHitsForSeedCleaner = cms.bool(True),
78 
79 )
80 
81 from TrackingTools.TrajectoryCleaning.TrajectoryCleanerBySharedHits_cfi import trajectoryCleanerBySharedHits
82 pixelPairStepTrajectoryCleanerBySharedHits = trajectoryCleanerBySharedHits.clone(
83  ComponentName = cms.string('pixelPairStepTrajectoryCleanerBySharedHits'),
84  fractionShared = cms.double(0.19),
85  allowSharedFirstHit = cms.bool(True)
86  )
87 pixelPairStepTrackCandidates.TrajectoryCleaner = 'pixelPairStepTrajectoryCleanerBySharedHits'
88 
89 
90 # TRACK FITTING
92 pixelPairStepTracks = RecoTracker.TrackProducer.TrackProducer_cfi.TrackProducer.clone(
93  AlgorithmName = cms.string('pixelPairStep'),
94  src = 'pixelPairStepTrackCandidates',
95  Fitter = cms.string('FlexibleKFFittingSmoother')
96  )
97 
98 # Final selection
100 import RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi
101 pixelPairStepSelector = RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.multiTrackSelector.clone(
102  src='pixelPairStepTracks',
103  trackSelectors= cms.VPSet(
104  RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.looseMTS.clone(
105  name = 'pixelPairStepLoose',
106  chi2n_par = 1.0,
107  res_par = ( 0.003, 0.002 ),
108  minNumberLayers = 3,
109  maxNumberLostLayers = 3,
110  minNumber3DLayers = 3,
111  d0_par1 = ( 0.55, 4.0 ),
112  dz_par1 = ( 0.55, 4.0 ),
113  d0_par2 = ( 0.5, 4.0 ),
114  dz_par2 = ( 0.5, 4.0 )
115  ), #end of pset
116  RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.tightMTS.clone(
117  name = 'pixelPairStepTight',
118  preFilterName = 'pixelPairStepLoose',
119  chi2n_par = 0.8,
120  res_par = ( 0.003, 0.002 ),
121  minNumberLayers = 3,
122  maxNumberLostLayers = 2,
123  minNumber3DLayers = 3,
124  d0_par1 = ( 0.5, 4.0 ),
125  dz_par1 = ( 0.5, 4.0 ),
126  d0_par2 = ( 0.4, 4.0 ),
127  dz_par2 = ( 0.4, 4.0 )
128  ),
129  RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.highpurityMTS.clone(
130  name = 'pixelPairStep',
131  preFilterName = 'pixelPairStepTight',
132  chi2n_par = 0.6,
133  res_par = ( 0.003, 0.001 ),
134  minNumberLayers = 3,
135  maxNumberLostLayers = 2,
136  minNumber3DLayers = 3,
137  d0_par1 = ( 0.45, 4.0 ),
138  dz_par1 = ( 0.45, 4.0 ),
139  d0_par2 = ( 0.3, 4.0 ),
140  dz_par2 = ( 0.35, 4.0 )
141  ),
142  ) #end of vpset
143  ) #end of clone
144 
145 # Final sequence
146 PixelPairStep = cms.Sequence(pixelPairStepClusters*
147  pixelPairStepSeedLayers*
148  pixelPairStepSeeds*
149  pixelPairStepTrackCandidates*
150  pixelPairStepTracks*
151  pixelPairStepSelector)