121 from MuonConfig.MuonCalibrationConfig
import MdtCalibrationToolCfg
138 if flags.Detector.GeometryCSC:
142 CscDataPreparator =
""
145 if flags.Detector.GeometrysTGC:
149 StgcDataPreparator =
""
152 if flags.Detector.GeometryMM:
156 MmDataPreparator =
""
160 acc.merge( rpcRDAcc )
164 acc.merge( tgcRDAcc )
171 TrigL2MuonSA__MuFastDataPreparator=CompFactory.getComp(
"TrigL2MuonSA::MuFastDataPreparator")
173 from TrigT1MuonRecRoiTool.TrigT1MuonRecRoiToolConfig
import RPCRecRoiToolCfg
174 MuFastDataPreparator = TrigL2MuonSA__MuFastDataPreparator( CSCDataPreparator = CscDataPreparator,
175 MDTDataPreparator = MdtDataPreparator,
176 RPCDataPreparator = RpcDataPreparator,
177 TGCDataPreparator = TgcDataPreparator,
178 STGCDataPreparator = StgcDataPreparator,
179 MMDataPreparator = MmDataPreparator,
180 RpcRoadDefiner = RpcRoadDefiner,
181 TgcRoadDefiner = TgcRoadDefiner,
182 ClusterRoadDefiner = ClusterRoadDefiner,
183 TrigT1RPCRecRoiTool = acc.popToolsAndMerge(
RPCRecRoiToolCfg(flags, useRun3Config=flags.Trigger.enableL1MuonPhase1)) )
186 TrigL2MuonSA__MuFastStationFitter,TrigL2MuonSA__PtFromAlphaBeta=CompFactory.getComps(
"TrigL2MuonSA::MuFastStationFitter",
"TrigL2MuonSA::PtFromAlphaBeta")
187 PtFromAlphaBeta = TrigL2MuonSA__PtFromAlphaBeta()
188 PtFromAlphaBeta.useCscPt =
True
189 PtFromAlphaBeta.AvoidMisalignedCSCs =
False
191 MuFastStationFitter = TrigL2MuonSA__MuFastStationFitter( PtFromAlphaBeta = PtFromAlphaBeta )
192 TrigL2MuonSA__MuFastPatternFinder,TrigL2MuonSA__MuFastTrackFitter,TrigL2MuonSA__MuFastTrackExtrapolator,TrigL2MuonSA__MuCalStreamerTool,TrigL2MuonSA__CscSegmentMaker=CompFactory.getComps(
"TrigL2MuonSA::MuFastPatternFinder",
"TrigL2MuonSA::MuFastTrackFitter",
"TrigL2MuonSA::MuFastTrackExtrapolator",
"TrigL2MuonSA::MuCalStreamerTool",
"TrigL2MuonSA::CscSegmentMaker")
193 MuFastPatternFinder = TrigL2MuonSA__MuFastPatternFinder(CalibrationTool=acc.popToolsAndMerge(
MdtCalibrationToolCfg(flags)))
194 MuFastTrackFitter = TrigL2MuonSA__MuFastTrackFitter()
195 MuFastTrackExtrapolator = TrigL2MuonSA__MuFastTrackExtrapolator()
197 from RegionSelector.RegSelToolConfig
import regSelTool_MDT_Cfg, regSelTool_TGC_Cfg
198 MuCalStreamerTool = TrigL2MuonSA__MuCalStreamerTool(
203 CscSegmentMaker = TrigL2MuonSA__CscSegmentMaker()
205 if not flags.Detector.GeometrysTGC
and not flags.Detector.GeometryMM:
206 MuFastStationFitter.NswStationFitter=
""
209 useNSW = ((
not flags.Muon.runCommissioningChain )
and (
not flags.Muon.disableNSWForL2SA ))
210 from TrigL2MuonSA.TrigL2MuonSAMonitoring
import TrigL2MuonSAMonitoring
211 from TrkConfig.AtlasExtrapolatorConfig
import AtlasExtrapolatorCfg
212 muFastAlg = CompFactory.MuFastSteering(
213 name =
"MuFastSteering_Muon"+setup,
214 DataPreparator = MuFastDataPreparator,
215 StationFitter = MuFastStationFitter,
216 PatternFinder = MuFastPatternFinder,
217 TrackFitter = MuFastTrackFitter,
218 TrackExtrapolator = MuFastTrackExtrapolator,
219 FtfRoadDefiner = CompFactory.TrigL2MuonSA.FtfRoadDefiner(
221 CalibrationStreamer = MuCalStreamerTool,
222 MuonCalibrationStream =
"MuonCalibrationStream"+setup,
223 CscSegmentMaker = CscSegmentMaker,
225 R_WIDTH_TGC_FAILED = 200,
226 R_WIDTH_RPC_FAILED = 400,
227 DoCalibrationStream =
False,
228 USE_ROIBASEDACCESS_CSC =
True,
234 USE_ROIBASEDACCESS_STGC=
False,
235 USE_ROIBASEDACCESS_MM =
False,
237 RpcErrToDebugStream =
True,
242 UseRun3Config = flags.Trigger.enableL1MuonPhase1,
243 UseEndcapInnerFromBarrel =
True,
247 TrigMuonBackExtrapolator=CompFactory.TrigMuonBackExtrapolator
252 if setup ==
'900GeV':
253 muFastAlg.WinPt = 4.0
254 muFastAlg.Scale_Road_BarrelInner = 3
255 muFastAlg.Scale_Road_BarrelMiddle = 3
256 muFastAlg.Scale_Road_BarrelOuter = 3
258 muFastAlg.WinPt = 6.0
259 muFastAlg.Scale_Road_BarrelInner = 1
260 muFastAlg.Scale_Road_BarrelMiddle = 1
261 muFastAlg.Scale_Road_BarrelOuter = 1
264 muFastAlg.DoCalibrationStream =
True
265 muFastAlg.MuonCalDataScouting =
False
266 muFastAlg.MuonCalBufferSize = 1024*1024
268 elif setup ==
'MuonCalibDataScouting':
269 muFastAlg.DoCalibrationStream =
True
270 muFastAlg.MuonCalDataScouting =
True
271 muFastAlg.MuonCalBufferSize = 1024*1024
273 elif setup ==
'l2mtmode':
274 muFastAlg.multitrackMode =
True
275 muFastAlg.doEndcapForl2mt =
False
277 elif setup ==
'IOmode':
279 muFastAlg.topoRoad =
False
280 muFastAlg.InsideOutMode =
True
282 return acc, muFastAlg