 |
Belle II Software
release-05-01-25
|
12 #include <tracking/ckf/general/findlets/OnStateApplier.dcl.h>
13 #include <tracking/trackFindingCDC/numerics/WithWeight.h>
14 #include <tracking/trackFindingCDC/numerics/Weight.h>
24 class ModuleParamList;
33 template <
class AState,
class AFilter>
34 class LimitedOnStateApplier :
public OnStateApplier<AState> {
37 using Super = OnStateApplier<AState>;
typename Super::Object Object
The object to filer.
LimitedOnStateApplier()
Constructor adding the findlet as a listener.
OnStateApplier< AState > Super
Parent class.
Abstract base class for different kinds of events.
int m_param_useNStates
Parameter how many objects should pass maximal.
AFilter m_filter
Filter to decide on the states.
A mixin class to attach a weight to an object.
void exposeParameters(ModuleParamList *moduleParamList, const std::string &prefix) override
Expose the parameters of the subfindlet.
TrackFindingCDC::Weight operator()(const Object &object) override
Copy the filter operator to this method.
The Module parameter list class.
std::pair< const std::vector< TrackFindingCDC::WithWeight< const AState * > >, AState * > Object
The object this filter refers to.
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.