\section{Ki\-Track\-:\-:Crit2\-\_\-\-Helix\-With\-I\-P Class Reference}
\label{classKiTrack_1_1Crit2__HelixWithIP}\index{Ki\-Track\-::\-Crit2\-\_\-\-Helix\-With\-I\-P@{Ki\-Track\-::\-Crit2\-\_\-\-Helix\-With\-I\-P}}


Criterion\-: Check if two hits are compatible with a helix crossing the I\-P.  




{\ttfamily \#include $<$Crit2\-\_\-\-Helix\-With\-I\-P.\-h$>$}

Inheritance diagram for Ki\-Track\-:\-:Crit2\-\_\-\-Helix\-With\-I\-P\-:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2.000000cm]{classKiTrack_1_1Crit2__HelixWithIP}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
{\bfseries Crit2\-\_\-\-Helix\-With\-I\-P} (float ratio\-Min, float ratio\-Max)\label{classKiTrack_1_1Crit2__HelixWithIP_a745aa7e5fe184c2d6c04cfea64206f05}

\item 
virtual bool {\bf are\-Compatible} ({\bf Segment} $\ast$parent, {\bf Segment} $\ast$child)  throw ( Bad\-Segment\-Length )
\end{DoxyCompactItemize}
\subsection*{Additional Inherited Members}


\subsection{Detailed Description}
Criterion\-: Check if two hits are compatible with a helix crossing the I\-P. 

The procedure is this\-: a circle is calculated from the two hits and the I\-P. The angle between the center of the circle and two hits is calles alpha here. alpha between I\-P and the first hit is proportional to the z-\/distance of the I\-P and the first hit in the same way alpha between the first and second hit should be proportional to the z-\/distance of those hits. The value calculated is \[ \frac{ \frac{\alpha_1}{\Delta z_1} }{ \frac{\alpha_2}{\Delta z_2} } \simeq 1 \] and is 1 for a perfect helix around the z -\/ axis. 

\subsection{Member Function Documentation}
\index{Ki\-Track\-::\-Crit2\-\_\-\-Helix\-With\-I\-P@{Ki\-Track\-::\-Crit2\-\_\-\-Helix\-With\-I\-P}!are\-Compatible@{are\-Compatible}}
\index{are\-Compatible@{are\-Compatible}!KiTrack::Crit2_HelixWithIP@{Ki\-Track\-::\-Crit2\-\_\-\-Helix\-With\-I\-P}}
\subsubsection[{are\-Compatible}]{\setlength{\rightskip}{0pt plus 5cm}bool Crit2\-\_\-\-Helix\-With\-I\-P\-::are\-Compatible (
\begin{DoxyParamCaption}
\item[{{\bf Segment} $\ast$}]{parent, }
\item[{{\bf Segment} $\ast$}]{child}
\end{DoxyParamCaption}
) throw  {\bf Bad\-Segment\-Length}) \hspace{0.3cm}{\ttfamily [virtual]}}\label{classKiTrack_1_1Crit2__HelixWithIP_ad08391a9d35d1e548293a39bfc31cd41}
\begin{DoxyReturn}{Returns}
If the two Segments are compatible with each other, i.\-e. could be combined to a longer \doxyref{Segment}{p.}{classKiTrack_1_1Segment} or a track. 
\end{DoxyReturn}


Implements {\bf Ki\-Track\-::\-I\-Criterion} \doxyref{}{p.}{classKiTrack_1_1ICriterion_ab5b749cf9e9798222f369fbe3bd2ccc1}.



References Ki\-Track\-::\-I\-Hit\-::get\-X(), Ki\-Track\-::\-I\-Hit\-::get\-Y(), and Ki\-Track\-::\-I\-Hit\-::get\-Z().



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