00001 import FWCore.ParameterSet.Config as cms
00002
00003 from RecoParticleFlow.PFTracking.elecPreId_cff import *
00004 from RecoParticleFlow.PFTracking.gsfSeedClean_cfi import *
00005 from TrackingTools.GsfTracking.CkfElectronCandidates_cff import *
00006 from TrackingTools.GsfTracking.GsfElectrons_cff import *
00007 from RecoParticleFlow.PFTracking.pfNuclear_cfi import *
00008 from RecoEgamma.EgammaElectronProducers.gsfElectronCkfTrackCandidateMaker_cff import *
00009 import RecoTracker.CkfPattern.CkfTrackCandidates_cfi
00010 gsfElCandidates = RecoTracker.CkfPattern.CkfTrackCandidates_cfi.ckfTrackCandidates.clone()
00011 import TrackingTools.GsfTracking.GsfElectronFit_cfi
00012 gsfPFtracks = TrackingTools.GsfTracking.GsfElectronFit_cfi.GsfGlobalElectronTest.clone()
00013 from RecoParticleFlow.PFTracking.pfTrackElec_cfi import *
00014
00015 from RecoParticleFlow.PFTracking.pfConversions_cfi import *
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035 particleFlowTrackWithConversion =cms.Sequence(
00036 elecPreId*
00037 gsfSeedClean*
00038 gsfElCandidates*
00039 gsfPFtracks*
00040 pfTrackElec*
00041
00042
00043 pfConversions
00044 )
00045
00046
00047 gsfElCandidates.TrajectoryBuilder = 'TrajectoryBuilderForElectronsinJets'
00048 gsfElCandidates.SeedProducer = 'gsfSeedClean'
00049 gsfElCandidates.SeedLabel = ''
00050 gsfPFtracks.Fitter = 'GsfElectronFittingSmoother'
00051 gsfPFtracks.Propagator = 'fwdElectronPropagator'
00052 gsfPFtracks.src = 'gsfElCandidates'
00053 gsfPFtracks.TTRHBuilder = 'WithTrackAngle'
00054 gsfPFtracks.TrajectoryInEvent = True
00055
00056
00057 import TrackingTools.KalmanUpdators.Chi2MeasurementEstimatorESProducer_cfi
00058 electronEstimatorChi2 = TrackingTools.KalmanUpdators.Chi2MeasurementEstimatorESProducer_cfi.Chi2MeasurementEstimator.clone()
00059
00060
00061 import RecoTracker.CkfPattern.CkfTrajectoryBuilderESProducer_cfi
00062 TrajectoryBuilderForElectronsinJets = RecoTracker.CkfPattern.CkfTrajectoryBuilderESProducer_cfi.CkfTrajectoryBuilder.clone()
00063
00064 TrajectoryBuilderForElectronsinJets.ComponentName = 'TrajectoryBuilderForElectronsinJets'
00065 TrajectoryBuilderForElectronsinJets.trajectoryFilterName = 'TrajectoryFilterForPixelMatchGsfElectrons'
00066 TrajectoryBuilderForElectronsinJets.maxCand = 3
00067 TrajectoryBuilderForElectronsinJets.intermediateCleaning = False
00068 TrajectoryBuilderForElectronsinJets.propagatorAlong = 'fwdGsfElectronPropagator'
00069 TrajectoryBuilderForElectronsinJets.propagatorOpposite = 'bwdGsfElectronPropagator'
00070 TrajectoryBuilderForElectronsinJets.estimator = 'electronEstimatorChi2'
00071 TrajectoryBuilderForElectronsinJets.MeasurementTrackerName = ''
00072 TrajectoryBuilderForElectronsinJets.lostHitPenalty = 100.
00073 TrajectoryBuilderForElectronsinJets.alwaysUseInvalidHits = True
00074 TrajectoryBuilderForElectronsinJets.TTRHBuilder = 'WithTrackAngle'
00075 TrajectoryBuilderForElectronsinJets.updator = 'KFUpdator'
00076 electronEstimatorChi2.ComponentName = 'electronEstimatorChi2'
00077
00078 electronEstimatorChi2.MaxChi2 = 2000.
00079 electronEstimatorChi2.nSigma = 3.