\section{marlintpc\-:\-:rb\-\_\-\-Triplet Class Reference}
\label{classmarlintpc_1_1rb__Triplet}\index{marlintpc\-::rb\-\_\-\-Triplet@{marlintpc\-::rb\-\_\-\-Triplet}}


Row based triplet.  




{\ttfamily \#include $<$Row\-Triplet\-Based\-Track\-Finder\-Processor.\-h$>$}

\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
{\bf rb\-\_\-\-Triplet} ({\bf rb\-\_\-\-Doublet} \&, {\bf rb\-\_\-\-Hit} $\ast$)
\begin{DoxyCompactList}\small\item\em Construct row based triplet. \end{DoxyCompactList}\item 
int {\bf get\-Row} () const \label{classmarlintpc_1_1rb__Triplet_a5d559522d577e544f3aaf1c2d68cb39c}

\begin{DoxyCompactList}\small\item\em Get row number (of center hit). \end{DoxyCompactList}\item 
double {\bf get\-X} () const \label{classmarlintpc_1_1rb__Triplet_ad973e63edc00c5b5836e0f59fa6e765d}

\begin{DoxyCompactList}\small\item\em Get X coordinate. \end{DoxyCompactList}\item 
double {\bf get\-Y} () const \label{classmarlintpc_1_1rb__Triplet_a7660e5e4d8ac08068dc632d4b31e3a47}

\begin{DoxyCompactList}\small\item\em Get Y coordinate. \end{DoxyCompactList}\item 
double {\bf get\-Z} () const \label{classmarlintpc_1_1rb__Triplet_ad1208ef069a5dbaadd2666c1ebd24778}

\begin{DoxyCompactList}\small\item\em Get Z coordinate. \end{DoxyCompactList}\item 
void {\bf get\-Pos} (double $\ast$) const 
\begin{DoxyCompactList}\small\item\em Get position. \end{DoxyCompactList}\item 
double {\bf get\-Var\-X\-Y\-Pos} (const double=0.) const 
\begin{DoxyCompactList}\small\item\em Get X\-Y variance (position). \end{DoxyCompactList}\item 
double {\bf get\-Var\-X\-Y\-Dir} () const \label{classmarlintpc_1_1rb__Triplet_aae424707e145e3ffed8a8cab170bbe70}

\begin{DoxyCompactList}\small\item\em Get X\-Y variance (direction\-: phi). \end{DoxyCompactList}\item 
double {\bf get\-Var\-Z\-Pos} (const double=0.) const 
\begin{DoxyCompactList}\small\item\em Get Z variance (position). \end{DoxyCompactList}\item 
double {\bf get\-Var\-Z\-Dir} () const \label{classmarlintpc_1_1rb__Triplet_a95140dbf41823277b346522ee194eb92}

\begin{DoxyCompactList}\small\item\em Get Z variance (direction\-: tan(lambda)). \end{DoxyCompactList}\item 
double {\bf get\-Phi\-Meas} () const \label{classmarlintpc_1_1rb__Triplet_a5ac887e7849b460dad3d3078a862d7d2}

\begin{DoxyCompactList}\small\item\em Get X\-Y measurement direction (average of outer hits). \end{DoxyCompactList}\item 
double {\bf get\-Phi} () const \label{classmarlintpc_1_1rb__Triplet_afe537c8a6fe7f245b3cf9d25b9c86165}

\begin{DoxyCompactList}\small\item\em Get direction in X\-Y. \end{DoxyCompactList}\item 
double {\bf get\-Tanl} () const \label{classmarlintpc_1_1rb__Triplet_a26fb4319591c4d8ffc7024ccb958b715}

\begin{DoxyCompactList}\small\item\em Get slope in Z\-S. \end{DoxyCompactList}\item 
void {\bf get\-Pos\-Close\-To} (const double, const double, double $\ast$, double \&) const 
\begin{DoxyCompactList}\small\item\em Get position close to reference point. \end{DoxyCompactList}\item 
{\bf rb\-\_\-\-Hit} $\ast$ {\bf get\-Hit} (const int) const 
\begin{DoxyCompactList}\small\item\em Get hit. \end{DoxyCompactList}\item 
bool {\bf match} ({\bf rb\-\_\-\-Triplet} $\ast$, const double, const double) const 
\begin{DoxyCompactList}\small\item\em Match triplet with other triplet. \end{DoxyCompactList}\item 
double {\bf get\-Cos\-Beta} () const \label{classmarlintpc_1_1rb__Triplet_a5eb84988abce2e0e820b6aed39f954c1}

\begin{DoxyCompactList}\small\item\em Get cos(beta). \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
Row based triplet. 

Is build from matching hits in even or odd rows and has a position and a direction (determined from seeding doublet) in X\-Y and Z\-S with corresponding covariances. 

\subsection{Constructor \& Destructor Documentation}
\index{marlintpc\-::rb\-\_\-\-Triplet@{marlintpc\-::rb\-\_\-\-Triplet}!rb\-\_\-\-Triplet@{rb\-\_\-\-Triplet}}
\index{rb\-\_\-\-Triplet@{rb\-\_\-\-Triplet}!marlintpc::rb_Triplet@{marlintpc\-::rb\-\_\-\-Triplet}}
\subsubsection[{rb\-\_\-\-Triplet}]{\setlength{\rightskip}{0pt plus 5cm}marlintpc\-::rb\-\_\-\-Triplet\-::rb\-\_\-\-Triplet (
\begin{DoxyParamCaption}
\item[{{\bf rb\-\_\-\-Doublet} \&}]{doublet, }
\item[{{\bf rb\-\_\-\-Hit} $\ast$}]{hit}
\end{DoxyParamCaption}
)}\label{classmarlintpc_1_1rb__Triplet_a078ac01bcac6bebe89a445c01e379687}


Construct row based triplet. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em doublet} & doublet of outer hits \\
\hline
\mbox{\tt in}  & {\em hit} & center hit \\
\hline
\end{DoxyParams}


