KiTrack  1.7.0
Public Member Functions | List of all members
KiTrack::SegmentBuilder Class Reference

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 ()
 

Detailed Description

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.

Constructor & Destructor Documentation

SegmentBuilder::SegmentBuilder ( std::map< int, std::vector< IHit * > >  map_sector_hits)
Parameters
ftdRepthe FTDRepresentation to take the autHits from

Member Function Documentation

Automaton SegmentBuilder::get1SegAutomaton ( )
Returns
An automaton containing all the hits from the FTDRepresentation sorted now by layers. (attention: those are not necessarily the same layers as the FTD layers). Also they are connected.

References KiTrack::Automaton::addSegment(), KiTrack::Segment::getInfo(), and KiTrack::ICriterion::getName().


The documentation for this class was generated from the following files: