Belle II Software  release-08-01-10
SVDHoughTrackingTreeSearcher.dcl.h
1 /**************************************************************************
2  * basf2 (Belle II Analysis Software Framework) *
3  * Author: The Belle II Collaboration *
4  * *
5  * See git log for contributors and copyright holders. *
6  * This file is licensed under LGPL-3.0, see LICENSE.md. *
7  **************************************************************************/
8 #pragma once
9 
10 #include <tracking/trackFindingCDC/findlets/base/Findlet.h>
11 #include <tracking/trackFindingCDC/utilities/WeightedRelation.h>
12 #include <tracking/trackFindingCDC/numerics/WithWeight.h>
13 #include <tracking/trackFindingCDC/ca/CellularAutomaton.h>
14 
15 #include <vector>
16 #include <string>
17 
18 namespace Belle2 {
23  class ModuleParamList;
24 
25  namespace vxdHoughTracking {
26 
36  template <class AHit, class APathFilter, class AResult>
38  TrackFindingCDC::Findlet<AHit*, const TrackFindingCDC::WeightedRelation<AHit>, AResult> {
39  private:
42 
43  public:
46 
48  void exposeParameters(ModuleParamList* moduleParamList, const std::string& prefix) final;
49 
56  void apply(std::vector<AHit*>& hits,
57  const std::vector<TrackFindingCDC::WeightedRelation<AHit>>& relations,
58  std::vector<AResult>& results) final;
59 
60  private:
63  const std::vector<TrackFindingCDC::WeightedRelation<AHit>>& relations,
64  std::vector<AResult>& results);
65 
66  private:
68  APathFilter m_pathFilter;
69 
72 
75  };
76 
77  }
79 }
The Module parameter list class.
Interface for a minimal algorithm part that wants to expose some parameters to a module.
Definition: Findlet.h:26
Interface for an algorithm part that needs to receive the module processing signals.
A mixin class to attach a weight to an object.
Definition: WithWeight.h:24
Findlet for constructing result paths out of a list of hits, which are connected with weighted relati...
APathFilter m_pathFilter
State rejecter to decide which available continuations should be traversed next.
void apply(std::vector< AHit * > &hits, const std::vector< TrackFindingCDC::WeightedRelation< AHit >> &relations, std::vector< AResult > &results) final
Main function of this findlet: traverse a tree starting from a given seed hits.
SVDHoughTrackingTreeSearcher()
Construct this findlet and add the subfindlet as listener.
void traverseTree(std::vector< TrackFindingCDC::WithWeight< const AHit * >> &path, const std::vector< TrackFindingCDC::WeightedRelation< AHit >> &relations, std::vector< AResult > &results)
Implementation of the traverseTree function.
TrackFindingCDC::CellularAutomaton< AHit > m_automaton
Findlet for adding a recursion cell state to the hits.
void exposeParameters(ModuleParamList *moduleParamList, const std::string &prefix) final
Expose the parameters of the subfindlet.
Abstract base class for different kinds of events.