Belle II Software  release-05-01-25
SegmentLinker.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/segmentRelation/ChooseableSegmentRelationFilter.h>
16 
17 #include <tracking/trackFindingCDC/ca/MultipassCellularPathFinder.h>
18 #include <tracking/trackFindingCDC/utilities/WeightedRelation.h>
19 
20 #include <vector>
21 #include <string>
22 
23 namespace Belle2 {
29  namespace TrackFindingCDC {
30  class CDCSegment2D;
31 
33  class SegmentLinker : public Findlet<const CDCSegment2D, CDCSegment2D> {
34 
35  private:
37  using Super = Findlet<const CDCSegment2D, CDCSegment2D>;
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<CDCSegment2D>& inputSegment2Ds,
52  std::vector<CDCSegment2D>& outputSegment2Ds) final;
53 
54  private: // Parameters
56  bool m_param_wholeSuperLayer = false;
57 
59  bool m_param_dealiasLinked = false;
60 
62  bool m_param_onlyLinked = false;
63 
64  private:
67 
70 
73 
75  std::vector<Path<const CDCSegment2D>> m_segment2DPaths;
76  };
77  }
79 }
Belle2::TrackFindingCDC::SegmentLinker::exposeParameters
void exposeParameters(ModuleParamList *moduleParamList, const std::string &prefix) final
Expose the parameters to a module.
Definition: SegmentLinker.cc:35
Belle2::TrackFindingCDC::SegmentLinker::m_cellularPathFinder
MultipassCellularPathFinder< const CDCSegment2D > m_cellularPathFinder
Instance of the cellular automaton path finder.
Definition: SegmentLinker.h:77
Belle2::TrackFindingCDC::SegmentLinker::Super
Findlet< const CDCSegment2D, CDCSegment2D > Super
Type of the base class.
Definition: SegmentLinker.h:45
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::SegmentLinker::m_segment2DPaths
std::vector< Path< const CDCSegment2D > > m_segment2DPaths
Memory for the segment paths generated from the graph.
Definition: SegmentLinker.h:83
Belle2::TrackFindingCDC::ChooseableFilter
Convenvience wrapper to setup a Chooseable filter from a specific factory object.
Definition: ChooseableFilter.dcl.h:107
Belle2::TrackFindingCDC::SegmentLinker::m_param_dealiasLinked
bool m_param_dealiasLinked
Parameter : Switch to block hits that appear in linked segments such that unlinked reverse and aliase...
Definition: SegmentLinker.h:67
Belle2::TrackFindingCDC::SegmentLinker::m_segment2DRelationCreator
WeightedRelationCreator< const CDCSegment2D, ChooseableSegmentRelationFilter > m_segment2DRelationCreator
Creator of the segment relations for linking.
Definition: SegmentLinker.h:74
Belle2::TrackFindingCDC::SegmentLinker::getDescription
std::string getDescription() final
Short description of the findlet.
Definition: SegmentLinker.cc:30
Belle2::TrackFindingCDC::MultipassCellularPathFinder
Class to combine the run of the cellular automaton and the repeated path extraction.
Definition: MultipassCellularPathFinder.h:46
Belle2::TrackFindingCDC::SegmentLinker::SegmentLinker
SegmentLinker()
Constructor adding the filter as a subordinary processing signal listener.
Definition: SegmentLinker.cc:25
Belle2::TrackFindingCDC::SegmentLinker::m_param_wholeSuperLayer
bool m_param_wholeSuperLayer
Parameter : Switch to activate segment linking in the whole superlayer instead of only the super clus...
Definition: SegmentLinker.h:64
Belle2::TrackFindingCDC::SegmentLinker::apply
void apply(const std::vector< CDCSegment2D > &inputSegment2Ds, std::vector< CDCSegment2D > &outputSegment2Ds) final
Main algorithm.
Definition: SegmentLinker.cc:55
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::TrackFindingCDC::SegmentLinker::m_segment2DRelations
std::vector< WeightedRelation< const CDCSegment2D > > m_segment2DRelations
Memory for the relations between segments to be followed on linking.
Definition: SegmentLinker.h:80
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::ModuleParamList
The Module parameter list class.
Definition: ModuleParamList.h:46
Belle2::TrackFindingCDC::SegmentLinker::m_param_onlyLinked
bool m_param_onlyLinked
Parameter : Switch to construct only segments that have a linked partner.
Definition: SegmentLinker.h:70