CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_5_3_14/src/TrackPropagation/Geant4e/python/geantRefit_cff.py

Go to the documentation of this file.
00001 import FWCore.ParameterSet.Config as cms
00002 
00003 ## Load propagator
00004 from TrackPropagation.Geant4e.Geant4ePropagator_cfi import *
00005 
00006 ## Set up geometry
00007 geopro = cms.EDProducer("GeometryProducer",
00008      UseMagneticField = cms.bool(True),
00009      UseSensitiveDetectors = cms.bool(False),
00010      MagneticField = cms.PSet(
00011          UseLocalMagFieldManager = cms.bool(False),
00012          Verbosity = cms.untracked.bool(False),
00013          ConfGlobalMFM = cms.PSet(
00014              Volume = cms.string('OCMS'),
00015              OCMS = cms.PSet(
00016                  Stepper = cms.string('G4ClassicalRK4'),
00017                  Type = cms.string('CMSIMField'),
00018                  G4ClassicalRK4 = cms.PSet(
00019                      MaximumEpsilonStep = cms.untracked.double(0.01), ## in mm
00020                      DeltaOneStep = cms.double(0.001), ## in mm
00021                      MaximumLoopCounts = cms.untracked.double(1000.0),
00022                      DeltaChord = cms.double(0.001), ## in mm
00023                      MinStep = cms.double(0.1), ## in mm
00024                      DeltaIntersectionAndOneStep = cms.untracked.double(-1.0),
00025                      DeltaIntersection = cms.double(0.0001), ## in mm
00026                      MinimumEpsilonStep = cms.untracked.double(1e-05) ## in mm
00027                  )
00028              )
00029          ),
00030          delta = cms.double(1.0)
00031      )
00032 
00033    )
00034 
00035 
00036 ## Create G4e fitter - smoothing doesn't work with current Geant release
00037 ##    working on getting it added
00038 G4eFitter = cms.ESProducer("KFTrajectoryFitterESProducer",
00039                            ComponentName = cms.string('G4eFitter'),
00040                            Estimator = cms.string('Chi2'),
00041                            Propagator = cms.string('Geant4ePropagator'),
00042                            Updator = cms.string('KFUpdator'),
00043                            minHits = cms.int32(3)
00044                            )
00045 
00046 ## Different versions have different refitter cffs
00047 from RecoTracker.TrackProducer.TrackRefitters_cff import *
00048 #from RecoTracker.TrackProducer.RefitterWithMaterial_cff import *
00049 Geant4eRefitter = TrackRefitter.clone()
00050 Geant4eRefitter.Propagator=cms.string("Geant4ePropagator")
00051 Geant4eRefitter.Fitter=cms.string("G4eFitter")
00052 
00053 geant4eTrackRefit = cms.Sequence(geopro*Geant4eRefitter)