ATLAS Offline Software
ViewAlgsConfig.py
Go to the documentation of this file.
1 #Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
2 
3 from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
4 from AthenaConfiguration.ComponentFactory import CompFactory
5 
6 def sTgcMeasViewAlgCfg(flags, name="sTgcMeasViewAlg", **kwargs):
7  result = ComponentAccumulator()
8  if not flags.Detector.GeometrysTGC:
9  return result
10  the_alg = CompFactory.MuonR4.sTgcMeasViewAlg(name, **kwargs)
11  result.addEventAlgo(the_alg, primary = True)
12  return result
13 
14 def RpcMeasViewAlgCfg(flags, name="RpcMeasViewAlg", **kwargs):
15  result = ComponentAccumulator()
16  if not flags.Detector.GeometryRPC:
17  return result
18  the_alg = CompFactory.MuonR4.RpcMeasViewAlg(name, **kwargs)
19  result.addEventAlgo(the_alg, primary = True)
20  return result
21 
22 def MdtMeasViewAlgCfg(flags, name="MdtMeasViewAlg", **kwargs):
23  result = ComponentAccumulator()
24  if not flags.Detector.GeometryMDT:
25  return result
26  the_alg = CompFactory.MuonR4.MdtMeasViewAlg(name, **kwargs)
27  result.addEventAlgo(the_alg, primary = True)
28  return result
29 
30 def SegmentViewAlgCfg(flags, name="SegmentViewAlg", **kwargs):
31  result = ComponentAccumulator()
32  the_alg = CompFactory.MuonR4.SegmentViewAlg(name, **kwargs)
33  result.addEventAlgo(the_alg, primary = True)
34  return result
35 
36 
37 def xAODViewAlgsCfg(flags):
38  result = ComponentAccumulator()
39  result.merge(MdtMeasViewAlgCfg(flags))
40  result.merge(RpcMeasViewAlgCfg(flags))
41  result.merge(sTgcMeasViewAlgCfg(flags))
42  return result
ViewAlgsConfig.RpcMeasViewAlgCfg
def RpcMeasViewAlgCfg(flags, name="RpcMeasViewAlg", **kwargs)
Definition: ViewAlgsConfig.py:14
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
ViewAlgsConfig.sTgcMeasViewAlgCfg
def sTgcMeasViewAlgCfg(flags, name="sTgcMeasViewAlg", **kwargs)
Definition: ViewAlgsConfig.py:6
ViewAlgsConfig.xAODViewAlgsCfg
def xAODViewAlgsCfg(flags)
Definition: ViewAlgsConfig.py:37
ViewAlgsConfig.MdtMeasViewAlgCfg
def MdtMeasViewAlgCfg(flags, name="MdtMeasViewAlg", **kwargs)
Definition: ViewAlgsConfig.py:22
ViewAlgsConfig.SegmentViewAlgCfg
def SegmentViewAlgCfg(flags, name="SegmentViewAlg", **kwargs)
Definition: ViewAlgsConfig.py:30