8#include <tracking/trackFindingCDC/findlets/minimal/TrackLinker.h>
10#include <tracking/trackFindingCDC/eventdata/tracks/CDCTrack.h>
12#include <tracking/trackFindingCDC/utilities/WeightedRelation.h>
13#include <tracking/trackFindingCDC/utilities/Algorithms.h>
16using namespace TrackFindingCDC;
25 return "Links tracks by extraction of track paths in a cellular automaton.";
34void TrackLinker::apply(
const std::vector<CDCTrack>& inputTracks, std::vector<CDCTrack>& outputTracks)
37 std::vector<const CDCTrack*> trackPtrs = as_pointers<const CDCTrack>(inputTracks);
48 outputTracks.reserve(outputTracks.size() +
m_trackPaths.size());
49 for (
const std::vector<const CDCTrack*>& trackPath :
m_trackPaths) {
The Module parameter list class.
static CDCTrack condense(const Path< const CDCTrack > &trackPath)
concatenates several tracks from a path
void addProcessingSignalListener(ProcessingSignalListener *psl)
Register a processing signal listener to be notified.
MultipassCellularPathFinder< const CDCTrack > m_cellularPathFinder
Instance of the cellular automaton path finder.
WeightedRelationCreator< const CDCTrack, ChooseableTrackRelationFilter > m_trackRelationCreator
Creator of the track relations for linking.
std::string getDescription() final
Short description of the findlet.
std::vector< WeightedRelation< const CDCTrack > > m_trackRelations
Memory for the relations between tracks to be followed on linking.
void exposeParameters(ModuleParamList *moduleParamList, const std::string &prefix) final
Expose the parameters to a module.
std::vector< Path< const CDCTrack > > m_trackPaths
Memory for the track paths generated from the graph.
TrackLinker()
Constructor adding the filter as a subordinary processing signal listener.
void apply(const std::vector< CDCTrack > &inputTracks, std::vector< CDCTrack > &outputTracks) final
Main algorithm.
Abstract base class for different kinds of events.