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