Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-01-11 23:32:50

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 #Chi2 estimator
0004 import TrackingTools.KalmanUpdators.Chi2MeasurementEstimator_cfi
0005 ElectronChi2 = TrackingTools.KalmanUpdators.Chi2MeasurementEstimator_cfi.Chi2MeasurementEstimator.clone(
0006     ComponentName = 'ElectronChi2',
0007     MaxChi2 = 2000.,
0008     nSigma = 3.,
0009     MaxDisplacement = 100,
0010     MaxSagitta = -1
0011 )
0012 # Trajectory Filter
0013 import TrackingTools.TrajectoryFiltering.TrajectoryFilter_cff
0014 TrajectoryFilterForElectrons = TrackingTools.TrajectoryFiltering.TrajectoryFilter_cff.CkfBaseTrajectoryFilter_block.clone(
0015     chargeSignificance = -1.0,
0016     minPt = 2.0,
0017     minHitsMinPt = -1,
0018     ComponentType = 'CkfBaseTrajectoryFilter',
0019     maxLostHits = 1,
0020     maxNumberOfHits = -1,
0021     maxConsecLostHits = 1,
0022     nSigmaMinPt = 5.0,
0023     minimumNumberOfHits = 5,
0024     highEtaSwitch = 2.5,
0025     minHitsAtHighEta = 3,
0026     maxCCCLostHits = 9999,
0027     minGoodStripCharge = dict(refToPSet_ = 'SiStripClusterChargeCutNone')
0028 )
0029 
0030 # Phase2 has extended outer-tracker coverage
0031 # so no need to relax cuts on number of hits at high eta 
0032 from Configuration.Eras.Modifier_phase2_common_cff import phase2_common
0033 phase2_common.toModify(TrajectoryFilterForElectrons, 
0034     highEtaSwitch = 5.0,
0035     minHitsAtHighEta = 5
0036 )
0037 
0038 # Trajectory Builder
0039 import RecoTracker.CkfPattern.CkfTrajectoryBuilder_cfi
0040 TrajectoryBuilderForElectrons = RecoTracker.CkfPattern.CkfTrajectoryBuilder_cfi.CkfTrajectoryBuilder.clone(
0041     trajectoryFilter = dict(refToPSet_ = 'TrajectoryFilterForElectrons'),
0042     maxCand = 5,
0043     intermediateCleaning = False,
0044     propagatorAlong = 'fwdGsfElectronPropagator',
0045     propagatorOpposite = 'bwdGsfElectronPropagator',
0046     estimator = 'ElectronChi2',
0047     lostHitPenalty = 90.,
0048     alwaysUseInvalidHits = True,
0049     TTRHBuilder = 'WithTrackAngle',
0050     updator = 'KFUpdator'
0051 )
0052 
0053 # CKFTrackCandidateMaker
0054 from RecoTracker.CkfPattern.CkfTrackCandidates_cff import *
0055 import RecoTracker.CkfPattern.CkfTrackCandidates_cfi
0056 electronCkfTrackCandidates = RecoTracker.CkfPattern.CkfTrackCandidates_cfi.ckfTrackCandidates.clone(
0057     src = 'electronMergedSeeds',
0058     TrajectoryBuilderPSet = dict(refToPSet_ = 'TrajectoryBuilderForElectrons'),
0059     #TrajectoryCleaner = 'TrajectoryCleanerBySharedHits'
0060     NavigationSchool = 'SimpleNavigationSchool',
0061     RedundantSeedCleaner = 'CachingSeedCleanerBySharedInput',
0062     TrajectoryCleaner = 'electronTrajectoryCleanerBySharedHits'
0063 )
0064 
0065 from TrackingTools.TrajectoryCleaning.TrajectoryCleanerBySharedHits_cfi import trajectoryCleanerBySharedHits
0066 electronTrajectoryCleanerBySharedHits = trajectoryCleanerBySharedHits.clone(
0067     ComponentName = 'electronTrajectoryCleanerBySharedHits',
0068     ValidHitBonus = 1000.0,
0069     MissingHitPenalty = 0.0
0070 )
0071 
0072 # "backward" propagator for electrons
0073 from TrackingTools.GsfTracking.bwdGsfElectronPropagator_cff import *
0074 # "forward" propagator for electrons
0075 from TrackingTools.GsfTracking.fwdGsfElectronPropagator_cff import *
0076 # TrajectoryFilter