Belle II Software development
TrackFinderSegmentPairAutomaton.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/SegmentPairCreator.h>
11#include <tracking/trackFindingCDC/findlets/minimal/TrackCreatorSegmentPairAutomaton.h>
12#include <tracking/trackFindingCDC/findlets/minimal/TrackCreatorSingleSegments.h>
13#include <tracking/trackFindingCDC/findlets/minimal/TrackLinker.h>
14#include <tracking/trackFindingCDC/findlets/minimal/TrackOrienter.h>
15
16#include <tracking/trackFindingCDC/filters/segmentPairRelation/ChooseableSegmentPairRelationFilter.h>
17
18#include <tracking/trackFindingCDC/eventdata/segments/CDCSegment2D.h>
19#include <tracking/trackFindingCDC/eventdata/tracks/CDCTrack.h>
20
21#include <tracking/trackFindingCDC/findlets/minimal/WeightedRelationCreator.h>
22#include <tracking/trackFindingCDC/findlets/base/StoreVectorSwapper.h>
23
24#include <vector>
25
26namespace Belle2 {
31 namespace TrackFindingCDC {
33 class TrackFinderSegmentPairAutomaton : public Findlet<const CDCSegment2D, CDCTrack> {
34
35 private:
38
39 public:
42
44 std::string getDescription() final;
45
47 void exposeParameters(ModuleParamList* moduleParamList, const std::string& prefix) final;
48
50 void beginEvent() final;
51
53 void apply(const std::vector<CDCSegment2D>& inputSegments, std::vector<CDCTrack>& tracks) final;
54
55 private:
56 // Findlets
59
62
65
68
71
74
77
78 // Object pools
80 std::vector<CDCSegmentPair> m_segmentPairs;
81
83 std::vector<WeightedRelation<const CDCSegmentPair> > m_segmentPairRelations;
84
86 std::vector<CDCTrack> m_preLinkingTracks;
87
89 std::vector<CDCTrack> m_orientedTracks;
90 };
91 }
93}
The Module parameter list class.
A reconstructed sequence of two dimensional hits in one super layer.
Definition: CDCSegment2D.h:39
Class representing a pair of one reconstructed axial segement and one stereo segment in adjacent supe...
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 pairs.
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 pairs.
void apply(const std::vector< CDCSegment2D > &inputSegments, std::vector< CDCTrack > &tracks) final
Generates the tracks from segments.
TrackOrienter m_trackOrienter
Fixes the direction of flight of tracks by a simple chooseable heuristic.
StoreVectorSwapper< CDCSegmentPair > m_segmentPairSwapper
Puts the internal segment pairs on the DataStore.
WeightedRelationCreator< const CDCSegmentPair, ChooseableSegmentPairRelationFilter > m_segmentPairRelationCreator
Findlet responsible for the creation of segment pairs relations of the CA.
TrackCreatorSingleSegments m_trackCreatorSingleSegments
Creates tracks from left over segments.
void beginEvent() final
Signal the beginning of a new event.
TrackLinker m_trackLinker
Findlet responsible for the linking of tracks.
std::string getDescription() final
Short description of the findlet.
std::vector< WeightedRelation< const CDCSegmentPair > > m_segmentPairRelations
Memory for the axial stereo segment pair relations.
TrackFinderSegmentPairAutomaton()
Constructor registering the subordinary findlets to the processing signal distribution machinery.
void exposeParameters(ModuleParamList *moduleParamList, const std::string &prefix) final
Expose the parameters to a module.
SegmentPairCreator m_segmentPairCreator
Findlet responsible for the creation of segment pairs.
std::vector< CDCTrack > m_preLinkingTracks
Memory for the tracks before linking was applied.
TrackCreatorSegmentPairAutomaton m_trackCreatorSegmentPairAutomaton
Reference to the relation filter to be used to construct the segment pair network.
std::vector< CDCSegmentPair > m_segmentPairs
Memory for the axial stereo segment pairs.
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.
STL namespace.