CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
standAloneMuons_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 # The services
6 
7 standAloneMuons = cms.EDProducer(
8  "StandAloneMuonProducer",
9  MuonTrackLoaderForSTA,
10  MuonServiceProxy,
11  # InputObjects = cms.InputTag("mergedStandAloneMuonSeeds"),
12  InputObjects = cms.InputTag("ancientMuonSeed"),
13  MuonTrajectoryBuilder = cms.string("Exhaustive"),
14  STATrajBuilderParameters = cms.PSet(
15  NavigationType = cms.string('Standard'),
16  SeedPosition = cms.string('in'),
17  SeedPropagator = cms.string('SteppingHelixPropagatorAny'),
18 
19  DoSeedRefit = cms.bool(False),
20  SeedTransformerParameters = cms.PSet(
21  Fitter = cms.string('KFFitterSmootherSTA'),
22  RescaleError = cms.double(100.0),
23  MuonRecHitBuilder = cms.string('MuonRecHitBuilder'),
24  Propagator = cms.string('SteppingHelixPropagatorAny'),
25  NMinRecHits = cms.uint32(2),
26  UseSubRecHits = cms.bool(False)
27  ),
28 
29  FilterParameters = cms.PSet(
30  FitDirection = cms.string('insideOut'),
31  EnableDTMeasurement = cms.bool(True),
32  DTRecSegmentLabel = cms.InputTag("dt4DSegments"),
33  EnableCSCMeasurement = cms.bool(True),
34  CSCRecSegmentLabel = cms.InputTag("cscSegments"),
35  EnableRPCMeasurement = cms.bool(True),
36  RPCRecSegmentLabel = cms.InputTag("rpcRecHits"),
37  EnableGEMMeasurement = cms.bool(False),
38  GEMRecSegmentLabel = cms.InputTag("gemRecHits"),
39  EnableME0Measurement = cms.bool(False),
40  ME0RecSegmentLabel = cms.InputTag("me0Segments"),
41  NumberOfSigma = cms.double(3.0),
42  MaxChi2 = cms.double(1000.0),
43  Propagator = cms.string('SteppingHelixPropagatorAny'),
44  MuonTrajectoryUpdatorParameters = cms.PSet(MaxChi2 = cms.double(25.0),
45  RescaleError = cms.bool(False),
46  RescaleErrorFactor = cms.double(100.0),
47  Granularity = cms.int32(0),
48  UseInvalidHits = cms.bool(True),
49  ExcludeRPCFromFit = cms.bool(False)
50  )
51  ),
52 
53  DoBackwardFilter = cms.bool(True),
54  BWFilterParameters = cms.PSet(
55  FitDirection = cms.string('outsideIn'),
56  BWSeedType = cms.string('fromGenerator'),
57  EnableDTMeasurement = cms.bool(True),
58  DTRecSegmentLabel = cms.InputTag("dt4DSegments"),
59  EnableCSCMeasurement = cms.bool(True),
60  CSCRecSegmentLabel = cms.InputTag("cscSegments"),
61  EnableRPCMeasurement = cms.bool(True),
62  RPCRecSegmentLabel = cms.InputTag("rpcRecHits"),
63  EnableGEMMeasurement = cms.bool(False),
64  GEMRecSegmentLabel = cms.InputTag("gemRecHits"),
65  EnableME0Measurement = cms.bool(False),
66  ME0RecSegmentLabel = cms.InputTag("me0Segments"),
67  NumberOfSigma = cms.double(3.0),
68  MaxChi2 = cms.double(100.0),
69  Propagator = cms.string('SteppingHelixPropagatorAny'),
70  MuonTrajectoryUpdatorParameters = cms.PSet(MaxChi2 = cms.double(25.0),
71  RescaleError = cms.bool(False),
72  RescaleErrorFactor = cms.double(100.0),
73  Granularity = cms.int32(0),
74  UseInvalidHits = cms.bool(True),
75  ExcludeRPCFromFit = cms.bool(False)
76  )
77  ),
78  DoRefit = cms.bool(False),
79  RefitterParameters = cms.PSet(
80  FitterName = cms.string('KFFitterSmootherSTA'),
81  NumberOfIterations = cms.uint32(3),
82  ForceAllIterations = cms.bool(False),
83  MaxFractionOfLostHits = cms.double(0.05),
84  RescaleError = cms.double(100.)
85  )
86 
87  )
88  )
89 
90 
91 
92 standAloneSETMuons = cms.EDProducer("StandAloneMuonProducer",
93  MuonTrackLoaderForSTA,
94  MuonServiceProxy,
95  InputObjects = cms.InputTag("SETMuonSeed"),
96  MuonTrajectoryBuilder = cms.string("DirectMuonTrajectoryBuilder"),
97  STATrajBuilderParameters = cms.PSet(
98  SeedTransformerParameters = cms.PSet(
99  Fitter = cms.string('KFFitterSmootherSTA'),
100  RescaleError = cms.double(1.0),
101  MuonRecHitBuilder = cms.string('MuonRecHitBuilder'),
102  Propagator = cms.string('SteppingHelixPropagatorAny'),
103  NMinRecHits = cms.uint32(2),
104  # careful - used with UseSegmentsInTrajectory in SETMuonSeed_cfi.py
105  # UseSubRecHits = cms.bool(True)
106  UseSubRecHits = cms.bool(False)
107  )
108  )
109  )
110 
111 _enableGEMMeasurement = dict( EnableGEMMeasurement = True )
112 from Configuration.Eras.Modifier_run3_GEM_cff import run3_GEM
113 run3_GEM.toModify( standAloneMuons, STATrajBuilderParameters = dict(
114  FilterParameters = _enableGEMMeasurement,
115  BWFilterParameters = _enableGEMMeasurement ) )
116 
117 _enableME0Measurement = dict( EnableME0Measurement = True )
118 from Configuration.Eras.Modifier_phase2_muon_cff import phase2_muon
119 phase2_muon.toModify( standAloneMuons, STATrajBuilderParameters = dict(
120  FilterParameters = _enableME0Measurement,
121  BWFilterParameters = _enableME0Measurement ) )
122 
123 _disableME0Measurement = dict( EnableME0Measurement = False )
124 from Configuration.Eras.Modifier_phase2_GE0_cff import phase2_GE0
125 phase2_GE0.toModify( standAloneMuons, STATrajBuilderParameters = dict(
126  FilterParameters = _disableME0Measurement,
127  BWFilterParameters = _disableME0Measurement ) )