CMS 3D CMS Logo

geantRefit_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 
5 
6 
8 
9 
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),
23  DeltaOneStep = cms.double(0.001),
24  MaximumLoopCounts = cms.untracked.double(1000.0),
25  DeltaChord = cms.double(0.001),
26  MinStep = cms.double(0.1),
27  DeltaIntersectionAndOneStep = cms.untracked.double(-1.0),
28  DeltaIntersection = cms.double(0.0001),
29  MinimumEpsilonStep = cms.untracked.double(1e-05)
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 
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 
60  EstimateCut = cms.double(-1.0)
61 )
62 
63 
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)
TrackRefitters_cff
generalV0Candidates_cff
TracksToTrajectories_cff
Geant4ePropagator_cfi
Load propagator.