\section{marlintpc\-:\-:tp\-\_\-\-Pixel\-Segment Class Reference}
\label{classmarlintpc_1_1tp__PixelSegment}\index{marlintpc\-::tp\-\_\-\-Pixel\-Segment@{marlintpc\-::tp\-\_\-\-Pixel\-Segment}}


Time\-Pix pixel segment.  




{\ttfamily \#include $<$Time\-Pix\-Local\-Road\-Search\-Processor.\-h$>$}

\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
{\bf tp\-\_\-\-Pixel\-Segment} (const int, const int, const double, macro\-Pixel\-List\-Type \&)
\begin{DoxyCompactList}\small\item\em Construct Time\-Pix pixel segment. \end{DoxyCompactList}\item 
{\bf $\sim$tp\-\_\-\-Pixel\-Segment} ()\label{classmarlintpc_1_1tp__PixelSegment_a3a2187ac435268d6c57786ab50910f33}

\begin{DoxyCompactList}\small\item\em Destructor. \end{DoxyCompactList}\item 
void {\bf print} () const \label{classmarlintpc_1_1tp__PixelSegment_a31770ac97109a63450344c52966bf434}

\begin{DoxyCompactList}\small\item\em Print. \end{DoxyCompactList}\item 
int {\bf get\-Num\-Par} () const \label{classmarlintpc_1_1tp__PixelSegment_af09a58dcd42581fd0dbad66dfce13cb4}

\begin{DoxyCompactList}\small\item\em Get number of parameters. \end{DoxyCompactList}\item 
int {\bf get\-Level} () const \label{classmarlintpc_1_1tp__PixelSegment_a1b0dafe0e60f2c3bbb9aa3e00c48b2d4}

\begin{DoxyCompactList}\small\item\em Get level. \end{DoxyCompactList}\item 
double {\bf get\-Chi2} () const \label{classmarlintpc_1_1tp__PixelSegment_a3f0f2d7787f7dc2cb8a75ba817c26853}

\begin{DoxyCompactList}\small\item\em Get Chi2/\-Ndf. \end{DoxyCompactList}\item 
int {\bf get\-Ndf} () const \label{classmarlintpc_1_1tp__PixelSegment_a89c9fa3c5ec4f56b09f95b68078b2ec0}

\begin{DoxyCompactList}\small\item\em Get Chi2/\-Ndf. \end{DoxyCompactList}\item 
double {\bf get\-Length} () const \label{classmarlintpc_1_1tp__PixelSegment_a04fc0bd6d69af6a46aed99ba3d3b2094}

\begin{DoxyCompactList}\small\item\em Get length. \end{DoxyCompactList}\item 
void {\bf get\-Ref\-Point} (double $\ast$) const 
\begin{DoxyCompactList}\small\item\em Get reference point. \end{DoxyCompactList}\item 
void {\bf get\-Par} (double $\ast$) const 
\begin{DoxyCompactList}\small\item\em Get (all five helix) parameters from segment fit. \end{DoxyCompactList}\item 
const T\-Vector\-D \& {\bf get\-Par} () const \label{classmarlintpc_1_1tp__PixelSegment_a4da8663807d5bc7866b68d93f8493a40}

\begin{DoxyCompactList}\small\item\em Get parameter vector. \end{DoxyCompactList}\item 
const T\-Matrix\-D\-Sym \& {\bf get\-Cov} () const \label{classmarlintpc_1_1tp__PixelSegment_aa001f6821237f474e2c9bc9fdeff7470}

\begin{DoxyCompactList}\small\item\em Get covariance matrix. \end{DoxyCompactList}\item 
bool {\bf match} ({\bf tp\-\_\-\-Pixel\-Segment} $\ast$, const double, const double) const 
\begin{DoxyCompactList}\small\item\em Compare the (4 (line) or 5 (helix)) track parameters (at the mid point). \end{DoxyCompactList}\item 
macro\-Pixel\-List\-Type {\bf get\-Macro\-Pixels} () const \label{classmarlintpc_1_1tp__PixelSegment_abef505672fbfd37bd295f989e085be46}

\begin{DoxyCompactList}\small\item\em Get macro pixels. \end{DoxyCompactList}\item 
void {\bf get\-L\-C\-I\-O\-State\-At\-Ref\-Point} (const double $\ast$, T\-Vector\-D \&, T\-Matrix\-D\-Sym \&) const 
\begin{DoxyCompactList}\small\item\em Get segment state at reference point. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
Time\-Pix pixel segment. 

\subsection{Constructor \& Destructor Documentation}
\index{marlintpc\-::tp\-\_\-\-Pixel\-Segment@{marlintpc\-::tp\-\_\-\-Pixel\-Segment}!tp\-\_\-\-Pixel\-Segment@{tp\-\_\-\-Pixel\-Segment}}
\index{tp\-\_\-\-Pixel\-Segment@{tp\-\_\-\-Pixel\-Segment}!marlintpc::tp_PixelSegment@{marlintpc\-::tp\-\_\-\-Pixel\-Segment}}
\subsubsection[{tp\-\_\-\-Pixel\-Segment}]{\setlength{\rightskip}{0pt plus 5cm}marlintpc\-::tp\-\_\-\-Pixel\-Segment\-::tp\-\_\-\-Pixel\-Segment (
\begin{DoxyParamCaption}
\item[{const int}]{seg\-Id, }
\item[{const int}]{level, }
\item[{const double}]{Bzc, }
\item[{macro\-Pixel\-List\-Type \&}]{macro\-Pixels}
\end{DoxyParamCaption}
)}\label{classmarlintpc_1_1tp__PixelSegment_a3df09f630998417f027a095f529ce330}


Construct Time\-Pix pixel segment. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em seg\-Id} & segment I\-D \\
\hline
\mbox{\tt in}  & {\em level} & level \\
\hline
\mbox{\tt in}  & {\em Bzc} & Bz$\ast$c \\
\hline
\mbox{\tt in}  & {\em macro\-Pixels} & list of macro pixels \\
\hline
\end{DoxyParams}
int n\-Par\-Z\-S; 

