ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Trigger
TrigAlgorithms
TrigMinBias
python
MbtsConfig.py
Go to the documentation of this file.
1
# Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
2
from
TrigMinBias.TrigMinBiasMonitoring
import
MbtsFexMonitoring
3
from
AthenaConfiguration.ComponentFactory
import
CompFactory
4
from
AthenaConfiguration.ComponentAccumulator
import
ComponentAccumulator
5
6
7
def
MbtsFexCfg
(flags, name="MbtsFex", MbtsBitsKey=None):
8
"""Configures MBTS Fex with monitoring"""
9
acc = ComponentAccumulator()
10
from
TrigT2CaloCommon.TrigCaloDataAccessConfig
import
CaloDataAccessSvcDependencies, trigCaloDataAccessSvcCfg
11
12
13
alg = CompFactory.MbtsFex(name,
14
MbtsBitsKey=MbtsBitsKey,
15
MonTool = MbtsFexMonitoring(flags),
16
ExtraInputs = CaloDataAccessSvcDependencies)
17
acc.addEventAlgo(alg, primary=
True
)
18
acc.merge(trigCaloDataAccessSvcCfg(flags))
19
return
acc
20
21
def
MbtsSGInputCfg
(flags):
22
"""Configures SG Input needed for MBTS Fex"""
23
from
SGComps.SGInputLoaderConfig
import
SGInputLoaderCfg
24
return
SGInputLoaderCfg(flags, [(
'TileTBID'
,
'DetectorStore+TileTBID'
)])
25
26
27
if
__name__ ==
'__main__'
:
28
from
AthenaConfiguration.AllConfigFlags
import
initConfigFlags
29
from
AthenaConfiguration.TestDefaults
import
defaultTestFiles, defaultGeometryTags
30
31
flags = initConfigFlags()
32
flags.Input.Files=defaultTestFiles.RAW_RUN2
# or ESD or AOD or ...
33
flags.GeoModel.AtlasVersion = defaultGeometryTags.RUN2
34
flags.lock()
35
36
acc=ComponentAccumulator()
37
38
acc.merge(
MbtsFexCfg
(flags, MbtsBitsKey=
"some"
))
39
acc.merge(
MbtsSGInputCfg
(flags))
40
41
acc.printConfig(withDetails=
True
, summariseProps=
True
)
42
43
acc.wasMerged()
python.MbtsConfig.MbtsFexCfg
MbtsFexCfg(flags, name="MbtsFex", MbtsBitsKey=None)
Definition
MbtsConfig.py:7
python.MbtsConfig.MbtsSGInputCfg
MbtsSGInputCfg(flags)
Definition
MbtsConfig.py:21
Generated on
for ATLAS Offline Software by
1.17.0