Belle II Software  release-05-01-25
TrackCreatorSegmentTripleAutomaton.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/CDCSegmentTriple.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 CDCSegmentTriple;
32  class CDCTrack;
33 
35  class TrackCreatorSegmentTripleAutomaton
36  : public Findlet<const CDCSegmentTriple, const WeightedRelation<const CDCSegmentTriple>, CDCTrack> {
37 
38  private:
40  using Super = Findlet<const CDCSegmentTriple, const WeightedRelation<const CDCSegmentTriple>, CDCTrack>;
41 
42  public:
44  std::string getDescription() final;
45 
47  void exposeParameters(ModuleParamList* moduleParamList, const std::string& prefix) final;
48 
50  void apply(const std::vector<CDCSegmentTriple>& inputSegmentTriples,
51  const std::vector<WeightedRelation<const CDCSegmentTriple>>& inputSegmentTripleRelations,
52  std::vector<CDCTrack>& outputTracks) final;
53 
54  private: // cellular automaton
57 
58  private: // object pools
60  std::vector<Path<const CDCSegmentTriple>> m_segmentTriplePaths;
61  };
62  }
64 }
Belle2::TrackFindingCDC::TrackCreatorSegmentTripleAutomaton::exposeParameters
void exposeParameters(ModuleParamList *moduleParamList, const std::string &prefix) final
Expose the parameters to a module.
Definition: TrackCreatorSegmentTripleAutomaton.cc:28
Belle2::TrackFindingCDC::CDCTrack
Class representing a sequence of three dimensional reconstructed hits.
Definition: CDCTrack.h:51
Belle2::TrackFindingCDC::TrackCreatorSegmentTripleAutomaton::m_cellularPathFinder
MultipassCellularPathFinder< const CDCSegmentTriple > m_cellularPathFinder
Instance of the cellular automaton path finder.
Definition: TrackCreatorSegmentTripleAutomaton.h:64
Belle2::TrackFindingCDC::MultipassCellularPathFinder
Class to combine the run of the cellular automaton and the repeated path extraction.
Definition: MultipassCellularPathFinder.h:46
Belle2::TrackFindingCDC::TrackCreatorSegmentTripleAutomaton::Super
Findlet< const CDCSegmentTriple, const WeightedRelation< const CDCSegmentTriple >, CDCTrack > Super
Type of the base class.
Definition: TrackCreatorSegmentTripleAutomaton.h:48
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::TrackFindingCDC::TrackCreatorSegmentTripleAutomaton::m_segmentTriplePaths
std::vector< Path< const CDCSegmentTriple > > m_segmentTriplePaths
Memory for the segment triple paths generated from the graph.
Definition: TrackCreatorSegmentTripleAutomaton.h:68
Belle2::TrackFindingCDC::TrackCreatorSegmentTripleAutomaton::getDescription
std::string getDescription() final
Short description of the findlet.
Definition: TrackCreatorSegmentTripleAutomaton.cc:23
Belle2::TrackFindingCDC::TrackCreatorSegmentTripleAutomaton::apply
void apply(const std::vector< CDCSegmentTriple > &inputSegmentTriples, const std::vector< WeightedRelation< const CDCSegmentTriple >> &inputSegmentTripleRelations, std::vector< CDCTrack > &outputTracks) final
Main function of the segment finding by the cellular automaton.
Definition: TrackCreatorSegmentTripleAutomaton.cc:33
Belle2::TrackFindingCDC::WeightedRelation
Type for two related objects with a weight.
Definition: CDCSegment2D.h:36
Belle2::TrackFindingCDC::CDCSegmentTriple
Class representing a triple of reconstructed segements in adjacent superlayer.
Definition: CDCSegmentTriple.h:42