References marlintpc\-::simple\-Fit\-X\-Y\-::add\-Point(), marlintpc\-::simple\-Fit\-Z\-S\-::add\-Point(), marlintpc\-::simple\-Fit\-X\-Y\-::fit(), marlintpc\-::simple\-Fit\-Z\-S\-::fit(), marlintpc\-::simple\-Helix\-::get\-Arc\-Length\-X\-Y(), marlintpc\-::simple\-Fit\-X\-Y\-::get\-Cov(), marlintpc\-::simple\-Fit\-Z\-S\-::get\-Cov(), marlintpc\-::simple\-Fit\-X\-Y\-::get\-Par(), and marlintpc\-::simple\-Fit\-Z\-S\-::get\-Par().



\subsection{Member Function Documentation}
\index{marlintpc\-::tp\-\_\-\-Pixel\-Segment@{marlintpc\-::tp\-\_\-\-Pixel\-Segment}!get\-L\-C\-I\-O\-State\-At\-Ref\-Point@{get\-L\-C\-I\-O\-State\-At\-Ref\-Point}}
\index{get\-L\-C\-I\-O\-State\-At\-Ref\-Point@{get\-L\-C\-I\-O\-State\-At\-Ref\-Point}!marlintpc::tp_PixelSegment@{marlintpc\-::tp\-\_\-\-Pixel\-Segment}}
\subsubsection[{get\-L\-C\-I\-O\-State\-At\-Ref\-Point}]{\setlength{\rightskip}{0pt plus 5cm}void marlintpc\-::tp\-\_\-\-Pixel\-Segment\-::get\-L\-C\-I\-O\-State\-At\-Ref\-Point (
\begin{DoxyParamCaption}
\item[{const double $\ast$}]{ref\-Pos, }
\item[{T\-Vector\-D \&}]{new\-Par, }
\item[{T\-Matrix\-D\-Sym \&}]{new\-Cov}
\end{DoxyParamCaption}
) const}\label{classmarlintpc_1_1tp__PixelSegment_ac499dbd4d7f8af0aeb92d0196be501c6}


Get segment state at reference point. 

Propagate track state at point and transform from helix to L\-C\-I\-O representation.


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em ref\-Pos} & reference point (X coordinate) \\
\hline
\mbox{\tt out}  & {\em new\-Par} & parameter vector \\
\hline
\mbox{\tt out}  & {\em new\-Cov} & covariance matrix \\
\hline
\end{DoxyParams}