References marlintpc\-::rb\-\_\-\-Doublet\-::get\-Hit(), and marlintpc\-::rb\-\_\-\-Doublet\-::get\-Parameters().



\subsection{Member Function Documentation}
\index{marlintpc\-::rb\-\_\-\-Triplet@{marlintpc\-::rb\-\_\-\-Triplet}!get\-Hit@{get\-Hit}}
\index{get\-Hit@{get\-Hit}!marlintpc::rb_Triplet@{marlintpc\-::rb\-\_\-\-Triplet}}
\subsubsection[{get\-Hit}]{\setlength{\rightskip}{0pt plus 5cm}{\bf rb\-\_\-\-Hit} $\ast$ marlintpc\-::rb\-\_\-\-Triplet\-::get\-Hit (
\begin{DoxyParamCaption}
\item[{const int}]{ihit}
\end{DoxyParamCaption}
) const}\label{classmarlintpc_1_1rb__Triplet_a77fbe223554b9dda18036e92c16b885a}


Get hit. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em ihit} & hit index \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
hit 
\end{DoxyReturn}
\index{marlintpc\-::rb\-\_\-\-Triplet@{marlintpc\-::rb\-\_\-\-Triplet}!get\-Pos@{get\-Pos}}
\index{get\-Pos@{get\-Pos}!marlintpc::rb_Triplet@{marlintpc\-::rb\-\_\-\-Triplet}}
\subsubsection[{get\-Pos}]{\setlength{\rightskip}{0pt plus 5cm}void marlintpc\-::rb\-\_\-\-Triplet\-::get\-Pos (
\begin{DoxyParamCaption}
\item[{double $\ast$}]{position}
\end{DoxyParamCaption}
) const}\label{classmarlintpc_1_1rb__Triplet_ae5b3279df8b32b403cfa6127b494ceb3}


Get position. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt out}  & {\em position} & position \\
\hline
\end{DoxyParams}
\index{marlintpc\-::rb\-\_\-\-Triplet@{marlintpc\-::rb\-\_\-\-Triplet}!get\-Pos\-Close\-To@{get\-Pos\-Close\-To}}
\index{get\-Pos\-Close\-To@{get\-Pos\-Close\-To}!marlintpc::rb_Triplet@{marlintpc\-::rb\-\_\-\-Triplet}}
\subsubsection[{get\-Pos\-Close\-To}]{\setlength{\rightskip}{0pt plus 5cm}void marlintpc\-::rb\-\_\-\-Triplet\-::get\-Pos\-Close\-To (
\begin{DoxyParamCaption}
\item[{const double}]{xref, }
\item[{const double}]{yref, }
\item[{double $\ast$}]{position, }
\item[{double \&}]{ds}
\end{DoxyParamCaption}
) const}\label{classmarlintpc_1_1rb__Triplet_afee626af57fc181633030536d0adb96b}


