CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
geantRefit_cff.py
Go to the documentation of this file.
2 
3 ## Load propagator
5 
6 
8 
9 ## Set up geometry
10 geopro = cms.EDProducer("GeometryProducer",
11  UseMagneticField = cms.bool(True),
12  UseSensitiveDetectors = cms.bool(False),
13  MagneticField = cms.PSet(
14  UseLocalMagFieldManager = cms.bool(False),
15  Verbosity = cms.untracked.bool(False),
16  ConfGlobalMFM = cms.PSet(
17  Volume = cms.string('OCMS'),
18  OCMS = cms.PSet(
19  Stepper = cms.string('G4ClassicalRK4'),
20  Type = cms.string('CMSIMField'),
21  StepperParam = cms.PSet(
22  MaximumEpsilonStep = cms.untracked.double(0.01), ## in mm
23  DeltaOneStep = cms.double(0.001), ## in mm
24  MaximumLoopCounts = cms.untracked.double(1000.0),
25  DeltaChord = cms.double(0.001), ## in mm
26  MinStep = cms.double(0.1), ## in mm
27  DeltaIntersectionAndOneStep = cms.untracked.double(-1.0),
28  DeltaIntersection = cms.double(0.0001), ## in mm
29  MinimumEpsilonStep = cms.untracked.double(1e-05) ## in mm
30  )
31  )
32  ),
33  delta = cms.double(1.0)
34  )
35  )
36 
37 # load this to do a track refit
41 
42 G4eFitter = RKTrajectoryFitter.clone (
43  ComponentName = cms.string('G4eFitter'),
44  Propagator = cms.string('Geant4ePropagator')
45 )
46 
47 G4eSmoother = RKTrajectorySmoother.clone (
48  ComponentName = cms.string('G4eSmoother'),
49  Propagator = cms.string('Geant4ePropagator'),
50 
51  ## modify rescaling to have a more stable fit during the backward propagation
52  errorRescaling = cms.double(2.0)
53 )
54 
55 G4eFitterSmoother = KFFittingSmootherWithOutliersRejectionAndRK.clone(
56  ComponentName = cms.string('G4eFitterSmoother'),
57  Fitter = cms.string('G4eFitter'),
58  Smoother = cms.string('G4eSmoother'),
59  ## will reject no hits
60  EstimateCut = cms.double(-1.0)
61 )
62 
63 ## Different versions have different refitter cffs
65 
66 # configure the refitter with the G4e
67 # automatically uses the generalTracks collection as input
68 Geant4eTrackRefitter = TrackRefitter.clone()
69 Geant4eTrackRefitter.Fitter = cms.string('G4eFitterSmoother')
70 Geant4eTrackRefitter.Propagator = cms.string('Geant4ePropagator')
71 
72 geant4eTrackRefit = cms.Sequence(geopro*Geant4eTrackRefitter)
Load propagator.