ATLAS Offline Software
Loading...
Searching...
No Matches
MbtsConfig.py
Go to the documentation of this file.
1# Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
2from TrigMinBias.TrigMinBiasMonitoring import MbtsFexMonitoring
3from AthenaConfiguration.ComponentFactory import CompFactory
4from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
5
6
7def 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
21def 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
27if __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()
MbtsSGInputCfg(flags)
Definition MbtsConfig.py:21
MbtsFexCfg(flags, name="MbtsFex", MbtsBitsKey=None)
Definition MbtsConfig.py:7