Belle II Software  release-05-01-25
TrackFinderSegmentTripleAutomaton.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/minimal/AxialSegmentPairCreator.h>
13 #include <tracking/trackFindingCDC/findlets/minimal/SegmentTripleCreator.h>
14 
15 #include <tracking/trackFindingCDC/findlets/minimal/TrackCreatorSegmentTripleAutomaton.h>
16 #include <tracking/trackFindingCDC/findlets/minimal/TrackCreatorSingleSegments.h>
17 #include <tracking/trackFindingCDC/findlets/minimal/TrackLinker.h>
18 #include <tracking/trackFindingCDC/findlets/minimal/TrackOrienter.h>
19 
20 #include <tracking/trackFindingCDC/filters/segmentTripleRelation/ChooseableSegmentTripleRelationFilter.h>
21 
22 #include <tracking/trackFindingCDC/eventdata/tracks/CDCTrack.h>
23 #include <tracking/trackFindingCDC/eventdata/tracks/CDCSegmentTriple.h>
24 #include <tracking/trackFindingCDC/eventdata/tracks/CDCAxialSegmentPair.h>
25 
26 #include <tracking/trackFindingCDC/findlets/minimal/WeightedRelationCreator.h>
27 #include <tracking/trackFindingCDC/findlets/base/StoreVectorSwapper.h>
28 
29 #include <vector>
30 
31 namespace Belle2 {
36  namespace TrackFindingCDC {
37 
39  class TrackFinderSegmentTripleAutomaton : public Findlet<const CDCSegment2D, CDCTrack> {
40 
41  private:
43  using Super = Findlet<const CDCSegment2D, CDCTrack>;
44 
45  public:
48 
50  std::string getDescription() final;
51 
53  void exposeParameters(ModuleParamList* moduleParamList, const std::string& prefix) final;
54 
56  void beginEvent() final;
57 
59  void apply(const std::vector<CDCSegment2D>& inputSegments, std::vector<CDCTrack>& tracks) final;
60 
61  private:
62  // Findlets
65 
68 
71 
74 
77 
80 
83 
86 
87  // object pools
89  std::vector<CDCAxialSegmentPair> m_axialSegmentPairs;
90 
92  std::vector<CDCSegmentTriple> m_segmentTriples;
93 
95  std::vector<WeightedRelation<const CDCSegmentTriple> > m_segmentTripleRelations;
96 
98  std::vector<CDCTrack> m_preLinkingTracks;
99 
101  std::vector<CDCTrack> m_orientedTracks;
102  };
103  }
105 }
Belle2::TrackFindingCDC::TrackFinderSegmentTripleAutomaton::m_trackCreatorSegmentTripleAutomaton
TrackCreatorSegmentTripleAutomaton m_trackCreatorSegmentTripleAutomaton
Instance of the cellular automaton creating creating tracks over segment triple.
Definition: TrackFinderSegmentTripleAutomaton.h:81
Belle2::TrackFindingCDC::TrackLinker
Links tracks based on a filter criterion.
Definition: TrackLinker.h:41
Belle2::TrackFindingCDC::StoreVectorSwapper
Refines the clustering of wire hits from clusters to clusters.
Definition: StoreVectorSwapper.h:40
Belle2::TrackFindingCDC::TrackFinderSegmentTripleAutomaton::getDescription
std::string getDescription() final
Short description of the findlet.
Definition: TrackFinderSegmentTripleAutomaton.cc:35
Belle2::TrackFindingCDC::AxialSegmentPairCreator
Class providing construction combinatorics for the axial stereo segment pairs.
Definition: AxialSegmentPairCreator.h:41
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::TrackFinderSegmentTripleAutomaton::m_trackOrienter
TrackOrienter m_trackOrienter
Fixes the direction of flight of tracks by a simple chooseable heuristic.
Definition: TrackFinderSegmentTripleAutomaton.h:90
Belle2::TrackFindingCDC::ChooseableFilter
Convenvience wrapper to setup a Chooseable filter from a specific factory object.
Definition: ChooseableFilter.dcl.h:107
Belle2::TrackFindingCDC::TrackFinderSegmentTripleAutomaton::m_axialSegmentPairs
std::vector< CDCAxialSegmentPair > m_axialSegmentPairs
Memory for the axial to axial segment pairs.
Definition: TrackFinderSegmentTripleAutomaton.h:97
Belle2::TrackFindingCDC::TrackFinderSegmentTripleAutomaton::m_segmentTripleRelations
std::vector< WeightedRelation< const CDCSegmentTriple > > m_segmentTripleRelations
Memory for the segment triple relations.
Definition: TrackFinderSegmentTripleAutomaton.h:103
Belle2::TrackFindingCDC::TrackFinderSegmentTripleAutomaton::m_segmentTripleCreator
SegmentTripleCreator m_segmentTripleCreator
Instance of the segment triple creator.
Definition: TrackFinderSegmentTripleAutomaton.h:75
Belle2::TrackFindingCDC::TrackFinderSegmentTripleAutomaton::beginEvent
void beginEvent() final
Signal the beginning of a new event.
Definition: TrackFinderSegmentTripleAutomaton.cc:53
Belle2::TrackFindingCDC::TrackFinderSegmentTripleAutomaton::m_trackCreatorSingleSegments
TrackCreatorSingleSegments m_trackCreatorSingleSegments
Creates tracks from left over segments.
Definition: TrackFinderSegmentTripleAutomaton.h:84
Belle2::TrackFindingCDC::TrackCreatorSingleSegments
Searches for segments that have not been used at all and creates tracks from them.
Definition: TrackCreatorSingleSegments.h:44
Belle2::TrackFindingCDC::SegmentTripleCreator
Class providing construction combinatorics for the axial stereo segment pairs.
Definition: SegmentTripleCreator.h:43
Belle2::TrackFindingCDC::TrackFinderSegmentTripleAutomaton::TrackFinderSegmentTripleAutomaton
TrackFinderSegmentTripleAutomaton()
Constructor registering the subordinary findlets to the processing signal distribution machinery.
Definition: TrackFinderSegmentTripleAutomaton.cc:17
Belle2::TrackFindingCDC::TrackFinderSegmentTripleAutomaton::m_orientedTracks
std::vector< CDCTrack > m_orientedTracks
Memory for the tracks after orientation was applied.
Definition: TrackFinderSegmentTripleAutomaton.h:109
Belle2::TrackFindingCDC::TrackFinderSegmentTripleAutomaton::m_segmentTripleSwapper
StoreVectorSwapper< CDCSegmentTriple > m_segmentTripleSwapper
Helper to swap the local segment triples out to the DataStore.
Definition: TrackFinderSegmentTripleAutomaton.h:93
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::TrackFindingCDC::TrackFinderSegmentTripleAutomaton::m_axialSegmentPairCreator
AxialSegmentPairCreator m_axialSegmentPairCreator
Instance of the axial to axial segment pair creator.
Definition: TrackFinderSegmentTripleAutomaton.h:72
Belle2::TrackFindingCDC::TrackFinderSegmentTripleAutomaton::m_segmentTriples
std::vector< CDCSegmentTriple > m_segmentTriples
Memory for the segment triples.
Definition: TrackFinderSegmentTripleAutomaton.h:100
Belle2::TrackFindingCDC::TrackCreatorSegmentTripleAutomaton
Findlet that generates tracks based on a cellular automaton of segment triples.
Definition: TrackCreatorSegmentTripleAutomaton.h:43
Belle2::TrackFindingCDC::TrackFinderSegmentTripleAutomaton::Super
Findlet< const CDCSegment2D, CDCTrack > Super
Type of the base class.
Definition: TrackFinderSegmentTripleAutomaton.h:51
Belle2::TrackFindingCDC::CDCSegment2D
A reconstructed sequence of two dimensional hits in one super layer.
Definition: CDCSegment2D.h:40
Belle2::TrackFindingCDC::TrackFinderSegmentTripleAutomaton::exposeParameters
void exposeParameters(ModuleParamList *moduleParamList, const std::string &prefix) final
Expose the parameters to a module.
Definition: TrackFinderSegmentTripleAutomaton.cc:40
Belle2::TrackFindingCDC::TrackOrienter
Fixes the orientation of tracks by a simple heuristic.
Definition: TrackOrienter.h:36
Belle2::ModuleParamList
The Module parameter list class.
Definition: ModuleParamList.h:46
Belle2::TrackFindingCDC::TrackFinderSegmentTripleAutomaton::m_segmentTripleRelationCreator
WeightedRelationCreator< const CDCSegmentTriple, ChooseableSegmentTripleRelationFilter > m_segmentTripleRelationCreator
Instance of the segment triple relation creator.
Definition: TrackFinderSegmentTripleAutomaton.h:78
Belle2::TrackFindingCDC::TrackFinderSegmentTripleAutomaton::m_trackLinker
TrackLinker m_trackLinker
Findlet responsible for the linking of tracks.
Definition: TrackFinderSegmentTripleAutomaton.h:87
Belle2::TrackFindingCDC::TrackFinderSegmentTripleAutomaton::m_preLinkingTracks
std::vector< CDCTrack > m_preLinkingTracks
Memory for the tracks before linking was applied.
Definition: TrackFinderSegmentTripleAutomaton.h:106
Belle2::TrackFindingCDC::CDCSegmentTriple
Class representing a triple of reconstructed segements in adjacent superlayer.
Definition: CDCSegmentTriple.h:42
Belle2::TrackFindingCDC::TrackFinderSegmentTripleAutomaton::apply
void apply(const std::vector< CDCSegment2D > &inputSegments, std::vector< CDCTrack > &tracks) final
Generates the tracks.
Definition: TrackFinderSegmentTripleAutomaton.cc:63