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