ATLAS Offline Software
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"""
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 
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.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
python.MbtsConfig.MbtsFexCfg
def MbtsFexCfg(flags, name="MbtsFex", MbtsBitsKey=None)
Definition: MbtsConfig.py:7
SGInputLoaderConfig.SGInputLoaderCfg
def SGInputLoaderCfg(flags, Load=None, **kwargs)
Definition: SGInputLoaderConfig.py:7
python.TrigMinBiasMonitoring.MbtsFexMonitoring
def MbtsFexMonitoring(flags)
Definition: TrigMinBiasMonitoring.py:28
TrigCaloDataAccessConfig.trigCaloDataAccessSvcCfg
def trigCaloDataAccessSvcCfg(flags)
Definition: TrigCaloDataAccessConfig.py:40
python.MbtsConfig.MbtsSGInputCfg
def MbtsSGInputCfg(flags)
Definition: MbtsConfig.py:21
python.AllConfigFlags.initConfigFlags
def initConfigFlags()
Definition: AllConfigFlags.py:19