MarlinTrkProcessors  2.4.1
Public Member Functions | Protected Attributes | List of all members
SiliconTracking_MarlinTrk::TracksWithNHitsContainer Class Reference

A helper class to allow good code readability by accessing tracks with N hits. More...

#include <SiliconTracking_MarlinTrk.h>

Public Member Functions

void clear ()
 Empty all the vectors and delete the tracks contained in it.
 
void resize (size_t maxHits)
 Set the size to allow a maximum of maxHit hits.
 
TrackExtendedVec & getTracksWithNHitsVec (size_t nHits)
 Returns the TrackExtendedVec for track with n hits. More...
 

Protected Attributes

std::vector< TrackExtendedVec > _tracksNHits
 
size_t _maxIndex
 

Detailed Description

A helper class to allow good code readability by accessing tracks with N hits.

As the smalest valid track contains three hits, but the first index in a vector is 0, this class hides the index-3 calculation. As the vector access is inline there should be no performance penalty.

Member Function Documentation

TrackExtendedVec& SiliconTracking_MarlinTrk::TracksWithNHitsContainer::getTracksWithNHitsVec ( size_t  nHits)
inline

Returns the TrackExtendedVec for track with n hits.

In case n is larger than the maximal number the vector with the largest n ist returned.

Attention
The smallest valid number is three! For performance reasons there is no safety check!

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