Belle II Software development
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
15namespace Belle2 {
20 class ModuleParamList;
21
22 namespace vxdHoughTracking {
23
33 template <class AHit, class APathFilter, class AResult>
35 TrackFindingCDC::Findlet<AHit*, const TrackFindingCDC::WeightedRelation<AHit>, AResult> {
36 private:
39
40 public:
43
45 void exposeParameters(ModuleParamList* moduleParamList, const std::string& prefix) final;
46
53 void apply(std::vector<AHit*>& hits,
54 const std::vector<TrackFindingCDC::WeightedRelation<AHit>>& relations,
55 std::vector<AResult>& results) final;
56
57 private:
60 const std::vector<TrackFindingCDC::WeightedRelation<AHit>>& relations,
61 std::vector<AResult>& results);
62
63 private:
65 APathFilter m_pathFilter;
66
69
72 };
73
74 }
76}
The Module parameter list class.
Implements the weighted cellular automaton algorithm.
Interface for a minimal algorithm part that wants to expose some parameters to a module.
Definition Findlet.h:26
Type for two related objects with a weight.
A mixin class to attach a weight to an object.
Definition WithWeight.h:24
TrackFindingCDC::Findlet< AHit *, const TrackFindingCDC::WeightedRelation< AHit >, AResult > Super
Parent class.
APathFilter m_pathFilter
State rejecter to decide which available continuations should be traversed next.
SVDHoughTrackingTreeSearcher()
Construct this findlet and add the subfindlet as listener.
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.
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.
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.
Abstract base class for different kinds of events.