CMS 3D CMS Logo

CkfElectronCandidateMaker_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 #Chi2 estimator
5 ElectronChi2 = TrackingTools.KalmanUpdators.Chi2MeasurementEstimator_cfi.Chi2MeasurementEstimator.clone()
6 ElectronChi2.ComponentName = 'ElectronChi2'
7 ElectronChi2.MaxChi2 = 2000.
8 ElectronChi2.nSigma = 3.
9 ElectronChi2.MaxDisplacement = 100
10 ElectronChi2.MaxSagitta = -1
11 
12 # Trajectory Filter
14 TrajectoryFilterForElectrons = TrackingTools.TrajectoryFiltering.TrajectoryFilter_cff.CkfBaseTrajectoryFilter_block.clone(
15  chargeSignificance = cms.double(-1.0),
16  minPt = cms.double(2.0),
17  minHitsMinPt = cms.int32(-1),
18  ComponentType = cms.string('CkfBaseTrajectoryFilter'),
19  maxLostHits = cms.int32(1),
20  maxNumberOfHits = cms.int32(-1),
21  maxConsecLostHits = cms.int32(1),
22  nSigmaMinPt = cms.double(5.0),
23  minimumNumberOfHits = cms.int32(5),
24  maxCCCLostHits = cms.int32(9999),
25  minGoodStripCharge = cms.PSet(refToPSet_ = cms.string('SiStripClusterChargeCutNone'))
26 )
27 
28 # Trajectory Builder
30 TrajectoryBuilderForElectrons = RecoTracker.CkfPattern.CkfTrajectoryBuilder_cfi.CkfTrajectoryBuilder.clone()
31 TrajectoryBuilderForElectrons.trajectoryFilter.refToPSet_ = 'TrajectoryFilterForElectrons'
32 TrajectoryBuilderForElectrons.maxCand = 5
33 TrajectoryBuilderForElectrons.intermediateCleaning = False
34 TrajectoryBuilderForElectrons.propagatorAlong = 'fwdGsfElectronPropagator'
35 TrajectoryBuilderForElectrons.propagatorOpposite = 'bwdGsfElectronPropagator'
36 TrajectoryBuilderForElectrons.estimator = 'ElectronChi2'
37 TrajectoryBuilderForElectrons.MeasurementTrackerName = ''
38 TrajectoryBuilderForElectrons.lostHitPenalty = 90.
39 TrajectoryBuilderForElectrons.alwaysUseInvalidHits = True
40 TrajectoryBuilderForElectrons.TTRHBuilder = 'WithTrackAngle'
41 TrajectoryBuilderForElectrons.updator = 'KFUpdator'
42 
43 
44 
45 
46 # CKFTrackCandidateMaker
49 electronCkfTrackCandidates = RecoTracker.CkfPattern.CkfTrackCandidates_cfi.ckfTrackCandidates.clone()
50 electronCkfTrackCandidates.src = cms.InputTag('electronMergedSeeds')
51 electronCkfTrackCandidates.TrajectoryBuilderPSet.refToPSet_ = 'TrajectoryBuilderForElectrons'
52 #electronCkfTrackCandidates.TrajectoryCleaner = 'TrajectoryCleanerBySharedHits'
53 electronCkfTrackCandidates.NavigationSchool = 'SimpleNavigationSchool'
54 electronCkfTrackCandidates.RedundantSeedCleaner = 'CachingSeedCleanerBySharedInput'
55 
56 from TrackingTools.TrajectoryCleaning.TrajectoryCleanerBySharedHits_cfi import trajectoryCleanerBySharedHits
57 electronTrajectoryCleanerBySharedHits = trajectoryCleanerBySharedHits.clone(
58  ComponentName = cms.string('electronTrajectoryCleanerBySharedHits'),
59  ValidHitBonus = cms.double(1000.0),
60  MissingHitPenalty = cms.double(0.0)
61  )
62 electronCkfTrackCandidates.TrajectoryCleaner = 'electronTrajectoryCleanerBySharedHits'
63 
64 
65 # "backward" propagator for electrons
67 # "forward" propagator for electrons
69 # TrajectoryFilter
70 
71 
72 
73 
74 
75 
76 
77 
78