\section{Ki\-Track\-:\-:I\-Hit Class Reference}
\label{classKiTrack_1_1IHit}\index{Ki\-Track\-::\-I\-Hit@{Ki\-Track\-::\-I\-Hit}}


An Interface for hits.  




{\ttfamily \#include $<$I\-Hit.\-h$>$}

\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
float {\bf get\-X} () const 
\item 
float {\bf get\-Y} () const 
\item 
float {\bf get\-Z} () const 
\item 
int {\bf get\-Sector} () const 
\item 
virtual const {\bf I\-Sector\-System} $\ast$ {\bf get\-Sector\-System} () const =0
\item 
unsigned {\bf get\-Layer} () const 
\item 
bool {\bf is\-Virtual} () const 
\item 
void {\bfseries set\-Is\-Virtual} (bool {\bf is\-Virtual})\label{classKiTrack_1_1IHit_ae2f5ef3fdc9a33120293f00981a6ebc3}

\item 
float {\bf dist\-To} ({\bf I\-Hit} $\ast$other\-Hit)
\item 
std\-::string {\bf get\-Position\-Info} ()
\item 
double {\bf get3\-D\-Angle} ({\bf I\-Hit} $\ast$other\-Hit) const 
\begin{DoxyCompactList}\small\item\em to be used with mini-\/vectors\-: \end{DoxyCompactList}\item 
double {\bf get\-Phi} () const 
\begin{DoxyCompactList}\small\item\em to be used with mini-\/vectors\-: \end{DoxyCompactList}\item 
double {\bf get\-Theta} () const 
\begin{DoxyCompactList}\small\item\em to be used with mini-\/vectors\-: \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Protected Attributes}
\begin{DoxyCompactItemize}
\item 
float {\bfseries \-\_\-x}\label{classKiTrack_1_1IHit_a7e71205a60af73a8c75f6728cdb4730b}

\item 
float {\bfseries \-\_\-y}\label{classKiTrack_1_1IHit_acab2a8339d0885e60ac61e5ce7327947}

\item 
float {\bfseries \-\_\-z}\label{classKiTrack_1_1IHit_ab78ab01ff4f9fce5be330d8149470a9d}

\item 
double {\bfseries \-\_\-3\-D\-Angle}\label{classKiTrack_1_1IHit_a712cf163d6f5cab3ce7f0dec47d0a01c}

\item 
double {\bfseries \-\_\-phi\-M\-V}\label{classKiTrack_1_1IHit_afc09bf6d822b3ac04879e96358df1322}

\item 
double {\bfseries \-\_\-theta\-M\-V}\label{classKiTrack_1_1IHit_af983b99e56e4fcfac6c5523b64e0eab6}

\item 
int {\bfseries \-\_\-sector}\label{classKiTrack_1_1IHit_aa843137aec6f79a9cacb89da29429e2d}

\item 
bool {\bfseries \-\_\-is\-Virtual}\label{classKiTrack_1_1IHit_a3e39a0b0d926975c25704987efefe429}

\end{DoxyCompactItemize}


\subsection{Detailed Description}
An Interface for hits. 

They have of course a position, accessible with \doxyref{get\-X()}{p.}{classKiTrack_1_1IHit_aba6bde0dc8a1b4b5b6535883d4c5e438}, \doxyref{get\-Y()}{p.}{classKiTrack_1_1IHit_afde7568ac5b06c1b1b989bc8dc281b4e} and \doxyref{get\-Z()}{p.}{classKiTrack_1_1IHit_a630eb4f465053d064a2bf58fd2589f34}.

Also a hit has a sector. A sector is just an integer, telling where the hit lies. For example a sector 141 could mean 1st layer, 4th module, 1st sensor. But how information is encoded is dealt with in the Sector\-System classes (see \doxyref{I\-Sector\-System}{p.}{classKiTrack_1_1ISectorSystem} for the Abstract Base Class ). 

