ATLAS Offline Software
Loading...
Searching...
No Matches
ActsGaussianSumFitterConfig.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
7 name: str = "ActsGaussianSumFitterTool",
8 **kwargs) -> ComponentAccumulator:
9 acc = ComponentAccumulator()
10
11 kwargs.setdefault("RefitOnly", True) # Track summary will be added in the algorithm
12
13 kwargs.setdefault("UseDirectNavigation", flags.Acts.GsfDirectNavigation) # direct navigation used for refitting measurements
14 kwargs.setdefault("ComponentMergeMethod", flags.Acts.GsfComponentMergeMethod) # Mean or MaxWeight
15 kwargs.setdefault("MaxComponents", flags.Acts.GsfMaxComponents)
16 kwargs.setdefault("OutlierChi2Cut", flags.Acts.GsfOutlierChi2Cut)
17
18 if "TrackingGeometryTool" not in kwargs:
19 from ActsConfig.ActsGeometryConfig import ActsTrackingGeometryToolCfg
20 kwargs["TrackingGeometryTool"] = acc.getPrimaryAndMerge(ActsTrackingGeometryToolCfg(flags))
21
22 if "ExtrapolationTool" not in kwargs:
23 from ActsConfig.ActsGeometryConfig import ActsExtrapolationToolCfg
24 kwargs["ExtrapolationTool"] = acc.popToolsAndMerge(
25 ActsExtrapolationToolCfg(flags, MaxSteps=10000)
26 ) # PrivateToolHandle
27
28 if 'ATLASConverterTool' not in kwargs:
29 from ActsConfig.ActsEventCnvConfig import ActsToTrkConverterToolCfg
30 kwargs["ATLASConverterTool"] = acc.popToolsAndMerge(ActsToTrkConverterToolCfg(flags))
31
32 if 'BoundaryCheckTool' not in kwargs:
33 if flags.Detector.GeometryITk:
34 from InDetConfig.InDetBoundaryCheckToolConfig import ITkBoundaryCheckToolCfg
35 kwargs.setdefault("BoundaryCheckTool", acc.popToolsAndMerge(ITkBoundaryCheckToolCfg(flags)))
36 else:
37 from InDetConfig.InDetBoundaryCheckToolConfig import InDetBoundaryCheckToolCfg
38 kwargs.setdefault("BoundaryCheckTool", acc.popToolsAndMerge(InDetBoundaryCheckToolCfg(flags)))
39
40 acc.setPrivateTools(CompFactory.ActsTrk.GaussianSumFitterTool(name, **kwargs))
41 return acc
42
43
ComponentAccumulator ActsGaussianSumFitterToolCfg(flags, str name="ActsGaussianSumFitterTool", **kwargs)