Belle II Software  release-05-01-25
TrackCreatorSegmentPairAutomaton.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 
14 #include <tracking/trackFindingCDC/eventdata/tracks/CDCSegmentPair.h>
15 
16 #include <tracking/trackFindingCDC/ca/MultipassCellularPathFinder.h>
17 #include <tracking/trackFindingCDC/ca/Path.h>
18 
19 #include <tracking/trackFindingCDC/utilities/WeightedRelation.h>
20 
21 #include <vector>
22 
23 namespace Belle2 {
28  class ModuleParamList;
29 
30  namespace TrackFindingCDC {
31  class CDCSegmentPair;
32  class CDCTrack;
33 
35  class TrackCreatorSegmentPairAutomaton
36  : public Findlet<const CDCSegmentPair, const WeightedRelation<const CDCSegmentPair>, CDCTrack> {
37 
38  private:
40  using Super = Findlet<const CDCSegmentPair, const WeightedRelation<const CDCSegmentPair>, CDCTrack>;
41 
42  public:
44  std::string getDescription() final;
45 
47  void exposeParameters(ModuleParamList* moduleParamList, const std::string& prefix) final;
48 
50  void
51  apply(const std::vector<CDCSegmentPair>& inputSegmentPairs,
52  const std::vector<WeightedRelation<const CDCSegmentPair>>& inputSegmentPairRelations,
53  std::vector<CDCTrack>& outputTracks) final;
54 
55  private: // cellular automaton
58 
59  private: // object pools
61  std::vector<Path<const CDCSegmentPair>> m_segmentPairPaths;
62  };
63  }
65 }
Belle2::TrackFindingCDC::TrackCreatorSegmentPairAutomaton::Super
Findlet< const CDCSegmentPair, const WeightedRelation< const CDCSegmentPair >, CDCTrack > Super
Type of the base class.
Definition: TrackCreatorSegmentPairAutomaton.h:48
Belle2::TrackFindingCDC::CDCTrack
Class representing a sequence of three dimensional reconstructed hits.
Definition: CDCTrack.h:51
Belle2::TrackFindingCDC::CDCSegmentPair
Class representing a pair of one reconstructed axial segement and one stereo segment in adjacent supe...
Definition: CDCSegmentPair.h:44
Belle2::TrackFindingCDC::MultipassCellularPathFinder
Class to combine the run of the cellular automaton and the repeated path extraction.
Definition: MultipassCellularPathFinder.h:46
Belle2::TrackFindingCDC::TrackCreatorSegmentPairAutomaton::getDescription
std::string getDescription() final
Short description of the findlet.
Definition: TrackCreatorSegmentPairAutomaton.cc:25
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::TrackFindingCDC::TrackCreatorSegmentPairAutomaton::apply
void apply(const std::vector< CDCSegmentPair > &inputSegmentPairs, const std::vector< WeightedRelation< const CDCSegmentPair >> &inputSegmentPairRelations, std::vector< CDCTrack > &outputTracks) final
Main function of the segment finding by the cellular automaton.
Definition: TrackCreatorSegmentPairAutomaton.cc:35
Belle2::TrackFindingCDC::TrackCreatorSegmentPairAutomaton::m_segmentPairPaths
std::vector< Path< const CDCSegmentPair > > m_segmentPairPaths
Memory for the segment pair paths generated from the graph.
Definition: TrackCreatorSegmentPairAutomaton.h:69
Belle2::TrackFindingCDC::WeightedRelation
Type for two related objects with a weight.
Definition: CDCSegment2D.h:36
Belle2::TrackFindingCDC::TrackCreatorSegmentPairAutomaton::m_cellularPathFinder
MultipassCellularPathFinder< const CDCSegmentPair > m_cellularPathFinder
Instance of the cellular automaton path finder.
Definition: TrackCreatorSegmentPairAutomaton.h:65
Belle2::TrackFindingCDC::TrackCreatorSegmentPairAutomaton::exposeParameters
void exposeParameters(ModuleParamList *moduleParamList, const std::string &prefix) final
Expose the parameters to a module.
Definition: TrackCreatorSegmentPairAutomaton.cc:30