CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
InitialStep_cff.py
Go to the documentation of this file.
2 
3 ### STEP 0 ###
4 
5 # hit building
8 
9 # SEEDING LAYERS
11 initialStepSeedLayers = RecoTracker.TkSeedingLayers.PixelLayerTriplets_cfi.PixelLayerTriplets.clone()
12 
13 
14 # seeding
16 from RecoTracker.TkTrackingRegions.GlobalTrackingRegionFromBeamSpot_cfi import RegionPsetFomBeamSpotBlock
17 initialStepSeeds = RecoTracker.TkSeedGenerator.GlobalSeedsFromTriplets_cff.globalSeedsFromTriplets.clone(
18  RegionFactoryPSet = RegionPsetFomBeamSpotBlock.clone(
19  ComponentName = cms.string('GlobalRegionProducerFromBeamSpot'),
20  RegionPSet = RegionPsetFomBeamSpotBlock.RegionPSet.clone(
21  ptMin = 0.6,
22  originRadius = 0.02,
23  nSigmaZ = 4.0
24  )
25  )
26  )
27 initialStepSeeds.OrderedHitsFactoryPSet.SeedingLayers = 'initialStepSeedLayers'
28 
30 import RecoPixelVertexing.PixelLowPtUtilities.LowPtClusterShapeSeedComparitor_cfi
31 initialStepSeeds.OrderedHitsFactoryPSet.GeneratorPSet.SeedComparitorPSet = RecoPixelVertexing.PixelLowPtUtilities.LowPtClusterShapeSeedComparitor_cfi.LowPtClusterShapeSeedComparitor
32 
33 # building
35 initialStepTrajectoryFilterBase = TrackingTools.TrajectoryFiltering.TrajectoryFilter_cff.CkfBaseTrajectoryFilter_block.clone(
36  minimumNumberOfHits = 3,
37  minPt = 0.2
38  )
39 import RecoPixelVertexing.PixelLowPtUtilities.StripSubClusterShapeTrajectoryFilter_cfi
40 initialStepTrajectoryFilterShape = RecoPixelVertexing.PixelLowPtUtilities.StripSubClusterShapeTrajectoryFilter_cfi.StripSubClusterShapeTrajectoryFilterTIX12.clone()
41 initialStepTrajectoryFilter = cms.PSet(
42  ComponentType = cms.string('CompositeTrajectoryFilter'),
43  filters = cms.VPSet(
44  cms.PSet( refToPSet_ = cms.string('initialStepTrajectoryFilterBase')),
45  cms.PSet( refToPSet_ = cms.string('initialStepTrajectoryFilterShape'))),
46 )
47 
48 import RecoTracker.MeasurementDet.Chi2ChargeMeasurementEstimatorESProducer_cfi
49 initialStepChi2Est = RecoTracker.MeasurementDet.Chi2ChargeMeasurementEstimatorESProducer_cfi.Chi2ChargeMeasurementEstimator.clone(
50  ComponentName = cms.string('initialStepChi2Est'),
51  nSigma = cms.double(3.0),
52  MaxChi2 = cms.double(30.0),
53  clusterChargeCut = cms.PSet(refToPSet_ = cms.string('SiStripClusterChargeCutLoose')),
54  pTChargeCutThreshold = cms.double(15.)
55 )
56 
58 initialStepTrajectoryBuilder = RecoTracker.CkfPattern.GroupedCkfTrajectoryBuilder_cfi.GroupedCkfTrajectoryBuilder.clone(
59  trajectoryFilter = cms.PSet(refToPSet_ = cms.string('initialStepTrajectoryFilter')),
60  alwaysUseInvalidHits = True,
61  maxCand = 3,
62  estimator = cms.string('initialStepChi2Est'),
63  maxDPhiForLooperReconstruction = cms.double(2.0),
64  maxPtForLooperReconstruction = cms.double(0.7)
65  )
66 
68 initialStepTrackCandidates = RecoTracker.CkfPattern.CkfTrackCandidates_cfi.ckfTrackCandidates.clone(
69  src = cms.InputTag('initialStepSeeds'),
70  ### these two parameters are relevant only for the CachingSeedCleanerBySharedInput
71  numHitsForSeedCleaner = cms.int32(50),
72  onlyPixelHitsForSeedCleaner = cms.bool(True),
73  TrajectoryBuilderPSet = cms.PSet(refToPSet_ = cms.string('initialStepTrajectoryBuilder')),
74  doSeedingRegionRebuilding = True,
75  useHitsSplitting = True
76  )
77 
78 # fitting
80 initialStepTracks = RecoTracker.TrackProducer.TrackProducer_cfi.TrackProducer.clone(
81  src = 'initialStepTrackCandidates',
82  AlgorithmName = cms.string('initialStep'),
83  Fitter = cms.string('FlexibleKFFittingSmoother')
84  )
85 
86 
87 #vertices
89 firstStepPrimaryVertices=RecoVertex.PrimaryVertexProducer.OfflinePrimaryVertices_cfi.offlinePrimaryVertices.clone()
90 firstStepPrimaryVertices.TrackLabel = cms.InputTag("initialStepTracks")
91 firstStepPrimaryVertices.vertexCollections = cms.VPSet(
92  [cms.PSet(label=cms.string(""),
93  algorithm=cms.string("AdaptiveVertexFitter"),
94  minNdof=cms.double(0.0),
95  useBeamConstraint = cms.bool(False),
96  maxDistanceToBeam = cms.double(1.0)
97  )
98  ]
99  )
100 
101 
102 # Final selection
103 import RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi
104 from RecoTracker.IterativeTracking.DetachedTripletStep_cff import detachedTripletStepSelector
105 initialStepSelector = RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.multiTrackSelector.clone(
106  src='initialStepTracks',
107  useAnyMVA = cms.bool(True),
108  GBRForestLabel = cms.string('MVASelectorIter0_13TeV_v0'),
109  trackSelectors= cms.VPSet(
110  RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.looseMTS.clone(
111  name = 'initialStepLoose',
112  ), #end of pset
113  RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.tightMTS.clone(
114  name = 'initialStepTight',
115  preFilterName = 'initialStepLoose',
116  ),
117  RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.highpurityMTS.clone(
118  name = 'initialStepV1',
119  preFilterName = 'initialStepTight',
120  ),
121  detachedTripletStepSelector.trackSelectors[4].clone(
122  name = 'initialStepV2',
123  preFilterName=cms.string(''),
124  keepAllTracks = cms.bool(False)
125  ),
126  detachedTripletStepSelector.trackSelectors[5].clone(
127  name = 'initialStepV3',
128  preFilterName=cms.string(''),
129  keepAllTracks = cms.bool(False)
130  )
131  ) #end of vpset
132 )#end of clone
133 import RecoTracker.FinalTrackSelectors.trackListMerger_cfi
134 initialStep = RecoTracker.FinalTrackSelectors.trackListMerger_cfi.trackListMerger.clone(
135  TrackProducers = cms.VInputTag(cms.InputTag('initialStepTracks'),
136  cms.InputTag('initialStepTracks'),
137  cms.InputTag('initialStepTracks')),
138  hasSelector=cms.vint32(1,1,1),
139  shareFrac = cms.double(0.99),
140  indivShareFrac=cms.vdouble(1.0,1.0,1.0),
141  selectedTrackQuals = cms.VInputTag(cms.InputTag("initialStepSelector","initialStepV1"),
142  cms.InputTag("initialStepSelector","initialStepV2"),
143  cms.InputTag("initialStepSelector","initialStepV3")),
144  setsToMerge = cms.VPSet(cms.PSet( tLists=cms.vint32(0,1,2), pQual=cms.bool(True) )),
145  writeOnlyTrkQuals=cms.bool(True)
146  )
147 
148 # Final sequence
149 InitialStep = cms.Sequence(initialStepSeedLayers*
150  initialStepSeeds*
151  initialStepTrackCandidates*
152  initialStepTracks*
153  firstStepPrimaryVertices*
154  initialStepSelector*
155  initialStep)
TEveGeoShape * clone(const TEveElement *element, TEveElement *parent)
Definition: eve_macros.cc:135