Belle II Software development
|
Creates a vector of vectors, that knows which track is conflicting with which other. More...
#include <OverlapMatrixCreator.h>
Public Member Functions | |
OverlapMatrixCreator (std::vector< std::vector< unsigned short > > const &hitRelatedTracks, unsigned short nSpacePointTrackCandidates) | |
Constructor taking information necessary to perform algorithm. | |
std::vector< std::vector< unsigned short > > | getOverlapMatrix (unsigned allowedOverlaps=0) |
Fills and returns the overlap matrix. | |
Private Attributes | |
std::vector< std::vector< unsigned short > > const & | m_hitRelatedTracks |
Input information, see constructor. | |
std::vector< std::vector< unsigned short > > | m_overlapMatrix |
Output information, see getOverlapMatrix. | |
Creates a vector of vectors, that knows which track is conflicting with which other.
Definition at line 19 of file OverlapMatrixCreator.h.
|
inline |
Constructor taking information necessary to perform algorithm.
The index of the first vector of hitRelatedTracks is the hit index. The vector at that place holds all tracks, that are connected to that index. m_overlapMatrix is the output and needs to know for how many tracks overlaps need to be saved, hence the second parameter.
Definition at line 28 of file OverlapMatrixCreator.h.
|
inline |
Fills and returns the overlap matrix.
It is fairly easily possible to extend the algorithm to allow a number of overlaps without telling the tracks to be in conflict.
Definition at line 38 of file OverlapMatrixCreator.h.
|
private |
Input information, see constructor.
Definition at line 88 of file OverlapMatrixCreator.h.
|
private |
Output information, see getOverlapMatrix.
Definition at line 89 of file OverlapMatrixCreator.h.