Belle II Software  release-08-01-10
OverlapMatrixCreator Class Reference

Creates a vector of vectors, that knows which track is conflicting with which other. More...

#include <OverlapMatrixCreator.h>

Collaboration diagram for OverlapMatrixCreator:

Public Member Functions

 OverlapMatrixCreator (std::vector< std::vector< unsigned short > > const &hitRelatedTracks, unsigned short nSpacePointTrackCandidates)
 Constructor taking information necessary to perform algorithm. More...
 
std::vector< std::vector< unsigned short > > getOverlapMatrix (unsigned allowedOverlaps=0)
 Fills and returns the overlap matrix. More...
 

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.
 

Detailed Description

Creates a vector of vectors, that knows which track is conflicting with which other.

Definition at line 19 of file OverlapMatrixCreator.h.

Constructor & Destructor Documentation

◆ OverlapMatrixCreator()

OverlapMatrixCreator ( std::vector< std::vector< unsigned short > > const &  hitRelatedTracks,
unsigned short  nSpacePointTrackCandidates 
)
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.

29  :
30  m_hitRelatedTracks(hitRelatedTracks), m_overlapMatrix(nSpacePointTrackCandidates)
31  {}
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.

Member Function Documentation

◆ getOverlapMatrix()

std::vector<std::vector<unsigned short> > getOverlapMatrix ( unsigned  allowedOverlaps = 0)
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.


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