Belle II Software  release-05-01-25
SegmentCreatorFacetAutomaton.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/ca/MultipassCellularPathFinder.h>
15 #include <tracking/trackFindingCDC/utilities/WeightedRelation.h>
16 #include <tracking/trackFindingCDC/ca/Path.h>
17 
18 #include <vector>
19 #include <string>
20 
21 namespace Belle2 {
28  namespace TrackFindingCDC {
29  class CDCSegment2D;
30  class CDCFacet;
31 
33  class SegmentCreatorFacetAutomaton
34  : public Findlet<const CDCFacet, const WeightedRelation<const CDCFacet>, CDCSegment2D> {
35 
36  private:
38  using Super =
39  Findlet<const CDCFacet, const WeightedRelation<const CDCFacet>, CDCSegment2D>;
40 
41  public:
43  std::string getDescription() final;
44 
46  void exposeParameters(ModuleParamList* moduleParamList, const std::string& prefix) final;
47 
49  void apply(const std::vector<CDCFacet>& inputFacets,
50  const std::vector<WeightedRelation<const CDCFacet>>& inputFacetRelations,
51  std::vector<CDCSegment2D>& outputSegments) final;
52 
53  private:
55  bool m_param_searchReversed = false;
56 
58  bool m_param_searchAlias = true;
59 
62 
64  bool m_param_allSingleAliases = false;
65 
66  private: // cellular automaton
69 
70  private: // object pools
72  std::vector< Path<const CDCFacet> > m_facetPaths;
73  };
74  }
76 }
Belle2::TrackFindingCDC::SegmentCreatorFacetAutomaton::Super
Findlet< const CDCFacet, const WeightedRelation< const CDCFacet >, CDCSegment2D > Super
Type of the base class.
Definition: SegmentCreatorFacetAutomaton.h:47
Belle2::TrackFindingCDC::SegmentCreatorFacetAutomaton::exposeParameters
void exposeParameters(ModuleParamList *moduleParamList, const std::string &prefix) final
Expose the parameters to a module.
Definition: SegmentCreatorFacetAutomaton.cc:54
Belle2::TrackFindingCDC::SegmentCreatorFacetAutomaton::m_param_searchAlias
bool m_param_searchAlias
Parameter : Switch to construct the alias segment if it is available in the facet graph as well.
Definition: SegmentCreatorFacetAutomaton.h:66
Belle2::TrackFindingCDC::SegmentCreatorFacetAutomaton::m_param_searchReversed
bool m_param_searchReversed
Parameter : Switch to construct the reversed segment if it is available in the facet graph as well.
Definition: SegmentCreatorFacetAutomaton.h:63
Belle2::TrackFindingCDC::MultipassCellularPathFinder
Class to combine the run of the cellular automaton and the repeated path extraction.
Definition: MultipassCellularPathFinder.h:46
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::TrackFindingCDC::SegmentCreatorFacetAutomaton::m_param_allSingleAliases
bool m_param_allSingleAliases
Paraneter : Switch to activate the write out of all available orientations of single facet segments.
Definition: SegmentCreatorFacetAutomaton.h:72
Belle2::TrackFindingCDC::SegmentCreatorFacetAutomaton::m_facetPaths
std::vector< Path< const CDCFacet > > m_facetPaths
Memory for the facet paths generated from the graph.
Definition: SegmentCreatorFacetAutomaton.h:80
Belle2::TrackFindingCDC::CDCFacet
Class representing a triple of neighboring oriented wire with additional trajectory information.
Definition: CDCFacet.h:42
Belle2::TrackFindingCDC::SegmentCreatorFacetAutomaton::m_param_relaxSingleLayerSearch
bool m_param_relaxSingleLayerSearch
Parameter : Switch to relax the alias and reverse search for segments contained in a single layer.
Definition: SegmentCreatorFacetAutomaton.h:69
Belle2::TrackFindingCDC::CDCSegment2D
A reconstructed sequence of two dimensional hits in one super layer.
Definition: CDCSegment2D.h:40
Belle2::TrackFindingCDC::WeightedRelation
Type for two related objects with a weight.
Definition: CDCSegment2D.h:36
Belle2::TrackFindingCDC::SegmentCreatorFacetAutomaton::apply
void apply(const std::vector< CDCFacet > &inputFacets, const std::vector< WeightedRelation< const CDCFacet >> &inputFacetRelations, std::vector< CDCSegment2D > &outputSegments) final
Main function of the segment finding by the cellular automaton.
Definition: SegmentCreatorFacetAutomaton.cc:77
Belle2::ModuleParamList
The Module parameter list class.
Definition: ModuleParamList.h:46
Belle2::TrackFindingCDC::SegmentCreatorFacetAutomaton::getDescription
std::string getDescription() final
Short description of the findlet.
Definition: SegmentCreatorFacetAutomaton.cc:49
Belle2::TrackFindingCDC::SegmentCreatorFacetAutomaton::m_cellularPathFinder
MultipassCellularPathFinder< const CDCFacet > m_cellularPathFinder
Instance of the cellular automaton path finder.
Definition: SegmentCreatorFacetAutomaton.h:76