\subsection{Member Function Documentation}
\index{Ki\-Track\-::\-I\-Hit@{Ki\-Track\-::\-I\-Hit}!dist\-To@{dist\-To}}
\index{dist\-To@{dist\-To}!KiTrack::IHit@{Ki\-Track\-::\-I\-Hit}}
\subsubsection[{dist\-To}]{\setlength{\rightskip}{0pt plus 5cm}float I\-Hit\-::dist\-To (
\begin{DoxyParamCaption}
\item[{{\bf I\-Hit} $\ast$}]{other\-Hit}
\end{DoxyParamCaption}
)}\label{classKiTrack_1_1IHit_a094c40f48b3fec0ac4e35a4cbfdf6b74}
\begin{DoxyReturn}{Returns}
the distance to an other hit 
\end{DoxyReturn}


References get\-X(), get\-Y(), and get\-Z().

\index{Ki\-Track\-::\-I\-Hit@{Ki\-Track\-::\-I\-Hit}!get3\-D\-Angle@{get3\-D\-Angle}}
\index{get3\-D\-Angle@{get3\-D\-Angle}!KiTrack::IHit@{Ki\-Track\-::\-I\-Hit}}
\subsubsection[{get3\-D\-Angle}]{\setlength{\rightskip}{0pt plus 5cm}double Ki\-Track\-::\-I\-Hit\-::get3\-D\-Angle (
\begin{DoxyParamCaption}
\item[{{\bf I\-Hit} $\ast$}]{other\-Hit}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily [inline]}}\label{classKiTrack_1_1IHit_ab11423d72f8cb65f017493f3a158a000}


to be used with mini-\/vectors\-: 

\begin{DoxyReturn}{Returns}
3\-D angle 
\end{DoxyReturn}
\index{Ki\-Track\-::\-I\-Hit@{Ki\-Track\-::\-I\-Hit}!get\-Layer@{get\-Layer}}
\index{get\-Layer@{get\-Layer}!KiTrack::IHit@{Ki\-Track\-::\-I\-Hit}}
\subsubsection[{get\-Layer}]{\setlength{\rightskip}{0pt plus 5cm}unsigned Ki\-Track\-::\-I\-Hit\-::get\-Layer (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily [inline]}}\label{classKiTrack_1_1IHit_ab4c663cbfed5f569c74c56b25683df70}
\begin{DoxyReturn}{Returns}
the layer of the hit 
\end{DoxyReturn}


References Ki\-Track\-::\-I\-Sector\-System\-::get\-Layer(), and get\-Sector\-System().

\index{Ki\-Track\-::\-I\-Hit@{Ki\-Track\-::\-I\-Hit}!get\-Phi@{get\-Phi}}
\index{get\-Phi@{get\-Phi}!KiTrack::IHit@{Ki\-Track\-::\-I\-Hit}}
\subsubsection[{get\-Phi}]{\setlength{\rightskip}{0pt plus 5cm}double Ki\-Track\-::\-I\-Hit\-::get\-Phi (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily [inline]}}\label{classKiTrack_1_1IHit_ac82012698a90ecb5125899892909516a}


to be used with mini-\/vectors\-: 

\begin{DoxyReturn}{Returns}
azimuth angle 
\end{DoxyReturn}


Referenced by Ki\-Track\-::\-Crit2\-\_\-\-Delta\-Phi\-\_\-\-M\-V\-::are\-Compatible().

