10#include <tracking/trackFindingCDC/findlets/base/Findlet.h>
12#include <tracking/trackFindingCDC/filters/base/ChooseableFilter.h>
13#include <tracking/ckf/cdc/filters/paths/CDCPathFilterFactory.h>
15#include <tracking/trackFindingCDC/numerics/Weight.h>
17#include <tracking/ckf/cdc/entities/CDCCKFPath.h>
18#include <tracking/ckf/cdc/entities/CDCCKFResult.h>
27 class ModuleParamList;
40 m_filter.exposeParameters(moduleParamList, prefix);
44 void apply(
const std::vector<CDCCKFPath>& paths, std::vector<CDCCKFResult>& results)
override
51 TrackFindingCDC::Weight bestWeight = -NAN;
54 const TrackFindingCDC::Weight weight =
m_filter(path);
55 if (weight <= bestWeight) {
62 if (bestElement and not std::isnan(bestWeight)) {
63 results.push_back(*bestElement);
Findlet to finalize CKF Paths in terms of final result.
TrackFindingCDC::ChooseableFilter< CDCPathFilterFactory > m_filter
Filter to weight the best path.
void exposeParameters(ModuleParamList *moduleParamList, const std::string &prefix) override
Expose the parameters of the sub findlets.
void apply(const std::vector< CDCCKFPath > &paths, std::vector< CDCCKFResult > &results) override
main method of the findlet, for a list of paths create a list of results.
The Module parameter list class.
Convenvience wrapper to setup a Chooseable filter from a specific factory object.
void addProcessingSignalListener(ProcessingSignalListener *psl)
Register a processing signal listener to be notified.
Interface for a minimal algorithm part that wants to expose some parameters to a module.
std::vector< CDCCKFState > CDCCKFPath
Shortcut for the collection of CDC CKF-algorithm states.
Abstract base class for different kinds of events.