\section{marlintpc\-:\-:Biased\-Residuals\-Processor Class Reference}
\label{classmarlintpc_1_1BiasedResidualsProcessor}\index{marlintpc\-::\-Biased\-Residuals\-Processor@{marlintpc\-::\-Biased\-Residuals\-Processor}}


Fill the residuals of the hits into an A\-I\-D\-A histogram.  




{\ttfamily \#include $<$Biased\-Residuals\-Processor.\-h$>$}

Inheritance diagram for marlintpc\-:\-:Biased\-Residuals\-Processor\-:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2.000000cm]{classmarlintpc_1_1BiasedResidualsProcessor}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
virtual Processor $\ast$ {\bfseries new\-Processor} ()\label{classmarlintpc_1_1BiasedResidualsProcessor_a1abbfb912b36d7b0e1cd9577b9d6a14c}

\item 
virtual void {\bfseries init} ()\label{classmarlintpc_1_1BiasedResidualsProcessor_a4f76f2a6a8ccdf83cbd5a7370b066e6d}

\item 
virtual void {\bfseries process\-Run\-Header} (lcio\-::\-L\-C\-Run\-Header $\ast$run)\label{classmarlintpc_1_1BiasedResidualsProcessor_aa2a7810ca02775d13431f518dd1e0149}

\item 
virtual void {\bf process\-Event} (lcio\-::\-L\-C\-Event $\ast$evt)
\end{DoxyCompactItemize}
\subsection*{Protected Attributes}
\begin{DoxyCompactItemize}
\item 
std\-::string {\bf \-\_\-input\-Col\-Name}\label{classmarlintpc_1_1BiasedResidualsProcessor_a70949c25b35c50b136a6d81300ae2fa5}

\begin{DoxyCompactList}\small\item\em the name of the input collection \end{DoxyCompactList}\item 
std\-::string {\bf \-\_\-relations\-Col\-Name}\label{classmarlintpc_1_1BiasedResidualsProcessor_adf5bc7fd35f2814a8a3b5a264c809f0b}

\begin{DoxyCompactList}\small\item\em the name of the relatiobs collection to reference tracks \end{DoxyCompactList}\item 
A\-I\-D\-A\-::\-I\-Histogram1\-D $\ast$ {\bf \-\_\-residuals\-X\-Y\-Histo}\label{classmarlintpc_1_1BiasedResidualsProcessor_a5d4ace10e022e7f990b31f2ec21c5b00}

\begin{DoxyCompactList}\small\item\em the residuals in the xy-\/plane \end{DoxyCompactList}\item 
A\-I\-D\-A\-::\-I\-Histogram1\-D $\ast$ {\bf \-\_\-residuals\-Z\-Histo}\label{classmarlintpc_1_1BiasedResidualsProcessor_a263560b2cf2a1bb2135ce0dd1d30ce0b}

\begin{DoxyCompactList}\small\item\em the residuals in z (time) \end{DoxyCompactList}\item 
A\-I\-D\-A\-::\-I\-Histogram2\-D $\ast$ {\bf \-\_\-residuals\-X\-Y\-\_\-vs\-\_\-xr}\label{classmarlintpc_1_1BiasedResidualsProcessor_a0bf5d9a10756c4f12d11c6dc124716ba}

\begin{DoxyCompactList}\small\item\em the residuals in the xy-\/plane vs x or r \end{DoxyCompactList}\item 
A\-I\-D\-A\-::\-I\-Histogram2\-D $\ast$ {\bf \-\_\-residuals\-X\-Y\-\_\-vs\-\_\-yphi}\label{classmarlintpc_1_1BiasedResidualsProcessor_a0c99ef8abeb688fff51f5aece94cdf54}

\begin{DoxyCompactList}\small\item\em the residuals in the xy-\/plane vs y or phi \end{DoxyCompactList}\item 
A\-I\-D\-A\-::\-I\-Histogram2\-D $\ast$ {\bf \-\_\-residuals\-X\-Y\-\_\-vs\-\_\-z}\label{classmarlintpc_1_1BiasedResidualsProcessor_a40af5a3bacea180d63ad38436b75d71c}

\begin{DoxyCompactList}\small\item\em the residuals in the xy-\/plane vs z \end{DoxyCompactList}\item 
A\-I\-D\-A\-::\-I\-Histogram2\-D $\ast$ {\bf \-\_\-residuals\-Z\-\_\-vs\-\_\-xr}\label{classmarlintpc_1_1BiasedResidualsProcessor_aa43ce1691fa0742aea0796bd00542a06}

