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 ## Set up geometry
7 geopro = cms.EDProducer("GeometryProducer",
8  UseMagneticField = cms.bool(True),
9  UseSensitiveDetectors = cms.bool(False),
10  MagneticField = cms.PSet(
11  UseLocalMagFieldManager = cms.bool(False),
12  Verbosity = cms.untracked.bool(False),
13  ConfGlobalMFM = cms.PSet(
14  Volume = cms.string('OCMS'),
15  OCMS = cms.PSet(
16  Stepper = cms.string('G4ClassicalRK4'),
17  Type = cms.string('CMSIMField'),
18  G4ClassicalRK4 = cms.PSet(
19  MaximumEpsilonStep = cms.untracked.double(0.01), ## in mm
20  DeltaOneStep = cms.double(0.001), ## in mm
21  MaximumLoopCounts = cms.untracked.double(1000.0),
22  DeltaChord = cms.double(0.001), ## in mm
23  MinStep = cms.double(0.1), ## in mm
24  DeltaIntersectionAndOneStep = cms.untracked.double(-1.0),
25  DeltaIntersection = cms.double(0.0001), ## in mm
26  MinimumEpsilonStep = cms.untracked.double(1e-05) ## in mm
27  )
28  )
29  ),
30  delta = cms.double(1.0)
31  )
32 
33  )
34 
35 
36 ## Create G4e fitter - smoothing doesn't work with current Geant release
37 ## working on getting it added
38 G4eFitter = cms.ESProducer("KFTrajectoryFitterESProducer",
39  ComponentName = cms.string('G4eFitter'),
40  Estimator = cms.string('Chi2'),
41  Propagator = cms.string('Geant4ePropagator'),
42  Updator = cms.string('KFUpdator'),
43  minHits = cms.int32(3)
44  )
45 
46 ## Different versions have different refitter cffs
48 #from RecoTracker.TrackProducer.RefitterWithMaterial_cff import *
49 Geant4eRefitter = TrackRefitter.clone()
50 Geant4eRefitter.Propagator=cms.string("Geant4ePropagator")
51 Geant4eRefitter.Fitter=cms.string("G4eFitter")
52 
53 geant4eTrackRefit = cms.Sequence(geopro*Geant4eRefitter)
Load propagator.