CMS 3D CMS Logo

LowPtBarrelTripletStep_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 lowPtBarrelTripletStepClusters = trackClusterRemover.clone(
6  maxChi2 = cms.double(9.0),
7  trajectories = cms.InputTag("lowPtForwardTripletStepTracks"),
8  pixelClusters = cms.InputTag("siPixelClusters"),
9  stripClusters = cms.InputTag("siStripClusters"),
10  oldClusterRemovalInfo = cms.InputTag("lowPtForwardTripletStepClusters"),
11  overrideTrkQuals = cms.InputTag('lowPtForwardTripletStepSelector','lowPtForwardTripletStep'),
12  TrackQuality = cms.string('highPurity'),
13 )
14 
15 # SEEDING LAYERS
17 lowPtBarrelTripletStepSeedLayers = RecoTracker.TkSeedingLayers.PixelLayerTriplets_cfi.PixelLayerTriplets.clone()
18 lowPtBarrelTripletStepSeedLayers.BPix.skipClusters = cms.InputTag('lowPtBarrelTripletStepClusters')
19 lowPtBarrelTripletStepSeedLayers.FPix.skipClusters = cms.InputTag('lowPtBarrelTripletStepClusters')
20 lowPtBarrelTripletStepSeedLayers.layerList = cms.vstring('BPix1+BPix2+BPix3')
21 
22 
23 # SEEDS
25 from RecoTracker.TkTrackingRegions.GlobalTrackingRegionFromBeamSpot_cfi import RegionPsetFomBeamSpotBlock
26 lowPtBarrelTripletStepSeeds = RecoTracker.TkSeedGenerator.GlobalSeedsFromTriplets_cff.globalSeedsFromTriplets.clone(
27  RegionFactoryPSet = RegionPsetFomBeamSpotBlock.clone(
28  ComponentName = cms.string('GlobalRegionProducerFromBeamSpot'),
29  RegionPSet = RegionPsetFomBeamSpotBlock.RegionPSet.clone(
30  ptMin = 0.2,
31  originRadius = 0.03,
32  nSigmaZ = 4.0
33  )
34  )
35  )
36 lowPtBarrelTripletStepSeeds.OrderedHitsFactoryPSet.SeedingLayers = 'lowPtBarrelTripletStepSeedLayers'
37 
39 import RecoPixelVertexing.PixelLowPtUtilities.LowPtClusterShapeSeedComparitor_cfi
40 lowPtBarrelTripletStepSeeds.OrderedHitsFactoryPSet.GeneratorPSet.SeedComparitorPSet = RecoPixelVertexing.PixelLowPtUtilities.LowPtClusterShapeSeedComparitor_cfi.LowPtClusterShapeSeedComparitor
41 
42 
43 # QUALITY CUTS DURING TRACK BUILDING
45 lowPtBarrelTripletStepTrajectoryFilter = TrackingTools.TrajectoryFiltering.TrajectoryFilter_cff.CkfBaseTrajectoryFilter_block.clone(
46  #maxLostHits = 3, # use LostHitFraction filter instead
47  minimumNumberOfHits = 3,
48  minPt = 0.1
49  )
50 
52 lowPtBarrelTripletStepChi2Est = TrackingTools.KalmanUpdators.Chi2MeasurementEstimator_cfi.Chi2MeasurementEstimator.clone(
53  ComponentName = cms.string('lowPtBarrelTripletStepChi2Est'),
54  nSigma = cms.double(3.0),
55  MaxChi2 = cms.double(9.0)
56 )
57 
58 # TRACK BUILDING
60 lowPtBarrelTripletStepTrajectoryBuilder = RecoTracker.CkfPattern.GroupedCkfTrajectoryBuilder_cfi.GroupedCkfTrajectoryBuilder.clone(
61  MeasurementTrackerName = '',
62  trajectoryFilter = cms.PSet(refToPSet_ = cms.string('lowPtBarrelTripletStepTrajectoryFilter')),
63  clustersToSkip = cms.InputTag('lowPtBarrelTripletStepClusters'),
64  maxCand = 3,
65 
66  #lostHitPenalty = cms.double(10.0),
67 
68  estimator = cms.string('lowPtBarrelTripletStepChi2Est'),
69  # 0.63 GeV is the maximum pT for a charged particle to loop within the 1.1m radius
70  # of the outermost Tracker barrel layer (with B=3.8T)
71  maxPtForLooperReconstruction = cms.double(0.63)
72  # set the variable to a negative value to turn-off the looper reconstruction
73  #maxPtForLooperReconstruction = cms.double(-1.)
74  )
75 
76 # MAKING OF TRACK CANDIDATES
78 lowPtBarrelTripletStepTrackCandidates = RecoTracker.CkfPattern.CkfTrackCandidates_cfi.ckfTrackCandidates.clone(
79  src = cms.InputTag('lowPtBarrelTripletStepSeeds'),
80 
81  ### these two parameters are relevant only for the CachingSeedCleanerBySharedInput
82  numHitsForSeedCleaner = cms.int32(50),
83  onlyPixelHitsForSeedCleaner = cms.bool(True),
84 
85  TrajectoryBuilderPSet = cms.PSet(refToPSet_ = cms.string('lowPtBarrelTripletStepTrajectoryBuilder')),
86  doSeedingRegionRebuilding = True,
87  useHitsSplitting = True,
88  TransientInitialStateEstimatorParameters = cms.PSet(
89  propagatorAlongTISE = cms.string('PropagatorWithMaterialForLoopers'),
90  propagatorOppositeTISE = cms.string('PropagatorWithMaterialForLoopersOpposite'),
91  numberMeasurementsForFit = cms.int32(4)
92  )
93 )
94 
95 ### Have to clone the KF fitters because only the PropagatorWithMaterialForLoopers (no RK) can be used for the
96 ### reconstruction of loopers
97 
98 # TRACK FITTING
100 lowPtBarrelTripletStepKFTrajectoryFitter = TrackingTools.TrackFitters.KFTrajectoryFitter_cfi.KFTrajectoryFitter.clone(
101  ComponentName = cms.string('lowPtBarrelTripletStepKFTrajectoryFitter'),
102  Propagator = cms.string('PropagatorWithMaterialForLoopers')
103 )
104 
106 lowPtBarrelTripletStepKFTrajectorySmoother = TrackingTools.TrackFitters.KFTrajectorySmoother_cfi.KFTrajectorySmoother.clone(
107  ComponentName = cms.string('lowPtBarrelTripletStepKFTrajectorySmoother'),
108  Propagator = cms.string('PropagatorWithMaterialForLoopers'),
109  errorRescaling = cms.double(10.0)
110 )
111 
113 lowPtBarrelTripletStepKFFittingSmoother = TrackingTools.TrackFitters.KFFittingSmoother_cfi.KFFittingSmoother.clone(
114  ComponentName = cms.string('lowPtBarrelTripletStepKFFittingSmoother'),
115  Fitter = cms.string('lowPtBarrelTripletStepKFTrajectoryFitter'),
116  Smoother = cms.string('lowPtBarrelTripletStepKFTrajectorySmoother'),
117  EstimateCut = cms.double(20.0),
118  LogPixelProbabilityCut = cms.double(-14.0),
119  MinNumberOfHits = cms.int32(3)
120 )
121 
122 
123 
125 lowPtBarrelTripletStepTracks = RecoTracker.TrackProducer.TrackProducer_cfi.TrackProducer.clone(
126  src = 'lowPtBarrelTripletStepTrackCandidates',
127  AlgorithmName = cms.string('lowPtTripletStep'),
128  Fitter = cms.string('lowPtBarrelTripletStepKFFittingSmoother'),
129  #Propagator = cms.string('PropagatorWithMaterialForLoopers'),
130  #NavigationSchool = cms.string('') ### Is the outerHitPattern filled correctly for loopers???
131  )
132 
133 
134 # Final selection
135 import RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi
136 lowPtBarrelTripletStepSelector = RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.multiTrackSelector.clone(
137  src='lowPtBarrelTripletStepTracks',
138  trackSelectors= cms.VPSet(
139  RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.looseMTS.clone(
140  name = 'lowPtBarrelTripletStepLoose',
141  ), #end of pset
142  RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.tightMTS.clone(
143  name = 'lowPtBarrelTripletStepTight',
144  preFilterName = 'lowPtBarrelTripletStepLoose',
145  ),
146  RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.highpurityMTS.clone(
147  name = 'lowPtBarrelTripletStep',
148  preFilterName = 'lowPtBarrelTripletStepTight',
149  ),
150  ) #end of vpset
151  ) #end of clone
152 
153 # Final sequence
154 LowPtBarrelTripletStep = cms.Sequence(lowPtBarrelTripletStepClusters*
155  lowPtBarrelTripletStepSeedLayers*
156  lowPtBarrelTripletStepSeeds*
157  lowPtBarrelTripletStepTrackCandidates*
158  lowPtBarrelTripletStepTracks*
159  lowPtBarrelTripletStepSelector)
COSMIC RUN SETTING.