test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Phase1PU140_HighPtTripletStep_cff.py
Go to the documentation of this file.
1 ### who is using this python file ?
2 ### I found it obsolete, at least in terms of the TrackClusterRemover setting
3 ### now, it is ok, but ....
4 import FWCore.ParameterSet.Config as cms
5 
6 # NEW CLUSTERS (remove previously used clusters)
8 highPtTripletStepClusters = trackClusterRemover.clone(
9  maxChi2 = cms.double(9.0),
10  trajectories = cms.InputTag("initialStepTracks"),
11  pixelClusters = cms.InputTag("siPixelClusters"),
12  stripClusters = cms.InputTag("siStripClusters"),
13  overrideTrkQuals = cms.InputTag('initialStepSelector','initialStep'),
14  TrackQuality = cms.string('highPurity'),
15  minNumberOfLayersWithMeasBeforeFiltering = cms.int32(0),
16 )
17 
18 # SEEDING LAYERS
20 highPtTripletStepSeedLayers = RecoTracker.TkSeedingLayers.PixelLayerTriplets_cfi.PixelLayerTriplets.clone(
21  layerList = cms.vstring('BPix1+BPix2+BPix3', 'BPix2+BPix3+BPix4',
22  'BPix1+BPix3+BPix4', 'BPix1+BPix2+BPix4',
23  'BPix2+BPix3+FPix1_pos', 'BPix2+BPix3+FPix1_neg',
24  'BPix1+BPix2+FPix1_pos', 'BPix1+BPix2+FPix1_neg',
25  'BPix1+BPix3+FPix1_pos', 'BPix1+BPix3+FPix1_neg',
26  'BPix2+FPix1_pos+FPix2_pos', 'BPix2+FPix1_neg+FPix2_neg',
27  'BPix1+FPix1_pos+FPix2_pos', 'BPix1+FPix1_neg+FPix2_neg',
28  'BPix1+BPix2+FPix2_pos', 'BPix1+BPix2+FPix2_neg',
29  'FPix1_pos+FPix2_pos+FPix3_pos', 'FPix1_neg+FPix2_neg+FPix3_neg',
30  'BPix1+FPix2_pos+FPix3_pos', 'BPix1+FPix2_neg+FPix3_neg',
31  'BPix1+FPix1_pos+FPix3_pos', 'BPix1+FPix1_neg+FPix3_neg')
32  )
33 highPtTripletStepSeedLayers.BPix.skipClusters = cms.InputTag('highPtTripletStepClusters')
34 highPtTripletStepSeedLayers.FPix.skipClusters = cms.InputTag('highPtTripletStepClusters')
35 
36 # SEEDS
38 from RecoTracker.TkTrackingRegions.GlobalTrackingRegionFromBeamSpot_cfi import RegionPsetFomBeamSpotBlock
39 highPtTripletStepSeeds = RecoTracker.TkSeedGenerator.GlobalSeedsFromTriplets_cff.globalSeedsFromTriplets.clone(
40  RegionFactoryPSet = RegionPsetFomBeamSpotBlock.clone(
41  ComponentName = cms.string('GlobalRegionProducerFromBeamSpot'),
42  RegionPSet = RegionPsetFomBeamSpotBlock.RegionPSet.clone(
43  ptMin = 0.9,
44  originRadius = 0.02,
45  nSigmaZ = 4.0
46  )
47  )
48  )
49 highPtTripletStepSeeds.OrderedHitsFactoryPSet.SeedingLayers = 'highPtTripletStepSeedLayers'
50 highPtTripletStepSeeds.SeedCreatorPSet.magneticField = ''
51 highPtTripletStepSeeds.SeedCreatorPSet.propagator = 'PropagatorWithMaterial'
52 
54 import RecoPixelVertexing.PixelLowPtUtilities.LowPtClusterShapeSeedComparitor_cfi
55 highPtTripletStepSeeds.OrderedHitsFactoryPSet.GeneratorPSet.SeedComparitorPSet = RecoPixelVertexing.PixelLowPtUtilities.LowPtClusterShapeSeedComparitor_cfi.LowPtClusterShapeSeedComparitor
56 highPtTripletStepSeeds.ClusterCheckPSet.doClusterCheck = cms.bool(False)
57 highPtTripletStepSeeds.OrderedHitsFactoryPSet.GeneratorPSet.maxElement = cms.uint32(0)
58 
59 # QUALITY CUTS DURING TRACK BUILDING
61 highPtTripletStepTrajectoryFilter = TrackingTools.TrajectoryFiltering.TrajectoryFilter_cff.CkfBaseTrajectoryFilter_block.clone(
62  minimumNumberOfHits = 3,
63  minPt = 0.2
64  )
65 
67 highPtTripletStepChi2Est = TrackingTools.KalmanUpdators.Chi2MeasurementEstimator_cfi.Chi2MeasurementEstimator.clone(
68  ComponentName = cms.string('highPtTripletStepChi2Est'),
69  nSigma = cms.double(3.0),
70  MaxChi2 = cms.double(30.0)
71 )
72 
73 # TRACK BUILDING
75 highPtTripletStepTrajectoryBuilder = RecoTracker.CkfPattern.GroupedCkfTrajectoryBuilder_cfi.GroupedCkfTrajectoryBuilder.clone(
76  MeasurementTrackerName = '',
77  trajectoryFilter = cms.PSet(refToPSet_ = cms.string('highPtTripletStepTrajectoryFilter')),
78  maxCand = 4,
79  estimator = cms.string('highPtTripletStepChi2Est'),
80  maxDPhiForLooperReconstruction = cms.double(2.0),
81  # 0.63 GeV is the maximum pT for a charged particle to loop within the 1.1m radius
82  # of the outermost Tracker barrel layer (with B=3.8T)
83  maxPtForLooperReconstruction = cms.double(0.7)
84  )
85 
86 # MAKING OF TRACK CANDIDATES
88 highPtTripletStepTrackCandidates = RecoTracker.CkfPattern.CkfTrackCandidates_cfi.ckfTrackCandidates.clone(
89  src = cms.InputTag('highPtTripletStepSeeds'),
90  clustersToSkip = cms.InputTag('highPtTripletStepClusters'),
91  ### these two parameters are relevant only for the CachingSeedCleanerBySharedInput
92  numHitsForSeedCleaner = cms.int32(50),
93  onlyPixelHitsForSeedCleaner = cms.bool(True),
94  TrajectoryBuilderPSet = cms.PSet(refToPSet_ = cms.string('highPtTripletStepTrajectoryBuilder')),
95  doSeedingRegionRebuilding = True,
96  useHitsSplitting = True
97 )
98 
99 # TRACK FITTING
101 highPtTripletStepTracks = RecoTracker.TrackProducer.TrackProducer_cfi.TrackProducer.clone(
102  src = 'highPtTripletStepTrackCandidates',
103  AlgorithmName = cms.string('highPtTripletStep'),
104  Fitter = cms.string('FlexibleKFFittingSmoother'),
105  TTRHBuilder=cms.string('WithTrackAngle')
106  )
107 
108 from TrackingTools.TrajectoryCleaning.TrajectoryCleanerBySharedHits_cfi import trajectoryCleanerBySharedHits
109 highPtTripletStepTrajectoryCleanerBySharedHits = trajectoryCleanerBySharedHits.clone(
110  ComponentName = cms.string('highPtTripletStepTrajectoryCleanerBySharedHits'),
111  fractionShared = cms.double(0.16),
112  allowSharedFirstHit = cms.bool(True)
113  )
114 highPtTripletStepTrackCandidates.TrajectoryCleaner = 'highPtTripletStepTrajectoryCleanerBySharedHits'
115 
116 # Final selection
117 import RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi
118 highPtTripletStepSelector = RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.multiTrackSelector.clone(
119  src='highPtTripletStepTracks',
120  trackSelectors= cms.VPSet(
121  RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.looseMTS.clone(
122  name = 'highPtTripletStepLoose',
123  chi2n_par = 2.0,
124  res_par = ( 0.003, 0.002 ),
125  minNumberLayers = 3,
126  maxNumberLostLayers = 3,
127  minNumber3DLayers = 3,
128  d0_par1 = ( 0.7, 4.0 ),
129  dz_par1 = ( 0.8, 4.0 ),
130  d0_par2 = ( 0.4, 4.0 ),
131  dz_par2 = ( 0.6, 4.0 )
132  ), #end of pset
133  RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.tightMTS.clone(
134  name = 'highPtTripletStepTight',
135  preFilterName = 'highPtTripletStepLoose',
136  chi2n_par = 1.0,
137  res_par = ( 0.003, 0.002 ),
138  minNumberLayers = 3,
139  maxNumberLostLayers = 2,
140  minNumber3DLayers = 3,
141  d0_par1 = ( 0.6, 4.0 ),
142  dz_par1 = ( 0.7, 4.0 ),
143  d0_par2 = ( 0.35, 4.0 ),
144  dz_par2 = ( 0.5, 4.0 )
145  ),
146  RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.highpurityMTS.clone(
147  name = 'highPtTripletStep',
148  preFilterName = 'highPtTripletStepTight',
149  chi2n_par = 0.7,
150  res_par = ( 0.003, 0.001 ),
151  minNumberLayers = 3,
152  maxNumberLostLayers = 2,
153  minNumber3DLayers = 3,
154  d0_par1 = ( 0.5, 4.0 ),
155  dz_par1 = ( 0.7, 4.0 ),
156  d0_par2 = ( 0.25, 4.0 ),
157  dz_par2 = ( 0.4, 4.0 )
158  ),
159  ) #end of vpset
160  ) #end of clone
161 
162 # Final sequence
163 HighPtTripletStep = cms.Sequence(highPtTripletStepClusters*
164  highPtTripletStepSeedLayers*
165  highPtTripletStepSeeds*
166  highPtTripletStepTrackCandidates*
167  highPtTripletStepTracks*
168  highPtTripletStepSelector)