3 from pathlib
import Path
8 from truth_tracking_kalman
import runTruthTrackingKalman
10 u = acts.UnitConstants
12 srcdir = Path(__file__).resolve().parent.parent.parent.parent
13 outputDir = Path.cwd()
16 detector, trackingGeometry, decorators = acts.examples.GenericDetector.create()
17 field = acts.ConstantBField(acts.Vector3(0, 0, 2 * u.T))
23 /
"Examples/Algorithms/Digitization/share/default-smearing-config-generic.json",
29 "betheHeitlerApprox": acts.examples.AtlasBetheHeitlerApprox.makeDefault(),
31 "abortOnError":
False,
32 "disableAllMaterialHandling":
False,
33 "finalReductionMethod": acts.examples.FinalReductionMethod.maxWeight,
34 "weightCutoff": 1.0e-4,
35 "level": acts.logging.INFO,
39 acts.examples.RefittingAlgorithm(
41 inputTracks=
"kfTracks",
42 outputTracks=
"gsfTracks",
43 fit=acts.examples.makeGsfFitterFunction(trackingGeometry, field, **gsfOptions),
48 acts.examples.TracksToTrajectories(
49 level=acts.logging.INFO,
50 inputTracks=
"gsfTracks",
51 outputTrajectories=
"gsfTrajectories",
56 acts.examples.TrackFitterPerformanceWriter(
57 level=acts.logging.INFO,
58 inputTrajectories=
"trajectories",
59 inputParticles=
"truth_seeds_selected",
60 inputMeasurementParticlesMap=
"measurement_particles_map",
61 filePath=
str(outputDir /
"performance_refitter.root"),