diff --git a/Examples/Scripts/Python/truth_tracking_gsf.py b/Examples/Scripts/Python/truth_tracking_gsf.py index 069f31dde5f..9c9690ecbdd 100755 --- a/Examples/Scripts/Python/truth_tracking_gsf.py +++ b/Examples/Scripts/Python/truth_tracking_gsf.py @@ -158,19 +158,26 @@ def runTruthTrackingGsf( if "__main__" == __name__: srcdir = Path(__file__).resolve().parent.parent.parent.parent - detector, trackingGeometry, decorators = acts.examples.GenericDetector.create() + # ODD + from acts.examples.odd import getOpenDataDetector - field = acts.ConstantBField(acts.Vector3(0, 0, 2 * u.T)) + detector, trackingGeometry, _ = getOpenDataDetector() + digiConfigFile = ( + srcdir / "thirdparty/OpenDataDetector/config/odd-digi-smearing-config.json" + ) - inputParticlePath = Path("particles.root") - if not inputParticlePath.exists(): - inputParticlePath = None + ## GenericDetector + # detector, trackingGeometry, _ = acts.examples.GenericDetector.create() + # digiConfigFile = ( + # srcdir + # / "Examples/Algorithms/Digitization/share/default-smearing-config-generic.json" + # ) + + field = acts.ConstantBField(acts.Vector3(0, 0, 2 * u.T)) runTruthTrackingGsf( trackingGeometry=trackingGeometry, field=field, - digiConfigFile=srcdir - / "Examples/Algorithms/Digitization/share/default-smearing-config-generic.json", - inputParticlePath=inputParticlePath, + digiConfigFile=digiConfigFile, outputDir=Path.cwd(), ).run() diff --git a/Examples/Scripts/Python/truth_tracking_gx2f.py b/Examples/Scripts/Python/truth_tracking_gx2f.py index 17415c4a819..6d38ea43bb4 100644 --- a/Examples/Scripts/Python/truth_tracking_gx2f.py +++ b/Examples/Scripts/Python/truth_tracking_gx2f.py @@ -157,16 +157,26 @@ def runTruthTrackingGx2f( if "__main__" == __name__: srcdir = Path(__file__).resolve().parent.parent.parent.parent - # detector, trackingGeometry, _ = getOpenDataDetector() - detector, trackingGeometry, decorators = acts.examples.GenericDetector.create() + # ODD + from acts.examples.odd import getOpenDataDetector + + detector, trackingGeometry, _ = getOpenDataDetector() + digiConfigFile = ( + srcdir / "thirdparty/OpenDataDetector/config/odd-digi-smearing-config.json" + ) + + ## GenericDetector + # detector, trackingGeometry, _ = acts.examples.GenericDetector.create() + # digiConfigFile = ( + # srcdir + # / "Examples/Algorithms/Digitization/share/default-smearing-config-generic.json" + # ) field = acts.ConstantBField(acts.Vector3(0, 0, 2 * u.T)) runTruthTrackingGx2f( trackingGeometry=trackingGeometry, field=field, - digiConfigFile=srcdir - / "Examples/Algorithms/Digitization/share/default-smearing-config-generic.json", - # "thirdparty/OpenDataDetector/config/odd-digi-smearing-config.json", + digiConfigFile=digiConfigFile, outputDir=Path.cwd(), ).run() diff --git a/Examples/Scripts/Python/truth_tracking_kalman.py b/Examples/Scripts/Python/truth_tracking_kalman.py index 84c4f9dd878..2390048e25d 100755 --- a/Examples/Scripts/Python/truth_tracking_kalman.py +++ b/Examples/Scripts/Python/truth_tracking_kalman.py @@ -161,16 +161,26 @@ def runTruthTrackingKalman( if "__main__" == __name__: srcdir = Path(__file__).resolve().parent.parent.parent.parent - # detector, trackingGeometry, _ = getOpenDataDetector() - detector, trackingGeometry, decorators = acts.examples.GenericDetector.create() + # ODD + from acts.examples.odd import getOpenDataDetector + + detector, trackingGeometry, _ = getOpenDataDetector() + digiConfigFile = ( + srcdir / "thirdparty/OpenDataDetector/config/odd-digi-smearing-config.json" + ) + + ## GenericDetector + # detector, trackingGeometry, _ = acts.examples.GenericDetector.create() + # digiConfigFile = ( + # srcdir + # / "Examples/Algorithms/Digitization/share/default-smearing-config-generic.json" + # ) field = acts.ConstantBField(acts.Vector3(0, 0, 2 * u.T)) runTruthTrackingKalman( trackingGeometry=trackingGeometry, field=field, - digiConfigFile=srcdir - / "Examples/Algorithms/Digitization/share/default-smearing-config-generic.json", - # "thirdparty/OpenDataDetector/config/odd-digi-smearing-config.json", + digiConfigFile=digiConfigFile, outputDir=Path.cwd(), ).run()