CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
InitialStepPreSplitting_cff.py
Go to the documentation of this file.
2 
3 ### STEP 0 ###
4 
5 # hit building
8 
9 # SEEDING LAYERS
11 initialStepSeedLayersPreSplitting = RecoTracker.TkSeedingLayers.PixelLayerTriplets_cfi.PixelLayerTriplets.clone()
12 initialStepSeedLayersPreSplitting.FPix.HitProducer = 'siPixelRecHitsPreSplitting'
13 initialStepSeedLayersPreSplitting.BPix.HitProducer = 'siPixelRecHitsPreSplitting'
14 
15 # seeding
17 from RecoTracker.TkTrackingRegions.GlobalTrackingRegionFromBeamSpot_cfi import RegionPsetFomBeamSpotBlock
18 initialStepSeedsPreSplitting = RecoTracker.TkSeedGenerator.GlobalSeedsFromTriplets_cff.globalSeedsFromTriplets.clone(
19  RegionFactoryPSet = RegionPsetFomBeamSpotBlock.clone(
20  ComponentName = cms.string('GlobalRegionProducerFromBeamSpot'),
21  RegionPSet = RegionPsetFomBeamSpotBlock.RegionPSet.clone(
22  ptMin = 0.6,
23  originRadius = 0.02,
24  nSigmaZ = 4.0
25  )
26  )
27  )
28 initialStepSeedsPreSplitting.OrderedHitsFactoryPSet.SeedingLayers = 'initialStepSeedLayersPreSplitting'
29 
31 import RecoPixelVertexing.PixelLowPtUtilities.LowPtClusterShapeSeedComparitor_cfi
32 initialStepSeedsPreSplitting.OrderedHitsFactoryPSet.GeneratorPSet.SeedComparitorPSet = RecoPixelVertexing.PixelLowPtUtilities.LowPtClusterShapeSeedComparitor_cfi.LowPtClusterShapeSeedComparitor.clone()
33 initialStepSeedsPreSplitting.OrderedHitsFactoryPSet.GeneratorPSet.SeedComparitorPSet.clusterShapeCacheSrc = 'siPixelClusterShapeCachePreSplitting'
34 initialStepSeedsPreSplitting.ClusterCheckPSet.PixelClusterCollectionLabel = 'siPixelClustersPreSplitting'
35 
36 # building
38 initialStepTrajectoryFilterBasePreSplitting = TrackingTools.TrajectoryFiltering.TrajectoryFilter_cff.CkfBaseTrajectoryFilter_block.clone(
39  minimumNumberOfHits = 3,
40  minPt = 0.2
41  )
42 import RecoPixelVertexing.PixelLowPtUtilities.StripSubClusterShapeTrajectoryFilter_cfi
43 initialStepTrajectoryFilterShapePreSplitting = RecoPixelVertexing.PixelLowPtUtilities.StripSubClusterShapeTrajectoryFilter_cfi.StripSubClusterShapeTrajectoryFilterTIX12.clone()
44 initialStepTrajectoryFilterPreSplitting = cms.PSet(
45  ComponentType = cms.string('CompositeTrajectoryFilter'),
46  filters = cms.VPSet(
47  cms.PSet( refToPSet_ = cms.string('initialStepTrajectoryFilterBasePreSplitting')),
48  cms.PSet( refToPSet_ = cms.string('initialStepTrajectoryFilterShapePreSplitting'))),
49 )
50 
51 import RecoTracker.MeasurementDet.Chi2ChargeMeasurementEstimatorESProducer_cfi
52 initialStepChi2Est = RecoTracker.MeasurementDet.Chi2ChargeMeasurementEstimatorESProducer_cfi.Chi2ChargeMeasurementEstimator.clone(
53  ComponentName = cms.string('initialStepChi2Est'),
54  nSigma = cms.double(3.0),
55  MaxChi2 = cms.double(30.0),
56  clusterChargeCut = cms.PSet(refToPSet_ = cms.string('SiStripClusterChargeCutLoose')),
57  pTChargeCutThreshold = cms.double(15.)
58 )
59 
61 initialStepTrajectoryBuilderPreSplitting = RecoTracker.CkfPattern.GroupedCkfTrajectoryBuilder_cfi.GroupedCkfTrajectoryBuilder.clone(
62  trajectoryFilter = cms.PSet(refToPSet_ = cms.string('initialStepTrajectoryFilterPreSplitting')),
63  alwaysUseInvalidHits = True,
64  maxCand = 3,
65  estimator = cms.string('initialStepChi2Est'),
66  maxDPhiForLooperReconstruction = cms.double(2.0),
67  maxPtForLooperReconstruction = cms.double(0.7)
68  )
69 
71 initialStepTrackCandidatesPreSplitting = RecoTracker.CkfPattern.CkfTrackCandidates_cfi.ckfTrackCandidates.clone(
72  src = cms.InputTag('initialStepSeedsPreSplitting'),
73  ### these two parameters are relevant only for the CachingSeedCleanerBySharedInput
74  numHitsForSeedCleaner = cms.int32(50),
75  onlyPixelHitsForSeedCleaner = cms.bool(True),
76  TrajectoryBuilderPSet = cms.PSet(refToPSet_ = cms.string('initialStepTrajectoryBuilderPreSplitting')),
77  doSeedingRegionRebuilding = True,
78  useHitsSplitting = True
79  )
80 initialStepTrackCandidatesPreSplitting.MeasurementTrackerEvent = 'MeasurementTrackerEventPreSplitting'
81 
82 # fitting
84 initialStepTracksPreSplitting = RecoTracker.TrackProducer.TrackProducer_cfi.TrackProducer.clone(
85  src = 'initialStepTrackCandidatesPreSplitting',
86  AlgorithmName = cms.string('initialStep'),
87  Fitter = cms.string('FlexibleKFFittingSmoother')
88  )
89 initialStepTracksPreSplitting.MeasurementTrackerEvent = 'MeasurementTrackerEventPreSplitting'
90 
91 #vertices
93 firstStepPrimaryVerticesPreSplitting = RecoVertex.PrimaryVertexProducer.OfflinePrimaryVertices_cfi.offlinePrimaryVertices.clone()
94 firstStepPrimaryVerticesPreSplitting.TrackLabel = cms.InputTag("initialStepTracksPreSplitting")
95 firstStepPrimaryVerticesPreSplitting.vertexCollections = cms.VPSet(
96  [cms.PSet(label=cms.string(""),
97  algorithm=cms.string("AdaptiveVertexFitter"),
98  minNdof=cms.double(0.0),
99  useBeamConstraint = cms.bool(False),
100  maxDistanceToBeam = cms.double(1.0)
101  )
102  ]
103  )
104 
105 #Jet Core emulation to identify jet-tracks
106 from RecoTracker.IterativeTracking.JetCoreRegionalStep_cff import initialStepTrackRefsForJets, caloTowerForTrk, ak4CaloJetsForTrk, jetsForCoreTracking
107 initialStepTrackRefsForJetsPreSplitting = initialStepTrackRefsForJets.clone(
108  src = 'initialStepTracksPreSplitting')
109 caloTowerForTrkPreSplitting = caloTowerForTrk.clone()
110 ak4CaloJetsForTrkPreSplitting = ak4CaloJetsForTrk.clone(
111  src = 'caloTowerForTrkPreSplitting',
112  srcPVs = 'firstStepPrimaryVerticesPreSplitting')
113 jetsForCoreTrackingPreSplitting = jetsForCoreTracking.clone(
114  src = 'ak4CaloJetsForTrkPreSplitting')
115 
116 #Cluster Splitting
117 from RecoLocalTracker.SubCollectionProducers.jetCoreClusterSplitter_cfi import jetCoreClusterSplitter
118 siPixelClusters = jetCoreClusterSplitter.clone(
119  pixelClusters = cms.InputTag('siPixelClustersPreSplitting'),
120  vertices = 'firstStepPrimaryVerticesPreSplitting',
121  cores = 'jetsForCoreTrackingPreSplitting'
122 )
123 
124 # Final sequence
126 from RecoTracker.MeasurementDet.MeasurementTrackerEventProducer_cfi import MeasurementTrackerEvent
128 InitialStepPreSplitting = cms.Sequence(initialStepSeedLayersPreSplitting*
129  initialStepSeedsPreSplitting*
130  initialStepTrackCandidatesPreSplitting*
131  initialStepTracksPreSplitting*
132  firstStepPrimaryVerticesPreSplitting*
133  initialStepTrackRefsForJetsPreSplitting*
134  caloTowerForTrkPreSplitting*
135  ak4CaloJetsForTrkPreSplitting*
136  jetsForCoreTrackingPreSplitting*
137  siPixelClusters*
138  siPixelRecHits*
139  MeasurementTrackerEvent*
140  siPixelClusterShapeCache)
141