\section{Silicon\-Tracking\-\_\-\-Marlin\-Trk\-:\-:Tracks\-With\-N\-Hits\-Container Class Reference}
\label{classSiliconTracking__MarlinTrk_1_1TracksWithNHitsContainer}\index{Silicon\-Tracking\-\_\-\-Marlin\-Trk\-::\-Tracks\-With\-N\-Hits\-Container@{Silicon\-Tracking\-\_\-\-Marlin\-Trk\-::\-Tracks\-With\-N\-Hits\-Container}}


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




{\ttfamily \#include $<$Silicon\-Tracking\-\_\-\-Marlin\-Trk.\-h$>$}

\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
void {\bf clear} ()\label{classSiliconTracking__MarlinTrk_1_1TracksWithNHitsContainer_ac03694a2d80b0763172c6fd0ce99f8a3}

\begin{DoxyCompactList}\small\item\em Empty all the vectors and delete the tracks contained in it. \end{DoxyCompactList}\item 
void {\bf resize} (size\-\_\-t max\-Hits)\label{classSiliconTracking__MarlinTrk_1_1TracksWithNHitsContainer_a702caed5494127025998cfa991c82de3}

\begin{DoxyCompactList}\small\item\em Set the size to allow a maximum of max\-Hit hits. \end{DoxyCompactList}\item 
Track\-Extended\-Vec \& {\bf get\-Tracks\-With\-N\-Hits\-Vec} (size\-\_\-t n\-Hits)
\begin{DoxyCompactList}\small\item\em Returns the Track\-Extended\-Vec for track with n hits. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Protected Attributes}
\begin{DoxyCompactItemize}
\item 
std\-::vector$<$ Track\-Extended\-Vec $>$ {\bfseries \-\_\-tracks\-N\-Hits}\label{classSiliconTracking__MarlinTrk_1_1TracksWithNHitsContainer_a7bcf76f5c9e568587cc491af6ecf160d}

\item 
size\-\_\-t {\bfseries \-\_\-max\-Index}\label{classSiliconTracking__MarlinTrk_1_1TracksWithNHitsContainer_a42be4e101222398b2b40929696a7711e}

\end{DoxyCompactItemize}


\subsection{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. 

\subsection{Member Function Documentation}
\index{Silicon\-Tracking\-\_\-\-Marlin\-Trk\-::\-Tracks\-With\-N\-Hits\-Container@{Silicon\-Tracking\-\_\-\-Marlin\-Trk\-::\-Tracks\-With\-N\-Hits\-Container}!get\-Tracks\-With\-N\-Hits\-Vec@{get\-Tracks\-With\-N\-Hits\-Vec}}
\index{get\-Tracks\-With\-N\-Hits\-Vec@{get\-Tracks\-With\-N\-Hits\-Vec}!SiliconTracking_MarlinTrk::TracksWithNHitsContainer@{Silicon\-Tracking\-\_\-\-Marlin\-Trk\-::\-Tracks\-With\-N\-Hits\-Container}}
\subsubsection[{get\-Tracks\-With\-N\-Hits\-Vec}]{\setlength{\rightskip}{0pt plus 5cm}Track\-Extended\-Vec\& Silicon\-Tracking\-\_\-\-Marlin\-Trk\-::\-Tracks\-With\-N\-Hits\-Container\-::get\-Tracks\-With\-N\-Hits\-Vec (
\begin{DoxyParamCaption}
\item[{size\-\_\-t}]{n\-Hits}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}}\label{classSiliconTracking__MarlinTrk_1_1TracksWithNHitsContainer_a3d58db79ecd822620bcaf2af385a828c}


Returns the Track\-Extended\-Vec for track with n hits. 

In case n is larger than the maximal number the vector with the largest n ist returned. \begin{DoxyAttention}{Attention}
The smallest valid number is three! For performance reasons there is no safety check! 
\end{DoxyAttention}


The documentation for this class was generated from the following files\-:\begin{DoxyCompactItemize}
\item 
Silicon\-Tracking\-\_\-\-Marlin\-Trk.\-h\item 
Silicon\-Tracking\-\_\-\-Marlin\-Trk.\-cc\end{DoxyCompactItemize}
