ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Trigger
TrigT1
Muon
L0MuonEndcap
python
L0MuonEndcapConfig.py
Go to the documentation of this file.
1
# Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
2
3
from
AthenaConfiguration.ComponentAccumulator
import
ComponentAccumulator
4
from
AthenaConfiguration.ComponentFactory
import
CompFactory
5
6
7
def
L0MuonEndcapAlgCfg
(flags, name="L0MuonEndcapAlg", **kwargs):
8
"""Configure the initial TGC endcap data-flow boundary."""
9
result = ComponentAccumulator()
10
result.addEventAlgo(CompFactory.L0Muon.L0MuonEndcapAlg(name, **kwargs))
11
return
result
12
13
14
def
L0MuonTGCChainCfg
(flags, **kwargs):
15
"""Configure the minimal S1TGC-to-Endcap data-flow chain."""
16
result = ComponentAccumulator()
17
18
from
L0MuonS1TGC.L0MuonS1TGCConfig
import
L0MuonTGCSimCfg
19
20
result.merge(L0MuonTGCSimCfg(flags, **kwargs.pop(
"S1TGC"
, {})))
21
result.merge(
L0MuonEndcapAlgCfg
(flags, **kwargs.pop(
"Endcap"
, {})))
22
if
kwargs:
23
raise
TypeError(f
"Unexpected configuration groups: {sorted(kwargs)}"
)
24
return
result
25
26
27
if
__name__ ==
"__main__"
:
28
29
from
MuonGeoModelTestR4.testGeoModel
import
(
30
setupGeoR4TestCfg,
31
SetupArgParser,
32
MuonPhaseIITestDefaults,
33
)
34
from
MuonConfig.MuonConfigUtils
import
executeTest
35
36
parser = SetupArgParser()
37
parser.set_defaults(inputFile=MuonPhaseIITestDefaults.RDO_R3)
38
parser.set_defaults(nEvents=20)
39
40
args = parser.parse_args()
41
42
from
AthenaConfiguration.AllConfigFlags
import
initConfigFlags
43
44
flags = initConfigFlags()
45
flags.Common.MsgSuppression =
False
46
flags.Output.RDOFileName =
"L0MuonEndcap.RDO.pool.root"
47
48
flags, acc = setupGeoR4TestCfg(args, flags)
49
50
from
AthenaCommon.Constants
import
DEBUG
51
acc.merge(
52
L0MuonTGCChainCfg
(
53
flags,
54
S1TGC={
"OutputLevel"
: DEBUG},
55
Endcap={
"OutputLevel"
: DEBUG},
56
)
57
)
58
59
from
OutputStreamAthenaPool.OutputStreamConfig
import
OutputStreamCfg
60
61
acc.merge(
62
OutputStreamCfg(
63
flags,
64
"RDO"
,
65
ItemList=[
66
"xAOD::TGCCandDataContainer#L0MuonTGCCandData"
,
67
"xAOD::TGCCandDataAuxContainer#L0MuonTGCCandDataAux."
,
68
"xAOD::SectorLogicCandDataContainer#L0MuonTGCSectorLogicCandData"
,
69
"xAOD::SectorLogicCandDataAuxContainer#L0MuonTGCSectorLogicCandDataAux."
,
70
],
71
takeItemsFromInput=
False
,
72
)
73
)
74
75
executeTest(acc)
Constants
L0MuonEndcapConfig.L0MuonTGCChainCfg
L0MuonTGCChainCfg(flags, **kwargs)
Definition
L0MuonEndcapConfig.py:14
L0MuonEndcapConfig.L0MuonEndcapAlgCfg
L0MuonEndcapAlgCfg(flags, name="L0MuonEndcapAlg", **kwargs)
Definition
L0MuonEndcapConfig.py:7
Generated on
for ATLAS Offline Software by
1.17.0