Skip to content

Commit

Permalink
matching for solver writter
Browse files Browse the repository at this point in the history
  • Loading branch information
Corentin-Allaire committed Nov 20, 2024
1 parent 1d5feef commit 64f870d
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions Examples/Python/python/acts/examples/reconstruction.py
Original file line number Diff line number Diff line change
Expand Up @@ -1953,6 +1953,23 @@ def addScoreBasedAmbiguityResolution(
s.addAlgorithm(algScoreBased)
s.addWhiteboardAlias("tracks", algScoreBased.config.outputTracks)

matchAlg = acts.examples.TrackTruthMatcher(
level=customLogLevel(),
inputTracks=algScoreBased.config.outputTracks,
inputParticles="particles",
inputMeasurementParticlesMap="measurement_particles_map",
outputTrackParticleMatching="ambi_track_particle_matching",
outputParticleTrackMatching="ambi_particle_track_matching",
doubleMatching=True,
)
s.addAlgorithm(matchAlg)
s.addWhiteboardAlias(
"track_particle_matching", matchAlg.config.outputTrackParticleMatching
)
s.addWhiteboardAlias(
"particle_track_matching", matchAlg.config.outputParticleTrackMatching
)

addTrackWriters(
s,
name="ambi_scorebased",
Expand Down Expand Up @@ -2013,6 +2030,23 @@ def addAmbiguityResolutionML(
s.addAlgorithm(algML)
s.addAlgorithm(algGreedy)

matchAlg = acts.examples.TrackTruthMatcher(
level=customLogLevel(),
inputTracks=algGreedy.config.outputTracks,
inputParticles="particles",
inputMeasurementParticlesMap="measurement_particles_map",
outputTrackParticleMatching="ambi_track_particle_matching",
outputParticleTrackMatching="ambi_particle_track_matching",
doubleMatching=True,
)
s.addAlgorithm(matchAlg)
s.addWhiteboardAlias(
"track_particle_matching", matchAlg.config.outputTrackParticleMatching
)
s.addWhiteboardAlias(
"particle_track_matching", matchAlg.config.outputParticleTrackMatching
)

addTrackWriters(
s,
name="ambiML",
Expand Down

0 comments on commit 64f870d

Please sign in to comment.