ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
MuonSpectrometer
MuonPhaseII
MuonPatternRecognition
MuonSpacePointFormation
python
SpacePointFormationConfig.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
MuonSpacePointMakerAlgCfg
(flags, name = "MuonSpacePointMakerAlg", **kwargs):
7
result = ComponentAccumulator()
8
if
not
flags.Detector.GeometryMDT: kwargs.setdefault(
"MdtKey"
,
""
)
9
if
not
flags.Detector.GeometryRPC: kwargs.setdefault(
"RpcKey"
,
""
)
10
if
not
flags.Detector.GeometryTGC: kwargs.setdefault(
"TgcKey"
,
""
)
11
if
not
flags.Detector.GeometryMM: kwargs.setdefault(
"MmKey"
,
""
)
12
if
not
flags.Detector.GeometrysTGC: kwargs.setdefault(
"sTgcKey"
,
""
)
13
14
from
MuonConfig.MuonGeometryConfig
import
MuonGeoModelCfg
15
result.merge(MuonGeoModelCfg(flags))
16
the_alg = CompFactory.MuonR4.SpacePointMakerAlg(name, **kwargs)
17
result.addEventAlgo(the_alg, primary =
True
)
18
return
result
19
20
def
MuonSpacePointFormationCfg
(flags, suffix = ""):
21
result = ComponentAccumulator()
22
from
ActsAlignmentAlgs.AlignmentAlgsConfig
import
ActsGeometryContextAlgCfg
23
result.merge(ActsGeometryContextAlgCfg(flags))
24
25
from
AthenaCommon.SystemOfUnits
import
m
26
result.merge(
MuonSpacePointMakerAlgCfg
(flags,
27
name = f
"MuonSpacePointMakerAlg{suffix}"
,
28
MmKey =
""
, sTgcKey =
""
,
29
maxBucketLengthPatterns = {
"BIL_eta*_phi3"
: 1.14 * m }
#For all the details of the study see: https://gitlab.cern.ch/atlas/athena/-/merge_requests/88702
30
))
31
32
33
if
flags.Detector.GeometrysTGC
or
flags.Detector.GeometryMM:
34
result.merge(
MuonSpacePointMakerAlgCfg
(flags,
35
name=f
"MuonNswSpacePointMakerAlg{suffix}"
,
36
MdtKey=
""
, RpcKey =
""
, TgcKey =
""
,
37
WriteKey =
"NswSpacePoints"
, maxBucketLength = 500., spacePointOverlap = 100.))
38
return
result
SpacePointFormationConfig.MuonSpacePointMakerAlgCfg
MuonSpacePointMakerAlgCfg(flags, name="MuonSpacePointMakerAlg", **kwargs)
Definition
SpacePointFormationConfig.py:6
SpacePointFormationConfig.MuonSpacePointFormationCfg
MuonSpacePointFormationCfg(flags, suffix="")
Definition
SpacePointFormationConfig.py:20
Generated on
for ATLAS Offline Software by
1.17.0