\begin{DoxyCompactList}\small\item\em the residuals in z vs x or r \end{DoxyCompactList}\item 
A\-I\-D\-A\-::\-I\-Histogram2\-D $\ast$ {\bf \-\_\-residuals\-Z\-\_\-vs\-\_\-yphi}\label{classmarlintpc_1_1BiasedResidualsProcessor_a245b10a5e5eb8b916c0530d0a3df2cfa}

\begin{DoxyCompactList}\small\item\em the residuals z vs y or phi \end{DoxyCompactList}\item 
A\-I\-D\-A\-::\-I\-Histogram2\-D $\ast$ {\bf \-\_\-residuals\-Z\-\_\-vs\-\_\-z}\label{classmarlintpc_1_1BiasedResidualsProcessor_acebbe3b3f10139e71a1ba40abcc1c617}

\begin{DoxyCompactList}\small\item\em the residuals z vs z \end{DoxyCompactList}\item 
float {\bf \-\_\-histogram\-Min\-Value\-X\-Y}\label{classmarlintpc_1_1BiasedResidualsProcessor_a6d3b90341e533bfd22d260c8579d7728}

\begin{DoxyCompactList}\small\item\em Minimum value in xy histogram. \end{DoxyCompactList}\item 
float {\bf \-\_\-histogram\-Max\-Value\-X\-Y}\label{classmarlintpc_1_1BiasedResidualsProcessor_a9edc51fe019d97af77c8e8bbcad355d0}

\begin{DoxyCompactList}\small\item\em Maximum value in xy histogram. \end{DoxyCompactList}\item 
float {\bf \-\_\-histogram\-Min\-Value\-Z}\label{classmarlintpc_1_1BiasedResidualsProcessor_a16c0646c2eeaf6c510a8c439ee6115b9}

\begin{DoxyCompactList}\small\item\em Minimum value in z histogram. \end{DoxyCompactList}\item 
float {\bf \-\_\-histogram\-Max\-Value\-Z}\label{classmarlintpc_1_1BiasedResidualsProcessor_ac324f082dc5e59a1693fb6262d0fda79}

\begin{DoxyCompactList}\small\item\em Maximum value in z histogram. \end{DoxyCompactList}\item 
bool {\bf \-\_\-apply\-Correction\-Factor}\label{classmarlintpc_1_1BiasedResidualsProcessor_a2bdbbd0b62f489124eb74f0c4eefdc20}

\begin{DoxyCompactList}\small\item\em Multiply residual with $sqrt{n / (n-dof)}$. \end{DoxyCompactList}\item 
int {\bf \-\_\-dof\-X\-Y}\label{classmarlintpc_1_1BiasedResidualsProcessor_a023904b886c8e521fdd5f1596617313b}

\begin{DoxyCompactList}\small\item\em Degrees of freedom in the X\-Y plane. \end{DoxyCompactList}\item 
float {\bf \-\_\-xr\-Min}\label{classmarlintpc_1_1BiasedResidualsProcessor_a502561a378093573bf6203a7794b3305}

\begin{DoxyCompactList}\small\item\em Minimal x or r for 2\-D histograms. \end{DoxyCompactList}\item 
float {\bf \-\_\-xr\-Max}\label{classmarlintpc_1_1BiasedResidualsProcessor_a94f1a9f58e71a1c7b95961e41090c1f8}

\begin{DoxyCompactList}\small\item\em Maximal x or r for 2\-D histograms. \end{DoxyCompactList}\item 
float {\bf \-\_\-yphi\-Min}\label{classmarlintpc_1_1BiasedResidualsProcessor_ade2a1f708f93c05026769cbdc210a8c6}

\begin{DoxyCompactList}\small\item\em Minimal y or phi for 2\-D histograms. \end{DoxyCompactList}\item 
float {\bf \-\_\-yphi\-Max}\label{classmarlintpc_1_1BiasedResidualsProcessor_a2e33b0bd95cae9913d3b5a363e265af8}

\begin{DoxyCompactList}\small\item\em Maximal y or phi for 2\-D histograms. \end{DoxyCompactList}\item 
bool {\bf \-\_\-force\-Cartesian}\label{classmarlintpc_1_1BiasedResidualsProcessor_a17c02396539fa04a389f1d675d97f5b1}

