Belle II Software development
TrackFinderSegmentTripleAutomaton.cc
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#include <tracking/trackFindingCDC/findlets/combined/TrackFinderSegmentTripleAutomaton.h>
9
10#include <tracking/trackingUtilities/utilities/Algorithms.h>
11
12using namespace Belle2;
13using namespace TrackFindingCDC;
14using namespace TrackingUtilities;
15
33
35{
36 return "Generates tracks from segments using a cellular automaton built from segment triples.";
37}
38
40 const std::string& prefix)
41{
42 m_axialSegmentPairCreator.exposeParameters(moduleParamList, prefixed(prefix, "axialSegmentPair"));
43 m_segmentTripleCreator.exposeParameters(moduleParamList, prefixed(prefix, "segmentTriple"));
44 m_segmentTripleRelationCreator.exposeParameters(moduleParamList, prefixed(prefix, "segmentTripleRelation"));
45 m_trackCreatorSegmentTripleAutomaton.exposeParameters(moduleParamList, prefixed(prefix, "segmentTripleRelation"));
46 m_trackCreatorSingleSegments.exposeParameters(moduleParamList, prefix);
47 m_trackLinker.exposeParameters(moduleParamList, prefixed(prefix, "TrackRelation"));
48 m_trackOrienter.exposeParameters(moduleParamList, prefix);
49 m_segmentTripleSwapper.exposeParameters(moduleParamList, prefix);
50}
51
61
62void TrackFinderSegmentTripleAutomaton::apply(const std::vector<CDCSegment2D>& inputSegments,
63 std::vector<CDCTrack>& tracks)
64{
66
68
69 std::vector<const CDCSegmentTriple*> segmentTriplePtrs =
70 as_pointers<const CDCSegmentTriple>(m_segmentTriples);
72
74
77 m_trackLinker.apply(m_orientedTracks, tracks);
78
79 // Put the segment triples on the DataStore
81}
The Module parameter list class.
TrackingUtilities::WeightedRelationCreator< const TrackingUtilities::CDCSegmentTriple, TrackFindingCDC::ChooseableSegmentTripleRelationFilter > m_segmentTripleRelationCreator
Instance of the segment triple relation creator.
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.
std::vector< TrackingUtilities::CDCTrack > m_preLinkingTracks
Memory for the tracks before linking was applied.
TrackLinker m_trackLinker
Findlet responsible for the linking of tracks.
void apply(const std::vector< TrackingUtilities::CDCSegment2D > &inputSegments, std::vector< TrackingUtilities::CDCTrack > &tracks) final
Generates the tracks.
std::vector< TrackingUtilities::CDCAxialSegmentPair > m_axialSegmentPairs
Memory for the axial to axial segment pairs.
AxialSegmentPairCreator m_axialSegmentPairCreator
Instance of the axial to axial segment pair creator.
std::string getDescription() final
Short description of the findlet.
std::vector< TrackingUtilities::WeightedRelation< const TrackingUtilities::CDCSegmentTriple > > m_segmentTripleRelations
Memory for the segment triple relations.
TrackingUtilities::StoreVectorSwapper< TrackingUtilities::CDCSegmentTriple > m_segmentTripleSwapper
Helper to swap the local segment triples out to the DataStore.
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< TrackingUtilities::CDCTrack > m_orientedTracks
Memory for the tracks after orientation was applied.
TrackFinderSegmentTripleAutomaton()
Constructor registering the subordinary findlets to the processing signal distribution machinery.
std::vector< TrackingUtilities::CDCSegmentTriple > m_segmentTriples
Memory for the segment triples.
Abstract base class for different kinds of events.