Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:26:16

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 from TrackingTools.KalmanUpdators.KFUpdatorESProducer_cfi import *
0004 from TrackingTools.GeomPropagators.SmartPropagator_cff import *
0005 from RecoMuon.TrackingTools.MuonUpdatorAtVertex_cff import *
0006 import TrackingTools.KalmanUpdators.Chi2MeasurementEstimator_cfi
0007 Chi2EstimatorForMuonTrackLoader = TrackingTools.KalmanUpdators.Chi2MeasurementEstimator_cfi.Chi2MeasurementEstimator.clone(
0008     ComponentName = 'Chi2EstimatorForMuonTrackLoader',
0009     nSigma = 3.0,
0010     MaxChi2 = 100000.0
0011 )
0012 
0013 import TrackingTools.TrackFitters.KFTrajectorySmoother_cfi
0014 KFSmootherForMuonTrackLoader = TrackingTools.TrackFitters.KFTrajectorySmoother_cfi.KFTrajectorySmoother.clone(
0015     errorRescaling = 10.0,
0016     minHits        = 3,
0017     ComponentName  = 'KFSmootherForMuonTrackLoader',
0018     Estimator      = 'Chi2EstimatorForMuonTrackLoader',
0019     Updator        = 'KFUpdator',
0020     Propagator     = 'SmartPropagatorAnyRK'
0021 )
0022 
0023 from Configuration.Eras.Modifier_fastSim_cff import fastSim
0024 # FastSim doesn't use Runge Kute for propagation
0025 fastSim.toModify(KFSmootherForMuonTrackLoader,
0026                  Propagator = "SmartPropagatorAny")
0027 
0028 KFSmootherForMuonTrackLoaderL3 = TrackingTools.TrackFitters.KFTrajectorySmoother_cfi.KFTrajectorySmoother.clone(
0029     errorRescaling = 10.0,
0030     minHits        = 3,
0031     ComponentName  = 'KFSmootherForMuonTrackLoaderL3',
0032     Estimator      = 'Chi2EstimatorForMuonTrackLoader',
0033     Updator        = 'KFUpdator',
0034     Propagator     = 'SmartPropagatorAnyOpposite'
0035 )
0036 
0037 MuonTrackLoaderForSTA = cms.PSet(
0038     TrackLoaderParameters = cms.PSet(
0039         MuonUpdatorAtVertex,
0040         Smoother = cms.string('KFSmootherForMuonTrackLoader'),
0041         DoSmoothing = cms.bool(False),
0042         VertexConstraint = cms.bool(True),
0043         beamSpot = cms.InputTag("offlineBeamSpot"),
0044         TTRHBuilder = cms.string('WithAngleAndTemplate')
0045     )
0046 )
0047 MuonTrackLoaderForGLB = cms.PSet(
0048     TrackLoaderParameters = cms.PSet(
0049         MuonUpdatorAtVertex,
0050         Smoother = cms.string('KFSmootherForMuonTrackLoader'),
0051         DoSmoothing = cms.bool(True),
0052         VertexConstraint = cms.bool(False),
0053         beamSpot = cms.InputTag("offlineBeamSpot"),
0054         TTRHBuilder = cms.string('WithAngleAndTemplate')
0055     )
0056 )
0057 MuonTrackLoaderForL2 = cms.PSet(
0058     TrackLoaderParameters = cms.PSet(
0059         MuonUpdatorAtVertex,
0060         Smoother = cms.string('KFSmootherForMuonTrackLoader'),
0061         DoSmoothing = cms.bool(False),
0062         VertexConstraint = cms.bool(True),
0063         beamSpot = cms.InputTag("hltOfflineBeamSpot"),
0064         TTRHBuilder = cms.string('WithAngleAndTemplate')
0065     )
0066 )
0067 MuonTrackLoaderForL3 = cms.PSet(
0068     TrackLoaderParameters = cms.PSet(
0069         MuonUpdatorAtVertex,
0070         PutTkTrackIntoEvent = cms.untracked.bool(True),
0071         Smoother = cms.string('KFSmootherForMuonTrackLoaderL3'),
0072         SmoothTkTrack = cms.untracked.bool(False),
0073         MuonSeededTracksInstance = cms.untracked.string('L2Seeded'),
0074         VertexConstraint = cms.bool(False),
0075         DoSmoothing = cms.bool(True),
0076         beamSpot = cms.InputTag("hltOfflineBeamSpot"),
0077         TTRHBuilder = cms.string('WithAngleAndTemplate')
0078     )
0079 )
0080 MuonTrackLoaderForCosmic = cms.PSet(
0081     TrackLoaderParameters = cms.PSet(
0082         MuonUpdatorAtVertexAnyDirection,
0083         PutTrajectoryIntoEvent = cms.untracked.bool(False),
0084         VertexConstraint = cms.bool(False),
0085         AllowNoVertex = cms.untracked.bool(True),
0086         Smoother = cms.string('KFSmootherForMuonTrackLoader'),
0087         DoSmoothing = cms.bool(False),
0088         beamSpot = cms.InputTag("offlineBeamSpot"),
0089         TTRHBuilder = cms.string('WithAngleAndTemplate')
0090     )
0091 )