Get position close to reference point. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em xref} & X of reference point \\
\hline
\mbox{\tt in}  & {\em yref} & Y of reference point \\
\hline
\mbox{\tt out}  & {\em position} & position \\
\hline
\mbox{\tt out}  & {\em ds} & arc length (to position) \\
\hline
\end{DoxyParams}


Referenced by match().

\index{marlintpc\-::rb\-\_\-\-Triplet@{marlintpc\-::rb\-\_\-\-Triplet}!get\-Var\-X\-Y\-Pos@{get\-Var\-X\-Y\-Pos}}
\index{get\-Var\-X\-Y\-Pos@{get\-Var\-X\-Y\-Pos}!marlintpc::rb_Triplet@{marlintpc\-::rb\-\_\-\-Triplet}}
\subsubsection[{get\-Var\-X\-Y\-Pos}]{\setlength{\rightskip}{0pt plus 5cm}double marlintpc\-::rb\-\_\-\-Triplet\-::get\-Var\-X\-Y\-Pos (
\begin{DoxyParamCaption}
\item[{const double}]{ds = {\ttfamily 0.}}
\end{DoxyParamCaption}
) const}\label{classmarlintpc_1_1rb__Triplet_aefe57316bac0c0439801c06f956c0b7b}


Get X\-Y variance (position). 


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em ds} & arc length \\
\hline
\end{DoxyParams}


Referenced by match().

\index{marlintpc\-::rb\-\_\-\-Triplet@{marlintpc\-::rb\-\_\-\-Triplet}!get\-Var\-Z\-Pos@{get\-Var\-Z\-Pos}}
\index{get\-Var\-Z\-Pos@{get\-Var\-Z\-Pos}!marlintpc::rb_Triplet@{marlintpc\-::rb\-\_\-\-Triplet}}
\subsubsection[{get\-Var\-Z\-Pos}]{\setlength{\rightskip}{0pt plus 5cm}double marlintpc\-::rb\-\_\-\-Triplet\-::get\-Var\-Z\-Pos (
\begin{DoxyParamCaption}
\item[{const double}]{ds = {\ttfamily 0.}}
\end{DoxyParamCaption}
) const}\label{classmarlintpc_1_1rb__Triplet_a38d748b20e3d1ee2f7ca8b42f3d276c8}


Get Z variance (position). 


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em ds} & arc length \\
\hline
\end{DoxyParams}


Referenced by match().

\index{marlintpc\-::rb\-\_\-\-Triplet@{marlintpc\-::rb\-\_\-\-Triplet}!match@{match}}
\index{match@{match}!marlintpc::rb_Triplet@{marlintpc\-::rb\-\_\-\-Triplet}}
\subsubsection[{match}]{\setlength{\rightskip}{0pt plus 5cm}bool marlintpc\-::rb\-\_\-\-Triplet\-::match (
\begin{DoxyParamCaption}
\item[{{\bf rb\-\_\-\-Triplet} $\ast$}]{trp, }
\item[{const double}]{pos\-Cut, }
\item[{const double}]{dir\-Cut}
\end{DoxyParamCaption}
) const}\label{classmarlintpc_1_1rb__Triplet_a97e6dfc41c6911900f359428d58d3b88}


Match triplet with other triplet. 

Match triplets in position and direction in X\-Y and Z\-S.


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em trp} & triplet to compare with \\
\hline
\mbox{\tt in}  & {\em pos\-Cut} & cuts in normalized variance for position matching of (disjunct, overlapping) triplets \\
\hline
\mbox{\tt in}  & {\em dir\-Cut} & cuts in normalized variance for direction matching of (disjunct, overlapping) triplets \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
matching flag
\end{DoxyReturn}
Chi2 values calculated from differences in position (at mid point) and direction and covariance matrices in X\-Y and Z\-S are used as matching criteria (separately).

Matching cuts at $\sim$4 sigma. 

References get\-Phi(), get\-Phi\-Meas(), get\-Pos\-Close\-To(), get\-Row(), get\-Tanl(), get\-Var\-X\-Y\-Dir(), get\-Var\-X\-Y\-Pos(), get\-Var\-Z\-Dir(), get\-Var\-Z\-Pos(), get\-X(), and get\-Y().



The documentation for this class was generated from the following files\-:\begin{DoxyCompactItemize}
\item 
Row\-Triplet\-Based\-Track\-Finder\-Processor.\-h\item 
Row\-Triplet\-Based\-Track\-Finder\-Processor.\-cc\end{DoxyCompactItemize}
