 |
Belle II Software
release-05-02-19
|
12 #include <tracking/trackFindingCDC/findlets/base/Findlet.h>
14 #include <tracking/trackFindingCDC/utilities/WeightedRelation.h>
15 #include <tracking/trackFindingCDC/numerics/WithWeight.h>
17 #include <tracking/trackFindingCDC/ca/CellularAutomaton.h>
27 class ModuleParamList;
38 template <
class AState,
class AStateRejecter,
class AResult>
39 class TreeSearcher :
public
40 TrackFindingCDC::Findlet<const AState, AState, const TrackFindingCDC::WeightedRelation<AState>, AResult> {
43 using Super = TrackFindingCDC::Findlet<const AState, AState, const TrackFindingCDC::WeightedRelation<AState>, AResult>;
58 void apply(
const std::vector<AState>& seededStates,
59 std::vector<AState>& hitStates,
61 std::vector<AResult>& results)
final;
67 std::vector<AResult>& results);
void exposeParameters(ModuleParamList *moduleParamList, const std::string &prefix) final
Expose the parameters of the subfindlet.
AStateRejecter m_stateRejecter
State rejecter to decide which available continuations should be traversed next.
TreeSearcher()
Construct this findlet and add the subfindlet as listener.
void apply(const std::vector< AState > &seededStates, std::vector< AState > &hitStates, const std::vector< TrackFindingCDC::WeightedRelation< AState >> &relations, std::vector< AResult > &results) final
Main function of this findlet: traverse a tree starting from a given seed states.
Abstract base class for different kinds of events.
A mixin class to attach a weight to an object.
Type for two related objects with a weight.
The Module parameter list class.
TrackFindingCDC::CellularAutomaton< AState > m_automaton
Findlet for adding a recursion cell state to the states.
bool m_param_endEarly
Parameter: Make it possible to have all subresults in the end results vector.
void traverseTree(std::vector< TrackFindingCDC::WithWeight< const AState * >> &path, const std::vector< TrackFindingCDC::WeightedRelation< AState >> &relations, std::vector< AResult > &results)
Implementation of the traverseTree function.
TrackFindingCDC::Findlet< const AState, AState, const TrackFindingCDC::WeightedRelation< AState >, AResult > Super
Parent class.