Belle II Software  release-05-01-25
TrackLinker.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2015 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Oliver Frost *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 #pragma once
11 
12 #include <tracking/trackFindingCDC/findlets/base/Findlet.h>
13 #include <tracking/trackFindingCDC/findlets/minimal/WeightedRelationCreator.h>
14 
15 #include <tracking/trackFindingCDC/filters/trackRelation/ChooseableTrackRelationFilter.h>
16 
17 #include <tracking/trackFindingCDC/ca/MultipassCellularPathFinder.h>
18 
19 #include <vector>
20 #include <string>
21 
22 namespace Belle2 {
29  namespace TrackFindingCDC {
30  class CDCTrack;
31 
33  class TrackLinker : public Findlet<const CDCTrack, CDCTrack> {
34 
35  private:
37  using Super = Findlet<const CDCTrack, CDCTrack>;
38 
39  public:
42 
44  std::string getDescription() final;
45 
47  void exposeParameters(ModuleParamList* moduleParamList, const std::string& prefix) final;
48 
49  public:
51  void apply(const std::vector<CDCTrack>& inputTracks, std::vector<CDCTrack>& outputTracks) final;
52 
53  private:
56 
59 
61  std::vector<WeightedRelation<const CDCTrack> > m_trackRelations;
62 
64  std::vector<Path<const CDCTrack>> m_trackPaths;
65  };
66  }
68 }
Belle2::TrackFindingCDC::TrackLinker::TrackLinker
TrackLinker()
Constructor adding the filter as a subordinary processing signal listener.
Definition: TrackLinker.cc:20
Belle2::TrackFindingCDC::TrackLinker::Super
Findlet< const CDCTrack, CDCTrack > Super
Type of the base class.
Definition: TrackLinker.h:45
Belle2::TrackFindingCDC::CDCTrack
Class representing a sequence of three dimensional reconstructed hits.
Definition: CDCTrack.h:51
Belle2::TrackFindingCDC::WeightedRelationCreator
Findlet that combines geometrical constrained pairs of objects to relations and selects them by the f...
Definition: WeightedRelationCreator.h:58
Belle2::TrackFindingCDC::ChooseableFilter
Convenvience wrapper to setup a Chooseable filter from a specific factory object.
Definition: ChooseableFilter.dcl.h:107
Belle2::TrackFindingCDC::TrackLinker::m_cellularPathFinder
MultipassCellularPathFinder< const CDCTrack > m_cellularPathFinder
Instance of the cellular automaton path finder.
Definition: TrackLinker.h:66
Belle2::TrackFindingCDC::TrackLinker::apply
void apply(const std::vector< CDCTrack > &inputTracks, std::vector< CDCTrack > &outputTracks) final
Main algorithm.
Definition: TrackLinker.cc:36
Belle2::TrackFindingCDC::MultipassCellularPathFinder
Class to combine the run of the cellular automaton and the repeated path extraction.
Definition: MultipassCellularPathFinder.h:46
Belle2::TrackFindingCDC::TrackLinker::m_trackPaths
std::vector< Path< const CDCTrack > > m_trackPaths
Memory for the track paths generated from the graph.
Definition: TrackLinker.h:72
Belle2::TrackFindingCDC::TrackLinker::m_trackRelations
std::vector< WeightedRelation< const CDCTrack > > m_trackRelations
Memory for the relations between tracks to be followed on linking.
Definition: TrackLinker.h:69
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::TrackFindingCDC::TrackLinker::exposeParameters
void exposeParameters(ModuleParamList *moduleParamList, const std::string &prefix) final
Expose the parameters to a module.
Definition: TrackLinker.cc:30
Belle2::TrackFindingCDC::WeightedRelation
Type for two related objects with a weight.
Definition: CDCSegment2D.h:36
Belle2::ModuleParamList
The Module parameter list class.
Definition: ModuleParamList.h:46
Belle2::TrackFindingCDC::TrackLinker::m_trackRelationCreator
WeightedRelationCreator< const CDCTrack, ChooseableTrackRelationFilter > m_trackRelationCreator
Creator of the track relations for linking.
Definition: TrackLinker.h:63
Belle2::TrackFindingCDC::TrackLinker::getDescription
std::string getDescription() final
Short description of the findlet.
Definition: TrackLinker.cc:25