ATLAS Offline Software
Loading...
Searching...
No Matches
TrigT1TRTConfig.py
Go to the documentation of this file.
1# Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
2
4
5from AthenaConfiguration.Enums import Format
6
7def L1TRTSimCfg(flags, name="TrigT1TRT"):
8 from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
9 acc = ComponentAccumulator()
10 from TRT_ConditionsAlgs.TRT_ConditionsAlgsConfig import TRTStrawStatusCondAlgCfg
11 acc.merge(TRTStrawStatusCondAlgCfg(flags))
12 from TRT_ConditionsServices.TRT_ConditionsServicesConfig import TRT_StrawStatusSummaryToolCfg,TRT_StrawNeighbourSvcCfg
13 trtStrawStatusSummaryTool = acc.popToolsAndMerge(TRT_StrawStatusSummaryToolCfg(flags))
14 trtStrawNeighbourSvc = acc.getPrimaryAndMerge(TRT_StrawNeighbourSvcCfg(flags))
15 from AthenaConfiguration.ComponentFactory import CompFactory
16 if flags.Input.Format is Format.BS:
17 from TRT_RawDataByteStreamCnv.TRT_RawDataByteStreamCnvConfig import TRTRawDataProviderCfg
18 acc.merge(TRTRawDataProviderCfg(flags))
19 else:
20 from TrigConfigSvc.TrigConfigSvcCfg import L1ConfigSvcCfg
21 acc.merge(L1ConfigSvcCfg(flags))
22 acc.addEventAlgo(CompFactory.LVL1.TrigT1TRT(name,
23 TTCMultiplicity = flags.Trigger.TRT.TTCMultiplicity,
24 maskedChipsFile = flags.Trigger.TRT.maskedChipsFile,
25 ConditionsSummaryTool = trtStrawStatusSummaryTool,
26 StrawNeighbourSvc = trtStrawNeighbourSvc
27 ))
28 return acc
L1TRTSimCfg(flags, name="TrigT1TRT")