KiTrack
1.7.0
|
This classe builds the Cellular Automaton from the hits. More...
#include <SegmentBuilder.h>
Public Member Functions | |
SegmentBuilder (std::map< int, std::vector< IHit * > > map_sector_hits) | |
void | addCriterion (ICriterion *criterion) |
Adds a criterion. | |
void | addCriteria (std::vector< ICriterion * > criteria) |
Adds criteria. | |
void | addSectorConnector (ISectorConnector *connector) |
Adds a hitConnector. | |
Automaton | get1SegAutomaton () |
This classe builds the Cellular Automaton from the hits.
It can be used to take all the autHits stored in a map< int , vector < IHits > > and makes 1-hit-segments out of them ( see the class Segment for more info on them ).
The created 1-segments then are connected.
For the rules of connecting criteria and hitConnectors can be added to the object:
So the hitConnectors tell us were to look and the criteria whether to connect. If two 1-hit segments are found, that are compatible, they will be connected. Connected means: The inner 1-segment will save the outer one as a parent and the outer one will save the inner one as a child.
All this (except adding hitConnectors and Criteria) is done in the method get1SegAutomaton.
This method finally then returns an automaton (segments sorted by their layers), ready to be used.
SegmentBuilder::SegmentBuilder | ( | std::map< int, std::vector< IHit * > > | map_sector_hits | ) |
ftdRep | the FTDRepresentation to take the autHits from |
Automaton SegmentBuilder::get1SegAutomaton | ( | ) |
References KiTrack::Automaton::addSegment(), KiTrack::Segment::getInfo(), and KiTrack::ICriterion::getName().