10#include <tracking/ckf/general/findlets/OnStateApplier.dcl.h>
11#include <tracking/trackFindingCDC/numerics/WithWeight.h>
12#include <tracking/trackFindingCDC/numerics/Weight.h>
22 class ModuleParamList;
31 template <
class AState,
class AFilter>
Specialisation of the OnStateApplier, which (a) uses a filter for the () operator,...
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.
Helper findlet which applies its () operator to all pairs of path and state with all states in the gi...
std::pair< const std::vector< TrackFindingCDC::WithWeight< const AState * > >, AState * > Object
The object this filter refers to.
A mixin class to attach a weight to an object.
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.