test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Phase1PU70_LowPtTripletStep_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 # NEW CLUSTERS (remove previously used clusters)
5 lowPtTripletStepClusters = trackClusterRemover.clone(
6  maxChi2 = cms.double(9.0),
7  trajectories = cms.InputTag("lowPtQuadStepTracks"),
8  pixelClusters = cms.InputTag("siPixelClusters"),
9  stripClusters = cms.InputTag("siStripClusters"),
10  oldClusterRemovalInfo = cms.InputTag("lowPtQuadStepClusters"),
11  overrideTrkQuals = cms.InputTag('lowPtQuadStepSelector','lowPtQuadStep'),
12  TrackQuality = cms.string('highPurity'),
13  minNumberOfLayersWithMeasBeforeFiltering = cms.int32(0),
14 )
15 
16 # SEEDING LAYERS
18 lowPtTripletStepSeedLayers = RecoTracker.TkSeedingLayers.PixelLayerTriplets_cfi.PixelLayerTriplets.clone(
19  layerList = cms.vstring('BPix1+BPix2+BPix3', 'BPix2+BPix3+BPix4',
20  'BPix1+BPix3+BPix4', 'BPix1+BPix2+BPix4',
21  'BPix2+BPix3+FPix1_pos', 'BPix2+BPix3+FPix1_neg',
22  'BPix1+BPix2+FPix1_pos', 'BPix1+BPix2+FPix1_neg',
23  'BPix1+BPix3+FPix1_pos', 'BPix1+BPix3+FPix1_neg',
24  'BPix2+FPix1_pos+FPix2_pos', 'BPix2+FPix1_neg+FPix2_neg',
25  'BPix1+FPix1_pos+FPix2_pos', 'BPix1+FPix1_neg+FPix2_neg',
26  'BPix1+BPix2+FPix2_pos', 'BPix1+BPix2+FPix2_neg',
27  'FPix1_pos+FPix2_pos+FPix3_pos', 'FPix1_neg+FPix2_neg+FPix3_neg',
28  'BPix1+FPix2_pos+FPix3_pos', 'BPix1+FPix2_neg+FPix3_neg',
29  'BPix1+FPix1_pos+FPix3_pos', 'BPix1+FPix1_neg+FPix3_neg')
30  )
31 lowPtTripletStepSeedLayers.BPix.skipClusters = cms.InputTag('lowPtTripletStepClusters')
32 lowPtTripletStepSeedLayers.FPix.skipClusters = cms.InputTag('lowPtTripletStepClusters')
33 
34 # SEEDS
36 from RecoTracker.TkTrackingRegions.GlobalTrackingRegionFromBeamSpot_cfi import RegionPsetFomBeamSpotBlock
37 lowPtTripletStepSeeds = RecoTracker.TkSeedGenerator.GlobalSeedsFromTriplets_cff.globalSeedsFromTriplets.clone(
38  RegionFactoryPSet = RegionPsetFomBeamSpotBlock.clone(
39  ComponentName = cms.string('GlobalRegionProducerFromBeamSpot'),
40  RegionPSet = RegionPsetFomBeamSpotBlock.RegionPSet.clone(
41  ptMin = 0.35,
42  originRadius = 0.015,
43  nSigmaZ = 4.0
44  )
45  )
46  )
47 lowPtTripletStepSeeds.OrderedHitsFactoryPSet.SeedingLayers = 'lowPtTripletStepSeedLayers'
48 
50 import RecoPixelVertexing.PixelLowPtUtilities.LowPtClusterShapeSeedComparitor_cfi
51 lowPtTripletStepSeeds.OrderedHitsFactoryPSet.GeneratorPSet.SeedComparitorPSet = RecoPixelVertexing.PixelLowPtUtilities.LowPtClusterShapeSeedComparitor_cfi.LowPtClusterShapeSeedComparitor
52 lowPtTripletStepSeeds.ClusterCheckPSet.doClusterCheck = cms.bool(False)
53 lowPtTripletStepSeeds.OrderedHitsFactoryPSet.GeneratorPSet.maxElement = cms.uint32(0)
54 lowPtTripletStepSeeds.SeedCreatorPSet.magneticField = ''
55 lowPtTripletStepSeeds.SeedCreatorPSet.propagator = 'PropagatorWithMaterial'
56 
57 # QUALITY CUTS DURING TRACK BUILDING
59 lowPtTripletStepStandardTrajectoryFilter = TrackingTools.TrajectoryFiltering.TrajectoryFilter_cff.CkfBaseTrajectoryFilter_block.clone(
60  minimumNumberOfHits = 3,
61  minPt = 0.075
62  )
63 
65 # Composite filter
66 lowPtTripletStepTrajectoryFilter = TrackingTools.TrajectoryFiltering.TrajectoryFilter_cff.CompositeTrajectoryFilter_block.clone(
67  filters = [cms.PSet(refToPSet_ = cms.string('lowPtTripletStepStandardTrajectoryFilter')),
68  cms.PSet(refToPSet_ = cms.string('ClusterShapeTrajectoryFilter'))]
69  )
70 
72 lowPtTripletStepChi2Est = TrackingTools.KalmanUpdators.Chi2MeasurementEstimator_cfi.Chi2MeasurementEstimator.clone(
73  ComponentName = cms.string('lowPtTripletStepChi2Est'),
74  nSigma = cms.double(3.0),
75  MaxChi2 = cms.double(9.0)
76 )
77 
78 # TRACK BUILDING
80 lowPtTripletStepTrajectoryBuilder = RecoTracker.CkfPattern.GroupedCkfTrajectoryBuilder_cfi.GroupedCkfTrajectoryBuilder.clone(
81  MeasurementTrackerName = '',
82  trajectoryFilter = cms.PSet(refToPSet_ = cms.string('lowPtTripletStepTrajectoryFilter')),
83  maxCand = 4,
84  estimator = cms.string('lowPtTripletStepChi2Est'),
85  maxDPhiForLooperReconstruction = cms.double(2.0),
86  # 0.63 GeV is the maximum pT for a charged particle to loop within the 1.1m radius
87  # of the outermost Tracker barrel layer (with B=3.8T)
88  maxPtForLooperReconstruction = cms.double(0.7)
89  )
90 
91 # MAKING OF TRACK CANDIDATES
93 lowPtTripletStepTrackCandidates = RecoTracker.CkfPattern.CkfTrackCandidates_cfi.ckfTrackCandidates.clone(
94  src = cms.InputTag('lowPtTripletStepSeeds'),
95  clustersToSkip = cms.InputTag('lowPtTripletStepClusters'),
96  ### these two parameters are relevant only for the CachingSeedCleanerBySharedInput
97  numHitsForSeedCleaner = cms.int32(50),
98  onlyPixelHitsForSeedCleaner = cms.bool(True),
99  TrajectoryBuilderPSet = cms.PSet(refToPSet_ = cms.string('lowPtTripletStepTrajectoryBuilder')),
100  doSeedingRegionRebuilding = True,
101  useHitsSplitting = True
102 )
103 
104 # TRACK FITTING
106 lowPtTripletStepTracks = RecoTracker.TrackProducer.TrackProducer_cfi.TrackProducer.clone(
107  src = 'lowPtTripletStepTrackCandidates',
108  AlgorithmName = cms.string('lowPtTripletStep'),
109  Fitter = cms.string('FlexibleKFFittingSmoother'),
110  TTRHBuilder=cms.string('WithTrackAngle')
111  )
112 
113 from TrackingTools.TrajectoryCleaning.TrajectoryCleanerBySharedHits_cfi import trajectoryCleanerBySharedHits
114 lowPtTripletStepTrajectoryCleanerBySharedHits = trajectoryCleanerBySharedHits.clone(
115  ComponentName = cms.string('lowPtTripletStepTrajectoryCleanerBySharedHits'),
116  fractionShared = cms.double(0.09),
117  allowSharedFirstHit = cms.bool(True)
118  )
119 lowPtTripletStepTrackCandidates.TrajectoryCleaner = 'lowPtTripletStepTrajectoryCleanerBySharedHits'
120 
121 # Final selection
122 import RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi
123 lowPtTripletStepSelector = RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.multiTrackSelector.clone(
124  src='lowPtTripletStepTracks',
125  trackSelectors= cms.VPSet(
126  RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.looseMTS.clone(
127  name = 'lowPtTripletStepLoose',
128  chi2n_par = 2.0,
129  res_par = ( 0.003, 0.002 ),
130  minNumberLayers = 3,
131  maxNumberLostLayers = 2,
132  minNumber3DLayers = 3,
133  d0_par1 = ( 0.8, 4.0 ),
134  dz_par1 = ( 0.7, 4.0 ),
135  d0_par2 = ( 0.5, 4.0 ),
136  dz_par2 = ( 0.5, 4.0 )
137  ), #end of pset
138  RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.tightMTS.clone(
139  name = 'lowPtTripletStepTight',
140  preFilterName = 'lowPtTripletStepLoose',
141  chi2n_par = 0.9,
142  res_par = ( 0.003, 0.002 ),
143  minNumberLayers = 3,
144  maxNumberLostLayers = 2,
145  minNumber3DLayers = 3,
146  d0_par1 = ( 0.7, 4.0 ),
147  dz_par1 = ( 0.6, 4.0 ),
148  d0_par2 = ( 0.4, 4.0 ),
149  dz_par2 = ( 0.4, 4.0 )
150  ),
151  RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.highpurityMTS.clone(
152  name = 'lowPtTripletStep',
153  preFilterName = 'lowPtTripletStepTight',
154  chi2n_par = 0.5,
155  res_par = ( 0.003, 0.001 ),
156  minNumberLayers = 3,
157  maxNumberLostLayers = 2,
158  minNumber3DLayers = 3,
159  d0_par1 = ( 0.6, 4.0 ),
160  dz_par1 = ( 0.45, 4.0 ),
161  d0_par2 = ( 0.3, 4.0 ),
162  dz_par2 = ( 0.4, 4.0 )
163  ),
164  ) #end of vpset
165  ) #end of clone
166 
167 # Final sequence
168 LowPtTripletStep = cms.Sequence(lowPtTripletStepClusters*
169  lowPtTripletStepSeedLayers*
170  lowPtTripletStepSeeds*
171  lowPtTripletStepTrackCandidates*
172  lowPtTripletStepTracks*
173  lowPtTripletStepSelector)