CMS 3D CMS Logo

TracksToTrajectories_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
7 
10 
13 
15 
16 Chi2EstimatorForRefit = Chi2MeasurementEstimator.clone()
17 Chi2EstimatorForRefit.ComponentName = cms.string('Chi2EstimatorForRefit')
18 Chi2EstimatorForRefit.MaxChi2 = cms.double(100000.0)
19 Chi2EstimatorForRefit.nSigma = cms.double(3.0)
20 
21 
24 
25 KFFitterForRefitOutsideIn = KFTrajectoryFitter.clone()
26 KFFitterForRefitOutsideIn.ComponentName = cms.string('KFFitterForRefitOutsideIn')
27 KFFitterForRefitOutsideIn.Propagator = cms.string('SmartPropagatorAnyRKOpposite')
28 KFFitterForRefitOutsideIn.Updator = cms.string('KFUpdator')
29 KFFitterForRefitOutsideIn.Estimator = cms.string('Chi2EstimatorForRefit')
30 KFFitterForRefitOutsideIn.minHits = cms.int32(3)
31 
32 KFSmootherForRefitOutsideIn = KFTrajectorySmoother.clone()
33 KFSmootherForRefitOutsideIn.ComponentName = cms.string('KFSmootherForRefitOutsideIn')
34 KFSmootherForRefitOutsideIn.Propagator = cms.string('SmartPropagatorAnyRKOpposite')
35 KFSmootherForRefitOutsideIn.Updator = cms.string('KFUpdator')
36 KFSmootherForRefitOutsideIn.Estimator = cms.string('Chi2EstimatorForRefit')
37 KFSmootherForRefitOutsideIn.errorRescaling = cms.double(100.0)
38 KFSmootherForRefitOutsideIn.minHits = cms.int32(3)
39 
40 #
41 KFFitterForRefitInsideOut = KFTrajectoryFitter.clone()
42 KFFitterForRefitInsideOut.ComponentName = cms.string('KFFitterForRefitInsideOut')
43 KFFitterForRefitInsideOut.Propagator = cms.string('SmartPropagatorAnyRK')
44 KFFitterForRefitInsideOut.Updator = cms.string('KFUpdator')
45 KFFitterForRefitInsideOut.Estimator = cms.string('Chi2EstimatorForRefit')
46 KFFitterForRefitInsideOut.minHits = cms.int32(3)
47 
48 
49 KFSmootherForRefitInsideOut = KFTrajectorySmoother.clone()
50 KFSmootherForRefitInsideOut.ComponentName = cms.string('KFSmootherForRefitInsideOut')
51 KFSmootherForRefitInsideOut.Propagator = cms.string('SmartPropagatorAnyRK')
52 KFSmootherForRefitInsideOut.Updator = cms.string('KFUpdator')
53 KFSmootherForRefitInsideOut.Estimator = cms.string('Chi2EstimatorForRefit')
54 KFSmootherForRefitInsideOut.errorRescaling = cms.double(100.0)
55 KFSmootherForRefitInsideOut.minHits = cms.int32(3)
56 
57 from Configuration.Eras.Modifier_fastSim_cff import fastSim
58 # FastSim doesn't use Runge Kute for propagation
59 # the following propagators are not used in FastSim, but just to be sure...
60 fastSim.toModify(KFFitterForRefitOutsideIn, Propagator = 'SmartPropagatorAny')
61 fastSim.toModify(KFSmootherForRefitOutsideIn, Propagator = 'SmartPropagator')
62 fastSim.toModify(KFFitterForRefitInsideOut, Propagator = "SmartPropagatorAny")
63 fastSim.toModify(KFSmootherForRefitInsideOut, Propagator = "SmartPropagatorAny")
64 
std::unique_ptr< TrajectoryFitter > clone() const override
KFTrajectorySmoother * clone() const override
Chi2MeasurementEstimator * clone() const override