Skip to content

Commit

Permalink
twoWay = 0 (standard track finding), 1 (TrackFindingAlgorithm with tw…
Browse files Browse the repository at this point in the history
…oWay=true), 2 (MyTrackFindingAlgorithm)
  • Loading branch information
Tim Adye authored and Tim Adye committed Mar 26, 2024
1 parent 3c3ce1a commit 857177d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Examples/Python/python/acts/examples/reconstruction.py
Original file line number Diff line number Diff line change
Expand Up @@ -1164,7 +1164,7 @@ def addCKFTracks(
Union[TrackSelectorConfig, List[TrackSelectorConfig]]
] = None,
ckfConfig: CkfConfig = CkfConfig(),
twoWay: bool = False,
twoWay: int = 0,
outputDirCsv: Optional[Union[Path, str]] = None,
outputDirRoot: Optional[Union[Path, str]] = None,
writeTrajectories: bool = True,
Expand Down Expand Up @@ -1244,7 +1244,7 @@ def addCKFTracks(
# truth particle smearing and source link selection config
trackFinderAlg = (
acts.examples.MyTrackFindingAlgorithm
if twoWay
if twoWay == 2
else acts.examples.TrackFindingAlgorithm
)
trackFinder = trackFinderAlg(
Expand All @@ -1270,8 +1270,9 @@ def addCKFTracks(
trackingGeometry=trackingGeometry,
magneticField=field,
)
if twoWay
if twoWay == 2
else dict(
twoWay=(twoWay==1),
findTracks=acts.examples.TrackFindingAlgorithm.makeTrackFinderFunction(
trackingGeometry, field, customLogLevel()
)
Expand Down

0 comments on commit 857177d

Please sign in to comment.