ATLAS Offline Software
Loading...
Searching...
No Matches
ViewAlgsConfig.py
Go to the documentation of this file.
1#Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
2
3from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
4from AthenaConfiguration.ComponentFactory import CompFactory
5
6def 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
14def 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
22def 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
30def 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
37def xAODViewAlgsCfg(flags):
38 result = ComponentAccumulator()
39 result.merge(MdtMeasViewAlgCfg(flags))
40 result.merge(RpcMeasViewAlgCfg(flags))
41 result.merge(sTgcMeasViewAlgCfg(flags))
42 return result
RpcMeasViewAlgCfg(flags, name="RpcMeasViewAlg", **kwargs)
MdtMeasViewAlgCfg(flags, name="MdtMeasViewAlg", **kwargs)
sTgcMeasViewAlgCfg(flags, name="sTgcMeasViewAlg", **kwargs)
SegmentViewAlgCfg(flags, name="SegmentViewAlg", **kwargs)