CMS 3D CMS Logo

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