Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:27:14

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 # The services
0004 from RecoMuon.TrackingTools.MuonServiceProxy_cff import *
0005 from RecoMuon.TrackingTools.MuonTrackLoader_cff import *
0006 
0007 standAloneMuons = cms.EDProducer(
0008     "StandAloneMuonProducer",
0009     MuonTrackLoaderForSTA,
0010     MuonServiceProxy,
0011     #                                 InputObjects = cms.InputTag("mergedStandAloneMuonSeeds"),
0012     InputObjects = cms.InputTag("ancientMuonSeed"),
0013     MuonTrajectoryBuilder = cms.string("Exhaustive"),
0014     STATrajBuilderParameters = cms.PSet(
0015         NavigationType = cms.string('Standard'),
0016         SeedPosition = cms.string('in'),
0017         SeedPropagator = cms.string('SteppingHelixPropagatorAny'),
0018         
0019         DoSeedRefit = cms.bool(False),
0020         SeedTransformerParameters = cms.PSet(
0021             Fitter = cms.string('KFFitterSmootherSTA'),
0022             RescaleError = cms.double(100.0),
0023             MuonRecHitBuilder = cms.string('MuonRecHitBuilder'),
0024             Propagator = cms.string('SteppingHelixPropagatorAny'),
0025             NMinRecHits = cms.uint32(2),
0026             UseSubRecHits = cms.bool(False)
0027             ),
0028         
0029         FilterParameters = cms.PSet(
0030             FitDirection = cms.string('insideOut'),
0031             EnableDTMeasurement = cms.bool(True),
0032             DTRecSegmentLabel = cms.InputTag("dt4DSegments"),
0033             EnableCSCMeasurement = cms.bool(True),
0034             CSCRecSegmentLabel = cms.InputTag("cscSegments"),
0035             EnableRPCMeasurement = cms.bool(True),
0036             RPCRecSegmentLabel = cms.InputTag("rpcRecHits"),
0037             EnableGEMMeasurement = cms.bool(False),
0038             GEMRecSegmentLabel = cms.InputTag("gemRecHits"),
0039             EnableME0Measurement = cms.bool(False),
0040             ME0RecSegmentLabel = cms.InputTag("me0Segments"),
0041             NumberOfSigma = cms.double(3.0),
0042             MaxChi2 = cms.double(1000.0),
0043             Propagator = cms.string('SteppingHelixPropagatorAny'),
0044             MuonTrajectoryUpdatorParameters = cms.PSet(MaxChi2 = cms.double(25.0),
0045                                                        RescaleError = cms.bool(False),
0046                                                        RescaleErrorFactor = cms.double(100.0),
0047                                                        Granularity = cms.int32(0),
0048                                                        UseInvalidHits = cms.bool(True),
0049                                                        ExcludeRPCFromFit = cms.bool(False)
0050                                                        )
0051             ),
0052         
0053         DoBackwardFilter = cms.bool(True),
0054         BWFilterParameters = cms.PSet(
0055             FitDirection = cms.string('outsideIn'),
0056             BWSeedType = cms.string('fromGenerator'),
0057             EnableDTMeasurement = cms.bool(True),
0058             DTRecSegmentLabel = cms.InputTag("dt4DSegments"),
0059             EnableCSCMeasurement = cms.bool(True),
0060             CSCRecSegmentLabel = cms.InputTag("cscSegments"),
0061             EnableRPCMeasurement = cms.bool(True),
0062             RPCRecSegmentLabel = cms.InputTag("rpcRecHits"),
0063             EnableGEMMeasurement = cms.bool(False),
0064             GEMRecSegmentLabel = cms.InputTag("gemRecHits"),
0065             EnableME0Measurement = cms.bool(False),
0066             ME0RecSegmentLabel = cms.InputTag("me0Segments"),
0067             NumberOfSigma = cms.double(3.0),
0068             MaxChi2 = cms.double(100.0),
0069             Propagator = cms.string('SteppingHelixPropagatorAny'),
0070             MuonTrajectoryUpdatorParameters = cms.PSet(MaxChi2 = cms.double(25.0),
0071                                                        RescaleError = cms.bool(False),
0072                                                        RescaleErrorFactor = cms.double(100.0),
0073                                                        Granularity = cms.int32(0),
0074                                                        UseInvalidHits = cms.bool(True),
0075                                                        ExcludeRPCFromFit = cms.bool(False)
0076                                                        )
0077             ),
0078         DoRefit = cms.bool(False),
0079         RefitterParameters = cms.PSet(
0080             FitterName = cms.string('KFFitterSmootherSTA'),
0081             NumberOfIterations = cms.uint32(3),
0082             ForceAllIterations = cms.bool(False),
0083             MaxFractionOfLostHits = cms.double(0.05),
0084             RescaleError = cms.double(100.)
0085             )
0086         
0087         )
0088     )
0089 
0090 
0091 
0092 standAloneSETMuons = cms.EDProducer("StandAloneMuonProducer",
0093                                     MuonTrackLoaderForSTA,
0094                                     MuonServiceProxy,
0095                                     InputObjects = cms.InputTag("SETMuonSeed"),
0096                                     MuonTrajectoryBuilder = cms.string("DirectMuonTrajectoryBuilder"),
0097                                     STATrajBuilderParameters = cms.PSet(
0098     SeedTransformerParameters = cms.PSet(
0099     Fitter = cms.string('KFFitterSmootherSTA'),
0100     RescaleError = cms.double(1.0),
0101     MuonRecHitBuilder = cms.string('MuonRecHitBuilder'),
0102     Propagator = cms.string('SteppingHelixPropagatorAny'),
0103     NMinRecHits = cms.uint32(2),
0104     # careful - used with UseSegmentsInTrajectory in SETMuonSeed_cfi.py
0105     #         UseSubRecHits = cms.bool(True)
0106     UseSubRecHits = cms.bool(False)
0107     )
0108     )
0109                                     )
0110 
0111 _enableGEMMeasurement = dict( EnableGEMMeasurement = True )
0112 from Configuration.Eras.Modifier_run3_GEM_cff import run3_GEM
0113 run3_GEM.toModify( standAloneMuons, STATrajBuilderParameters = dict(
0114     FilterParameters = _enableGEMMeasurement, 
0115     BWFilterParameters = _enableGEMMeasurement ) )
0116 
0117 _enableME0Measurement = dict( EnableME0Measurement = True )
0118 from Configuration.Eras.Modifier_phase2_muon_cff import phase2_muon
0119 phase2_muon.toModify( standAloneMuons, STATrajBuilderParameters = dict(
0120     FilterParameters = _enableME0Measurement,
0121     BWFilterParameters = _enableME0Measurement ) )
0122 
0123 _disableME0Measurement = dict( EnableME0Measurement = False )
0124 from Configuration.Eras.Modifier_phase2_GE0_cff import phase2_GE0
0125 phase2_GE0.toModify( standAloneMuons, STATrajBuilderParameters = dict(
0126     FilterParameters = _disableME0Measurement,
0127     BWFilterParameters = _disableME0Measurement ) )