ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Tracking
Acts
ActsConfig
python
ActsTrackParamsEstimationConfig.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
ActsTrackParamsEstimationToolCfg
(ConfigFlags,
7
name: str =
"ActsTrackParamsEstimationTool"
,
8
**kwargs) -> ComponentAccumulator:
9
assert
isinstance(name, str)
10
11
acc = ComponentAccumulator()
12
13
# eBoundLoc0, eBoundLoc1, eBoundPhi, eBoundTheta, eBoundQOverP, eBoundTime
14
kwargs.setdefault(
'initialVarInflation'
, ConfigFlags.Acts.initialVarInflation)
15
16
kwargs.setdefault(
'allowPropagatorFailure'
,
False
)
17
18
kwargs.setdefault(
'parameterEstimationMode'
, ConfigFlags.Acts.parameterEstimationMode.value)
19
kwargs.setdefault(
'minDeltaR'
, ConfigFlags.Acts.minDeltaRParameterEstimation)
20
21
kwargs.setdefault(
"refitSeeds"
, ConfigFlags.Acts.refitSeeds)
22
23
if
'FitterTool'
not
in
kwargs:
24
from
ActsConfig.ActsTrackFittingConfig
import
ActsFitterCfg
25
# This fitter is only used for the seed refit, so restore a finite
26
# OutlierChi2Cut only if a refit is scheduled for at least one seed
27
# collection (currently the LRT strip seeds), letting the refit
28
# potentially downweight bad hits before they bias initial parameters fed to CKF.
29
# currently does nothing (flag defaults to inf == disabled)
30
if
kwargs[
"refitSeeds"
]:
31
seedRefitOutlierChi2Cut = ConfigFlags.Acts.SeedRefitOutlierChi2Cut
32
else
:
33
seedRefitOutlierChi2Cut = float(
'inf'
)
34
kwargs.setdefault(
35
'FitterTool'
,
36
acc.popToolsAndMerge(ActsFitterCfg(ConfigFlags,
37
ReverseFilteringPt=0,
38
OutlierChi2Cut=seedRefitOutlierChi2Cut))
39
)
40
41
acc.setPrivateTools(CompFactory.ActsTrk.TrackParamsEstimationTool(name=name, **kwargs))
42
return
acc
ActsTrackParamsEstimationConfig.ActsTrackParamsEstimationToolCfg
ComponentAccumulator ActsTrackParamsEstimationToolCfg(ConfigFlags, str name="ActsTrackParamsEstimationTool", **kwargs)
Definition
ActsTrackParamsEstimationConfig.py:8
Generated on
for ATLAS Offline Software by
1.17.0