\index{Ki\-Track\-::\-I\-Hit@{Ki\-Track\-::\-I\-Hit}!get\-Position\-Info@{get\-Position\-Info}}
\index{get\-Position\-Info@{get\-Position\-Info}!KiTrack::IHit@{Ki\-Track\-::\-I\-Hit}}
\subsubsection[{get\-Position\-Info}]{\setlength{\rightskip}{0pt plus 5cm}std\-::string I\-Hit\-::get\-Position\-Info (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}\label{classKiTrack_1_1IHit_a80f2421bc04d4714a2e7d2953535edf3}
\begin{DoxyReturn}{Returns}
a string containing the position of the hit 
\end{DoxyReturn}
\index{Ki\-Track\-::\-I\-Hit@{Ki\-Track\-::\-I\-Hit}!get\-Sector@{get\-Sector}}
\index{get\-Sector@{get\-Sector}!KiTrack::IHit@{Ki\-Track\-::\-I\-Hit}}
\subsubsection[{get\-Sector}]{\setlength{\rightskip}{0pt plus 5cm}int Ki\-Track\-::\-I\-Hit\-::get\-Sector (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily [inline]}}\label{classKiTrack_1_1IHit_a7ac8f63104af533ea21fc78d389b0b1c}
\begin{DoxyReturn}{Returns}
the sector, where the hit lies n 
\end{DoxyReturn}
\index{Ki\-Track\-::\-I\-Hit@{Ki\-Track\-::\-I\-Hit}!get\-Sector\-System@{get\-Sector\-System}}
\index{get\-Sector\-System@{get\-Sector\-System}!KiTrack::IHit@{Ki\-Track\-::\-I\-Hit}}
\subsubsection[{get\-Sector\-System}]{\setlength{\rightskip}{0pt plus 5cm}virtual const {\bf I\-Sector\-System}$\ast$ Ki\-Track\-::\-I\-Hit\-::get\-Sector\-System (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily [pure virtual]}}\label{classKiTrack_1_1IHit_abfbdc64c0c90630284a9b58498e13d76}
\begin{DoxyReturn}{Returns}
the used Sector\-System that encodes the sector of the hit 
\end{DoxyReturn}


Referenced by get\-Layer().

\index{Ki\-Track\-::\-I\-Hit@{Ki\-Track\-::\-I\-Hit}!get\-Theta@{get\-Theta}}
\index{get\-Theta@{get\-Theta}!KiTrack::IHit@{Ki\-Track\-::\-I\-Hit}}
\subsubsection[{get\-Theta}]{\setlength{\rightskip}{0pt plus 5cm}double Ki\-Track\-::\-I\-Hit\-::get\-Theta (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily [inline]}}\label{classKiTrack_1_1IHit_a3dd740372d40c3e2d8c1e3d23fc887fc}


to be used with mini-\/vectors\-: 

\begin{DoxyReturn}{Returns}
polar angle 
\end{DoxyReturn}


Referenced by Ki\-Track\-::\-Crit2\-\_\-\-Delta\-Theta\-\_\-\-M\-V\-::are\-Compatible(), and Ki\-Track\-::\-Crit3\-\_\-\-No\-Zig\-Zag\-\_\-\-M\-V\-::are\-Compatible().

\index{Ki\-Track\-::\-I\-Hit@{Ki\-Track\-::\-I\-Hit}!get\-X@{get\-X}}
\index{get\-X@{get\-X}!KiTrack::IHit@{Ki\-Track\-::\-I\-Hit}}
\subsubsection[{get\-X}]{\setlength{\rightskip}{0pt plus 5cm}float Ki\-Track\-::\-I\-Hit\-::get\-X (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily [inline]}}\label{classKiTrack_1_1IHit_aba6bde0dc8a1b4b5b6535883d4c5e438}
\begin{DoxyReturn}{Returns}
the x position 
\end{DoxyReturn}


Referenced by Ki\-Track\-::\-Crit2\-\_\-\-Delta\-Rho\-::are\-Compatible(), Ki\-Track\-::\-Crit3\-\_\-\-P\-T\-::are\-Compatible(), Ki\-Track\-::\-Crit3\-\_\-\-P\-T\-\_\-\-M\-V\-::are\-Compatible(), Ki\-Track\-::\-Crit3\-\_\-\-Change\-R\-Z\-Ratio\-::are\-Compatible(), Ki\-Track\-::\-Crit3\-\_\-\-I\-P\-Circle\-Dist\-::are\-Compatible(), Ki\-Track\-::\-Crit3\-\_\-\-I\-P\-Circle\-Dist\-Times\-R\-::are\-Compatible(), Ki\-Track\-::\-Crit2\-\_\-\-R\-Z\-Ratio\-::are\-Compatible(), Ki\-Track\-::\-Crit2\-\_\-\-Delta\-Phi\-\_\-\-M\-V\-::are\-Compatible(), Ki\-Track\-::\-Crit2\-\_\-\-Delta\-Theta\-\_\-\-M\-V\-::are\-Compatible(), Ki\-Track\-::\-Crit2\-\_\-\-Distance\-\_\-\-M\-V\-::are\-Compatible(), Ki\-Track\-::\-Crit2\-\_\-\-Delta\-Phi\-::are\-Compatible(), Ki\-Track\-::\-Crit4\-\_\-2\-D\-Angle\-Change\-::are\-Compatible(), Ki\-Track\-::\-Crit4\-\_\-3\-D\-Angle\-Change\-Normed\-::are\-Compatible(), Ki\-Track\-::\-Crit4\-\_\-\-R\-Change\-::are\-Compatible(), Ki\-Track\-::\-Crit3\-\_\-2\-D\-Angle\-::are\-Compatible(), Ki\-Track\-::\-Crit4\-\_\-3\-D\-Angle\-Change\-::are\-Compatible(), Ki\-Track\-::\-Crit3\-\_\-2\-D\-Angle\-Times\-R\-::are\-Compatible(), Ki\-Track\-::\-Crit3\-\_\-3\-D\-Angle\-::are\-Compatible(), Ki\-Track\-::\-Crit4\-\_\-\-Phi\-Z\-Ratio\-Change\-::are\-Compatible(), Ki\-Track\-::\-Crit3\-\_\-3\-D\-Angle\-Times\-R\-::are\-Compatible(), Ki\-Track\-::\-Crit4\-\_\-\-Dist\-Of\-Circle\-Centers\-::are\-Compatible(), Ki\-Track\-::\-Crit2\-\_\-\-Straight\-Track\-Ratio\-::are\-Compatible(), Ki\-Track\-::\-Crit4\-\_\-\-Dist\-To\-Extrapolation\-::are\-Compatible(), Ki\-Track\-::\-Crit4\-\_\-\-No\-Zig\-Zag\-::are\-Compatible(), Ki\-Track\-::\-Crit2\-\_\-\-Helix\-With\-I\-P\-::are\-Compatible(), and dist\-To().

\index{Ki\-Track\-::\-I\-Hit@{Ki\-Track\-::\-I\-Hit}!get\-Y@{get\-Y}}
\index{get\-Y@{get\-Y}!KiTrack::IHit@{Ki\-Track\-::\-I\-Hit}}
\subsubsection[{get\-Y}]{\setlength{\rightskip}{0pt plus 5cm}float Ki\-Track\-::\-I\-Hit\-::get\-Y (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily [inline]}}\label{classKiTrack_1_1IHit_afde7568ac5b06c1b1b989bc8dc281b4e}
\begin{DoxyReturn}{Returns}
the y position 
\end{DoxyReturn}


Referenced by Ki\-Track\-::\-Crit2\-\_\-\-Delta\-Rho\-::are\-Compatible(), Ki\-Track\-::\-Crit3\-\_\-\-P\-T\-::are\-Compatible(), Ki\-Track\-::\-Crit3\-\_\-\-P\-T\-\_\-\-M\-V\-::are\-Compatible(), Ki\-Track\-::\-Crit3\-\_\-\-Change\-R\-Z\-Ratio\-::are\-Compatible(), Ki\-Track\-::\-Crit3\-\_\-\-I\-P\-Circle\-Dist\-::are\-Compatible(), Ki\-Track\-::\-Crit3\-\_\-\-I\-P\-Circle\-Dist\-Times\-R\-::are\-Compatible(), Ki\-Track\-::\-Crit2\-\_\-\-R\-Z\-Ratio\-::are\-Compatible(), Ki\-Track\-::\-Crit2\-\_\-\-Delta\-Phi\-\_\-\-M\-V\-::are\-Compatible(), Ki\-Track\-::\-Crit2\-\_\-\-Delta\-Theta\-\_\-\-M\-V\-::are\-Compatible(), Ki\-Track\-::\-Crit2\-\_\-\-Distance\-\_\-\-M\-V\-::are\-Compatible(), Ki\-Track\-::\-Crit2\-\_\-\-Delta\-Phi\-::are\-Compatible(), Ki\-Track\-::\-Crit4\-\_\-2\-D\-Angle\-Change\-::are\-Compatible(), Ki\-Track\-::\-Crit4\-\_\-3\-D\-Angle\-Change\-Normed\-::are\-Compatible(), Ki\-Track\-::\-Crit4\-\_\-\-R\-Change\-::are\-Compatible(), Ki\-Track\-::\-Crit3\-\_\-2\-D\-Angle\-::are\-Compatible(), Ki\-Track\-::\-Crit4\-\_\-3\-D\-Angle\-Change\-::are\-Compatible(), Ki\-Track\-::\-Crit3\-\_\-2\-D\-Angle\-Times\-R\-::are\-Compatible(), Ki\-Track\-::\-Crit3\-\_\-3\-D\-Angle\-::are\-Compatible(), Ki\-Track\-::\-Crit4\-\_\-\-Phi\-Z\-Ratio\-Change\-::are\-Compatible(), Ki\-Track\-::\-Crit3\-\_\-3\-D\-Angle\-Times\-R\-::are\-Compatible(), Ki\-Track\-::\-Crit4\-\_\-\-Dist\-Of\-Circle\-Centers\-::are\-Compatible(), Ki\-Track\-::\-Crit2\-\_\-\-Straight\-Track\-Ratio\-::are\-Compatible(), Ki\-Track\-::\-Crit4\-\_\-\-Dist\-To\-Extrapolation\-::are\-Compatible(), Ki\-Track\-::\-Crit4\-\_\-\-No\-Zig\-Zag\-::are\-Compatible(), Ki\-Track\-::\-Crit2\-\_\-\-Helix\-With\-I\-P\-::are\-Compatible(), and dist\-To().

\index{Ki\-Track\-::\-I\-Hit@{Ki\-Track\-::\-I\-Hit}!get\-Z@{get\-Z}}
\index{get\-Z@{get\-Z}!KiTrack::IHit@{Ki\-Track\-::\-I\-Hit}}
\subsubsection[{get\-Z}]{\setlength{\rightskip}{0pt plus 5cm}float Ki\-Track\-::\-I\-Hit\-::get\-Z (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily [inline]}}\label{classKiTrack_1_1IHit_a630eb4f465053d064a2bf58fd2589f34}
\begin{DoxyReturn}{Returns}
the z position 
\end{DoxyReturn}


Referenced by Ki\-Track\-::\-Crit3\-\_\-\-Change\-R\-Z\-Ratio\-::are\-Compatible(), Ki\-Track\-::\-Crit2\-\_\-\-R\-Z\-Ratio\-::are\-Compatible(), Ki\-Track\-::\-Crit3\-\_\-3\-D\-Angle\-::are\-Compatible(), Ki\-Track\-::\-Crit4\-\_\-3\-D\-Angle\-Change\-::are\-Compatible(), Ki\-Track\-::\-Crit4\-\_\-3\-D\-Angle\-Change\-Normed\-::are\-Compatible(), Ki\-Track\-::\-Crit3\-\_\-3\-D\-Angle\-Times\-R\-::are\-Compatible(), Ki\-Track\-::\-Crit4\-\_\-\-Phi\-Z\-Ratio\-Change\-::are\-Compatible(), Ki\-Track\-::\-Crit4\-\_\-2\-D\-Angle\-Change\-::are\-Compatible(), Ki\-Track\-::\-Crit4\-\_\-\-Dist\-To\-Extrapolation\-::are\-Compatible(), Ki\-Track\-::\-Crit2\-\_\-\-Straight\-Track\-Ratio\-::are\-Compatible(), Ki\-Track\-::\-Crit4\-\_\-\-No\-Zig\-Zag\-::are\-Compatible(), Ki\-Track\-::\-Crit2\-\_\-\-Helix\-With\-I\-P\-::are\-Compatible(), and dist\-To().

\index{Ki\-Track\-::\-I\-Hit@{Ki\-Track\-::\-I\-Hit}!is\-Virtual@{is\-Virtual}}
\index{is\-Virtual@{is\-Virtual}!KiTrack::IHit@{Ki\-Track\-::\-I\-Hit}}
\subsubsection[{is\-Virtual}]{\setlength{\rightskip}{0pt plus 5cm}bool Ki\-Track\-::\-I\-Hit\-::is\-Virtual (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily [inline]}}\label{classKiTrack_1_1IHit_acf687632b9b7ce97a1ab992efbcefd87}
\begin{DoxyReturn}{Returns}
whether the hit is virtual (not a real hit). 
\end{DoxyReturn}


Referenced by Ki\-Track\-::\-Crit3\-\_\-\-No\-Zig\-Zag\-\_\-\-M\-V\-::are\-Compatible().



The documentation for this class was generated from the following files\-:\begin{DoxyCompactItemize}
\item 
I\-Hit.\-h\item 
I\-Hit.\-cc\end{DoxyCompactItemize}