\begin{DoxyCompactList}\small\item\em Flag whether to force the histograms to cartesian values in case of polar T\-P\-C coordinates. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
Fill the residuals of the hits into an A\-I\-D\-A histogram. 

Remember that L\-C\-I\-O\-::\-T\-R\-B\-I\-T\-\_\-\-H\-I\-T\-S has to be set, so the hits are stored. If Apply\-Correction\-Factor is set the bias is corrected by $sqrt{n / (n-dof)}$, where dof is 2 for a straight line, 3 for a helix in xy, and 2 in z for all cases.

\subparagraph*{Input -\/ Prerequisites}

\begin{DoxyItemize}
\item A Collection of reconstructed tracks (L\-C\-I\-O\-::\-Track)\end{DoxyItemize}
\subparagraph*{Output}

\begin{DoxyItemize}
\item Histograms of the residuals in the xy-\/plane and in z\end{DoxyItemize}

\begin{DoxyParams}{Parameters}
{\em Input\-Trackes} & Name of input Tracks collection (default\-: T\-P\-C\-Tracks) \\
\hline
{\em Reference\-Track\-Relations\-Col\-Name} & (optional) Name of the collection with relations to reference tracks (M\-C truth or hodoscope) \\
\hline
{\em Histogram\-Min\-Value\-X\-Y} & Minimum value in xy histogram (default\-: -\/0.\-3 mm) \\
\hline
{\em Histogram\-Max\-Value\-X\-Y} & Maximal value in xy histogram (default\-: 0.\-3 mm) \\
\hline
{\em Histogram\-Min\-Value\-Z} & Minimum value in z histogram (default\-: -\/1.\-0 mm) \\
\hline
{\em Histogram\-Max\-Value\-Z} & Maximal value in z histogram (default\-: 1.\-0 mm)\\
\hline
{\em Apply\-Correction\-Factor} & Multiply residual with $sqrt{n / (n-dof)}$ (default\-: true)\par
 Attention\-: Turn the correction off when using reference tracks! \\
\hline
{\em Do\-F\-X\-Y} & Degrees of freedom in the X\-Y plane (2 for straight line, 3 for helix) (default\-: 3)\\
\hline
\end{DoxyParams}
\begin{DoxyAuthor}{Author}
Martin Killenberg, University of Bonn 
\end{DoxyAuthor}


\subsection{Member Function Documentation}
\index{marlintpc\-::\-Biased\-Residuals\-Processor@{marlintpc\-::\-Biased\-Residuals\-Processor}!process\-Event@{process\-Event}}
\index{process\-Event@{process\-Event}!marlintpc::BiasedResidualsProcessor@{marlintpc\-::\-Biased\-Residuals\-Processor}}
\subsubsection[{process\-Event}]{\setlength{\rightskip}{0pt plus 5cm}void marlintpc\-::\-Biased\-Residuals\-Processor\-::process\-Event (
\begin{DoxyParamCaption}
\item[{lcio\-::\-L\-C\-Event $\ast$}]{evt}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [virtual]}}\label{classmarlintpc_1_1BiasedResidualsProcessor_aebe4aae40c5d4b148ef705e7ff7a1ea3}
most overlapping hits 

References \-\_\-apply\-Correction\-Factor, \-\_\-dof\-X\-Y, \-\_\-force\-Cartesian, \-\_\-input\-Col\-Name, \-\_\-relations\-Col\-Name, \-\_\-residuals\-X\-Y\-\_\-vs\-\_\-xr, \-\_\-residuals\-X\-Y\-\_\-vs\-\_\-yphi, \-\_\-residuals\-X\-Y\-\_\-vs\-\_\-z, \-\_\-residuals\-X\-Y\-Histo, \-\_\-residuals\-Z\-\_\-vs\-\_\-xr, \-\_\-residuals\-Z\-\_\-vs\-\_\-yphi, \-\_\-residuals\-Z\-\_\-vs\-\_\-z, \-\_\-residuals\-Z\-Histo, marlintpc\-::\-Track\-Fitter\-Base\-::calculate\-Residuals(), marlintpc\-::\-Track\-Fitter\-Base\-::get\-Fitter\-Type\-From\-Track(), marlintpc\-::\-Track\-Fitter\-Factory\-::get\-Track\-Fitter(), and marlintpc\-::\-Track\-Fitter\-Base\-::\-Fitter\-Types\-::\-S\-I\-M\-P\-L\-E\-M\-I\-N\-I\-M\-I\-Z\-E\-R.



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