|
MarlinTrkProcessors
2.4.1
|
A helper class to allow good code readability by accessing tracks with N hits. More...
#include <FPCCDSiliconTracking_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 |
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.
|
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.
Referenced by FPCCDSiliconTracking_MarlinTrk::processEvent().
1.8.6