\section{N\-N\-Distance$<$ Hit\-Class, Pos\-Type $>$ Class Template Reference}
\label{classNNDistance}\index{N\-N\-Distance$<$ Hit\-Class, Pos\-Type $>$@{N\-N\-Distance$<$ Hit\-Class, Pos\-Type $>$}}


Simple predicate class for N\-N clustering.  




{\ttfamily \#include $<$N\-N\-Clusters.\-h$>$}

\subsection*{Public Types}
\begin{DoxyCompactItemize}
\item 
typedef Hit\-Class {\bf hit\-\_\-type}\label{classNNDistance_a4ccf5d2d431e52b0ce56c4b339ea1030}

\begin{DoxyCompactList}\small\item\em Required typedef for cluster algorithm. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
{\bf N\-N\-Distance} (float d\-Cut)\label{classNNDistance_a2e41e18abc99195e8ab5f5639811da92}

\begin{DoxyCompactList}\small\item\em C'tor takes merge distance. \end{DoxyCompactList}\item 
bool {\bf merge\-Hits} ({\bf Generic\-Hit}$<$ Hit\-Class $>$ $\ast$h0, {\bf Generic\-Hit}$<$ Hit\-Class $>$ $\ast$h1)
\begin{DoxyCompactList}\small\item\em Merge condition\-: true if distance is less than d\-Cut given in the C'tor. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Protected Attributes}
\begin{DoxyCompactItemize}
\item 
float {\bfseries \-\_\-d\-Cut\-Squared}\label{classNNDistance_ac77f1f82efac23f407172cc3770dccf2}

\item 
float {\bfseries \-\_\-d\-Cut}\label{classNNDistance_af82e1ad278d911d22af8251729f82a20}

\end{DoxyCompactItemize}


\subsection{Detailed Description}
\subsubsection*{template$<$class Hit\-Class, typename Pos\-Type$>$class N\-N\-Distance$<$ Hit\-Class, Pos\-Type $>$}

Simple predicate class for N\-N clustering. 

Requires Pos\-Type$\ast$ Hit\-Class\-::get\-Position(), e.\-g for Calorimeter\-Hits use\-: \par
 N\-N\-Distance$<$\-Calorimeter\-Hit,float$>$ dist( my\-Dist\-Cut ) ; 

\subsection{Member Function Documentation}
\index{N\-N\-Distance@{N\-N\-Distance}!merge\-Hits@{merge\-Hits}}
\index{merge\-Hits@{merge\-Hits}!NNDistance@{N\-N\-Distance}}
\subsubsection[{merge\-Hits}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Hit\-Class , typename Pos\-Type $>$ bool {\bf N\-N\-Distance}$<$ Hit\-Class, Pos\-Type $>$\-::merge\-Hits (
\begin{DoxyParamCaption}
\item[{{\bf Generic\-Hit}$<$ Hit\-Class $>$ $\ast$}]{h0, }
\item[{{\bf Generic\-Hit}$<$ Hit\-Class $>$ $\ast$}]{h1}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}}\label{classNNDistance_a93909a381a804dd54c83c8a5b08aa68a}


Merge condition\-: true if distance is less than d\-Cut given in the C'tor. 



References Generic\-Hit$<$ T $>$\-::\-Index0.



The documentation for this class was generated from the following file\-:\begin{DoxyCompactItemize}
\item 
N\-N\-Clusters.\-h\end{DoxyCompactItemize}
