Belle II Software  release-08-01-10
TrackFinderSegmentTripleAutomaton.h
1 /**************************************************************************
2  * basf2 (Belle II Analysis Software Framework) *
3  * Author: The Belle II Collaboration *
4  * *
5  * See git log for contributors and copyright holders. *
6  * This file is licensed under LGPL-3.0, see LICENSE.md. *
7  **************************************************************************/
8 #pragma once
9 
10 #include <tracking/trackFindingCDC/findlets/minimal/AxialSegmentPairCreator.h>
11 #include <tracking/trackFindingCDC/findlets/minimal/SegmentTripleCreator.h>
12 
13 #include <tracking/trackFindingCDC/findlets/minimal/TrackCreatorSegmentTripleAutomaton.h>
14 #include <tracking/trackFindingCDC/findlets/minimal/TrackCreatorSingleSegments.h>
15 #include <tracking/trackFindingCDC/findlets/minimal/TrackLinker.h>
16 #include <tracking/trackFindingCDC/findlets/minimal/TrackOrienter.h>
17 
18 #include <tracking/trackFindingCDC/filters/segmentTripleRelation/ChooseableSegmentTripleRelationFilter.h>
19 
20 #include <tracking/trackFindingCDC/eventdata/tracks/CDCTrack.h>
21 #include <tracking/trackFindingCDC/eventdata/tracks/CDCSegmentTriple.h>
22 #include <tracking/trackFindingCDC/eventdata/tracks/CDCAxialSegmentPair.h>
23 
24 #include <tracking/trackFindingCDC/findlets/minimal/WeightedRelationCreator.h>
25 #include <tracking/trackFindingCDC/findlets/base/StoreVectorSwapper.h>
26 
27 #include <vector>
28 
29 namespace Belle2 {
34  namespace TrackFindingCDC {
35 
37  class TrackFinderSegmentTripleAutomaton : public Findlet<const CDCSegment2D, CDCTrack> {
38 
39  private:
42 
43  public:
46 
48  std::string getDescription() final;
49 
51  void exposeParameters(ModuleParamList* moduleParamList, const std::string& prefix) final;
52 
54  void beginEvent() final;
55 
57  void apply(const std::vector<CDCSegment2D>& inputSegments, std::vector<CDCTrack>& tracks) final;
58 
59  private:
60  // Findlets
63 
66 
69 
72 
75 
78 
81 
84 
85  // object pools
87  std::vector<CDCAxialSegmentPair> m_axialSegmentPairs;
88 
90  std::vector<CDCSegmentTriple> m_segmentTriples;
91 
93  std::vector<WeightedRelation<const CDCSegmentTriple> > m_segmentTripleRelations;
94 
96  std::vector<CDCTrack> m_preLinkingTracks;
97 
99  std::vector<CDCTrack> m_orientedTracks;
100  };
101  }
103 }
The Module parameter list class.
Class providing construction combinatorics for the axial stereo segment pairs.
A reconstructed sequence of two dimensional hits in one super layer.
Definition: CDCSegment2D.h:39
Class representing a triple of reconstructed segements in adjacent superlayer.
Class representing a sequence of three dimensional reconstructed hits.
Definition: CDCTrack.h:41
Convenvience wrapper to setup a Chooseable filter from a specific factory object.
Interface for a minimal algorithm part that wants to expose some parameters to a module.
Definition: Findlet.h:26
Class providing construction combinatorics for the axial stereo segment pairs.
Refines the clustering of wire hits from clusters to clusters.
Findlet that generates tracks based on a cellular automaton of segment triples.
Searches for segments that have not been used at all and creates tracks from them.
Findlet implementing the track finding from segments using a cellular automaton over segment triples.
StoreVectorSwapper< CDCSegmentTriple > m_segmentTripleSwapper
Helper to swap the local segment triples out to the DataStore.
void apply(const std::vector< CDCSegment2D > &inputSegments, std::vector< CDCTrack > &tracks) final
Generates the tracks.
TrackOrienter m_trackOrienter
Fixes the direction of flight of tracks by a simple chooseable heuristic.
TrackCreatorSingleSegments m_trackCreatorSingleSegments
Creates tracks from left over segments.
TrackCreatorSegmentTripleAutomaton m_trackCreatorSegmentTripleAutomaton
Instance of the cellular automaton creating creating tracks over segment triple.
TrackLinker m_trackLinker
Findlet responsible for the linking of tracks.
AxialSegmentPairCreator m_axialSegmentPairCreator
Instance of the axial to axial segment pair creator.
std::string getDescription() final
Short description of the findlet.
SegmentTripleCreator m_segmentTripleCreator
Instance of the segment triple creator.
void exposeParameters(ModuleParamList *moduleParamList, const std::string &prefix) final
Expose the parameters to a module.
std::vector< CDCTrack > m_preLinkingTracks
Memory for the tracks before linking was applied.
std::vector< CDCAxialSegmentPair > m_axialSegmentPairs
Memory for the axial to axial segment pairs.
TrackFinderSegmentTripleAutomaton()
Constructor registering the subordinary findlets to the processing signal distribution machinery.
std::vector< WeightedRelation< const CDCSegmentTriple > > m_segmentTripleRelations
Memory for the segment triple relations.
WeightedRelationCreator< const CDCSegmentTriple, ChooseableSegmentTripleRelationFilter > m_segmentTripleRelationCreator
Instance of the segment triple relation creator.
std::vector< CDCSegmentTriple > m_segmentTriples
Memory for the segment triples.
std::vector< CDCTrack > m_orientedTracks
Memory for the tracks after orientation was applied.
Links tracks based on a filter criterion.
Definition: TrackLinker.h:31
Fixes the orientation of tracks by a simple heuristic.
Definition: TrackOrienter.h:26
Findlet that combines geometrical constrained pairs of objects to relations and selects them by the f...
Abstract base class for different kinds of events.