From 7de043cefa57e454c5e0013191bb306b67d6037f Mon Sep 17 00:00:00 2001 From: Tim Adye Date: Wed, 7 Feb 2024 20:14:41 +0000 Subject: [PATCH] clearer TrackSelector cut spec (disabled black) --- .../Python/python/acts/examples/reconstruction.py | 2 +- Examples/Scripts/Python/full_chain_itk.py | 15 +++++---------- 2 files changed, 6 insertions(+), 11 deletions(-) diff --git a/Examples/Python/python/acts/examples/reconstruction.py b/Examples/Python/python/acts/examples/reconstruction.py index f19f0ded754..86e29fc9666 100644 --- a/Examples/Python/python/acts/examples/reconstruction.py +++ b/Examples/Python/python/acts/examples/reconstruction.py @@ -1224,7 +1224,6 @@ def addCKFTracks( ) ] ), - trackSelectorCfg=trkSelCfg, inputMeasurements="measurements", inputSourceLinks="sourcelinks", inputInitialTrackParameters="estimatedparameters", @@ -1233,6 +1232,7 @@ def addCKFTracks( trackingGeometry, field, customLogLevel() ), **acts.examples.defaultKWArgs( + trackSelectorCfg=trkSelCfg, maxSteps=ckfConfig.maxSteps, ), ) diff --git a/Examples/Scripts/Python/full_chain_itk.py b/Examples/Scripts/Python/full_chain_itk.py index 9fb988d0c9b..8132e2ed529 100755 --- a/Examples/Scripts/Python/full_chain_itk.py +++ b/Examples/Scripts/Python/full_chain_itk.py @@ -105,21 +105,16 @@ outputDirRoot=outputDir, ) -allEtaCuts = {"maxHoles": 2, "maxSharedHits": 2} addCKFTracks( s, trackingGeometry, field, trackSelectorConfig=( - TrackSelectorConfig( - absEta=(None, 2.0), pt=(0.9 * u.GeV, None), nMeasurementsMin=9, **allEtaCuts - ), - TrackSelectorConfig( - absEta=(None, 2.6), pt=(0.4 * u.GeV, None), nMeasurementsMin=8, **allEtaCuts - ), - TrackSelectorConfig( - absEta=(None, 4.0), pt=(0.4 * u.GeV, None), nMeasurementsMin=7, **allEtaCuts - ), + # fmt: off + TrackSelectorConfig(absEta=(None, 2.0), pt=(0.9 * u.GeV, None), nMeasurementsMin=9, maxHoles=2, maxSharedHits=2), + TrackSelectorConfig(absEta=(None, 2.6), pt=(0.4 * u.GeV, None), nMeasurementsMin=8, maxHoles=2, maxSharedHits=2), + TrackSelectorConfig(absEta=(None, 4.0), pt=(0.4 * u.GeV, None), nMeasurementsMin=7, maxHoles=2, maxSharedHits=2), + # fmt: on ), outputDirRoot=outputDir, )