References get\-Cov(), get\-Par(), get\-Ref\-Point(), marlintpc\-::simple\-Helix\-::get\-State\-At(), and marlintpc\-::simple\-Helix\-::helix\-To\-L\-C\-I\-O\-Jacobian().

\index{marlintpc\-::tp\-\_\-\-Pixel\-Segment@{marlintpc\-::tp\-\_\-\-Pixel\-Segment}!get\-Par@{get\-Par}}
\index{get\-Par@{get\-Par}!marlintpc::tp_PixelSegment@{marlintpc\-::tp\-\_\-\-Pixel\-Segment}}
\subsubsection[{get\-Par}]{\setlength{\rightskip}{0pt plus 5cm}void marlintpc\-::tp\-\_\-\-Pixel\-Segment\-::get\-Par (
\begin{DoxyParamCaption}
\item[{double $\ast$}]{par}
\end{DoxyParamCaption}
) const}\label{classmarlintpc_1_1tp__PixelSegment_adc5fb6fad7a5b21f5dadbdc00b56b739}


Get (all five helix) parameters from segment fit. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt out}  & {\em par} & helix parameter (curvature is zero for Bz$\ast$c = 0.) \\
\hline
\end{DoxyParams}


Referenced by match().

\index{marlintpc\-::tp\-\_\-\-Pixel\-Segment@{marlintpc\-::tp\-\_\-\-Pixel\-Segment}!get\-Ref\-Point@{get\-Ref\-Point}}
\index{get\-Ref\-Point@{get\-Ref\-Point}!marlintpc::tp_PixelSegment@{marlintpc\-::tp\-\_\-\-Pixel\-Segment}}
\subsubsection[{get\-Ref\-Point}]{\setlength{\rightskip}{0pt plus 5cm}void marlintpc\-::tp\-\_\-\-Pixel\-Segment\-::get\-Ref\-Point (
\begin{DoxyParamCaption}
\item[{double $\ast$}]{position}
\end{DoxyParamCaption}
) const}\label{classmarlintpc_1_1tp__PixelSegment_a607298e05d6b7ecff648a0a47f8e9540}


Get reference point. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt out}  & {\em position} & position of reference point \\
\hline
\end{DoxyParams}


Referenced by get\-L\-C\-I\-O\-State\-At\-Ref\-Point(), and match().

\index{marlintpc\-::tp\-\_\-\-Pixel\-Segment@{marlintpc\-::tp\-\_\-\-Pixel\-Segment}!match@{match}}
\index{match@{match}!marlintpc::tp_PixelSegment@{marlintpc\-::tp\-\_\-\-Pixel\-Segment}}
\subsubsection[{match}]{\setlength{\rightskip}{0pt plus 5cm}bool marlintpc\-::tp\-\_\-\-Pixel\-Segment\-::match (
\begin{DoxyParamCaption}
\item[{{\bf tp\-\_\-\-Pixel\-Segment} $\ast$}]{seg, }
\item[{const double}]{chi2\-Cut, }
\item[{const double}]{dist\-Cut}
\end{DoxyParamCaption}
) const}\label{classmarlintpc_1_1tp__PixelSegment_abcb8e09eb581adaf2d92e729a7f91c62}


Compare the (4 (line) or 5 (helix)) track parameters (at the mid point). 

The segments must not overlap (in rows) and the (row) gap must be smaller than the average length.


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em seg} & segment to compare with \\
\hline
\mbox{\tt in}  & {\em chi2\-Cut} & chi2/ndf cut for segment matching \\
\hline
\mbox{\tt in}  & {\em dist\-Cut} & distance cut \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
matching flag 
\end{DoxyReturn}


References get\-Cov(), get\-Length(), get\-Par(), get\-Ref\-Point(), and marlintpc\-::simple\-Helix\-::get\-State\-At().



The documentation for this class was generated from the following files\-:\begin{DoxyCompactItemize}
\item 
Time\-Pix\-Local\-Road\-Search\-Processor.\-h\item 
Time\-Pix\-Local\-Road\-Search\-Processor.\-cc\end{DoxyCompactItemize}
