10#include <tracking/ckf/general/findlets/LimitedOnStateApplier.dcl.h>
11#include <tracking/trackFindingCDC/utilities/Functional.h>
12#include <tracking/trackFindingCDC/utilities/StringManipulation.h>
14#include <framework/core/ModuleParamList.templateDetails.h>
23 template <
class AState,
class AFilter>
29 template <
class AState,
class AFilter>
36 std::sort(childStates.begin(), childStates.end(), TrackFindingCDC::LessOf<TrackFindingCDC::GetWeight>());
41 template <
class AState,
class AFilter>
47 template <
class AState,
class AFilter>
50 m_filter.exposeParameters(moduleParamList, prefix);
typename Super::Object Object
The object to filer.
int m_param_useNStates
Parameter how many objects should pass maximal.
AFilter m_filter
Filter to decide on the states.
The Module parameter list class.
void addProcessingSignalListener(ProcessingSignalListener *psl)
A mixin class to attach a weight to an object.
void addParameter(const std::string &name, T ¶mVariable, const std::string &description, const T &defaultValue)
Adds a new parameter to the module list.
void apply(const std::vector< TrackFindingCDC::WithWeight< const AState * > > ¤tPath, std::vector< TrackFindingCDC::WithWeight< AState * > > &childStates) override
Apply the filter to each pair of states and current path and let only pass the best N states.
TrackFindingCDC::Weight operator()(const Object &object) override
Copy the filter operator to this method.
void exposeParameters(ModuleParamList *moduleParamList, const std::string &prefix) override
Expose the parameters of the subfindlet.
LimitedOnStateApplier()
Constructor adding the findlet as a listener.
Abstract base class for different kinds of events.