CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
LowPtForwardTripletStep_cff.py
Go to the documentation of this file.
2 
3 # NEW CLUSTERS (remove previously used clusters)
5 lowPtForwardTripletStepClusters = trackClusterRemover.clone(
6  maxChi2 = cms.double(9.0),
7  trajectories = cms.InputTag("initialStepTracks"),
8  pixelClusters = cms.InputTag("siPixelClusters"),
9  stripClusters = cms.InputTag("siStripClusters"),
10  overrideTrkQuals = cms.InputTag('initialStepSelector','initialStep'),
11  TrackQuality = cms.string('highPurity'),
12 )
13 
14 
15 # SEEDING LAYERS
17 lowPtForwardTripletStepSeedLayers = RecoTracker.TkSeedingLayers.PixelLayerTriplets_cfi.PixelLayerTriplets.clone()
18 lowPtForwardTripletStepSeedLayers.BPix.skipClusters = cms.InputTag('lowPtForwardTripletStepClusters')
19 lowPtForwardTripletStepSeedLayers.FPix.skipClusters = cms.InputTag('lowPtForwardTripletStepClusters')
20 lowPtForwardTripletStepSeedLayers.layerList = cms.vstring('BPix1+BPix2+FPix1_pos',
21  'BPix1+BPix2+FPix1_neg',
22  'BPix1+FPix1_pos+FPix2_pos',
23  'BPix1+FPix1_neg+FPix2_neg')
24 
25 
26 # SEEDS
28 from RecoTracker.TkTrackingRegions.GlobalTrackingRegionFromBeamSpot_cfi import RegionPsetFomBeamSpotBlock
29 lowPtForwardTripletStepSeeds = RecoTracker.TkSeedGenerator.GlobalSeedsFromTriplets_cff.globalSeedsFromTriplets.clone(
30  RegionFactoryPSet = RegionPsetFomBeamSpotBlock.clone(
31  ComponentName = cms.string('GlobalRegionProducerFromBeamSpot'),
32  RegionPSet = RegionPsetFomBeamSpotBlock.RegionPSet.clone(
33  ptMin = 0.2,
34  originRadius = 0.03,
35  nSigmaZ = 4.0
36  )
37  )
38  )
39 lowPtForwardTripletStepSeeds.OrderedHitsFactoryPSet.SeedingLayers = 'lowPtForwardTripletStepSeedLayers'
40 
42 import RecoPixelVertexing.PixelLowPtUtilities.LowPtClusterShapeSeedComparitor_cfi
43 lowPtForwardTripletStepSeeds.OrderedHitsFactoryPSet.GeneratorPSet.SeedComparitorPSet = RecoPixelVertexing.PixelLowPtUtilities.LowPtClusterShapeSeedComparitor_cfi.LowPtClusterShapeSeedComparitor
44 
45 
46 # QUALITY CUTS DURING TRACK BUILDING
48 lowPtForwardTripletStepTrajectoryFilter = TrackingTools.TrajectoryFiltering.TrajectoryFilter_cff.CkfBaseTrajectoryFilter_block.clone(
49  #maxLostHits = 1, ## use LostHitFraction filter instead
50  minimumNumberOfHits = 3,
51  minPt = 0.1
52  )
53 
55 lowPtForwardTripletStepChi2Est = TrackingTools.KalmanUpdators.Chi2MeasurementEstimatorESProducer_cfi.Chi2MeasurementEstimator.clone(
56  ComponentName = cms.string('lowPtForwardTripletStepChi2Est'),
57  nSigma = cms.double(3.0),
58  MaxChi2 = cms.double(9.0)
59 )
60 
61 # TRACK BUILDING
63 lowPtForwardTripletStepTrajectoryBuilder = RecoTracker.CkfPattern.GroupedCkfTrajectoryBuilder_cfi.GroupedCkfTrajectoryBuilder.clone(
64  MeasurementTrackerName = '',
65  trajectoryFilter = cms.PSet(refToPSet_ = cms.string('lowPtForwardTripletStepTrajectoryFilter')),
66  clustersToSkip = cms.InputTag('lowPtForwardTripletStepClusters'),
67  maxCand = 3,
68  estimator = cms.string('lowPtForwardTripletStepChi2Est')
69  )
70 
71 # MAKING OF TRACK CANDIDATES
73 lowPtForwardTripletStepTrackCandidates = RecoTracker.CkfPattern.CkfTrackCandidates_cfi.ckfTrackCandidates.clone(
74  src = cms.InputTag('lowPtForwardTripletStepSeeds'),
75  TrajectoryBuilderPSet = cms.PSet(refToPSet_ = cms.string('lowPtForwardTripletStepTrajectoryBuilder')),
76  doSeedingRegionRebuilding = True,
77  useHitsSplitting = True
78  )
79 
80 # TRACK FITTING
82 lowPtForwardTripletStepTracks = RecoTracker.TrackProducer.TrackProducer_cfi.TrackProducer.clone(
83  src = 'lowPtForwardTripletStepTrackCandidates',
84  AlgorithmName = cms.string('lowPtTripletStep')
85  )
86 
87 
88 # Final selection
89 import RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi
90 lowPtForwardTripletStepSelector = RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.multiTrackSelector.clone(
91  src='lowPtForwardTripletStepTracks',
92  trackSelectors= cms.VPSet(
93  RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.looseMTS.clone(
94  name = 'lowPtForwardTripletStepLoose',
95  ), #end of pset
96  RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.tightMTS.clone(
97  name = 'lowPtForwardTripletStepTight',
98  preFilterName = 'lowPtForwardTripletStepLoose',
99  ),
100  RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.highpurityMTS.clone(
101  name = 'lowPtForwardTripletStep',
102  preFilterName = 'lowPtForwardTripletStepTight',
103  ),
104  ) #end of vpset
105  ) #end of clone
106 
107 # Final sequence
108 LowPtForwardTripletStep = cms.Sequence(lowPtForwardTripletStepClusters*
109  lowPtForwardTripletStepSeedLayers*
110  lowPtForwardTripletStepSeeds*
111  lowPtForwardTripletStepTrackCandidates*
112  lowPtForwardTripletStepTracks*
113  lowPtForwardTripletStepSelector)