\section{marlintpc\-:\-:Pad\-Response\-Processor Class Reference}
\label{classmarlintpc_1_1PadResponseProcessor}\index{marlintpc\-::\-Pad\-Response\-Processor@{marlintpc\-::\-Pad\-Response\-Processor}}


Fills residulas of hits in 2\-D histograms against three different values\-:  




{\ttfamily \#include $<$Pad\-Response\-Processor.\-h$>$}

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

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

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

\item 
virtual void {\bf process\-Event} (lcio\-::\-L\-C\-Event $\ast$evt)
\item 
virtual void {\bfseries end} ()\label{classmarlintpc_1_1PadResponseProcessor_a79e6fbb99845e59736c4f00365f72547}

\end{DoxyCompactItemize}
\subsection*{Protected Attributes}
\begin{DoxyCompactItemize}
\item 
std\-::string {\bf \-\_\-input\-Col\-Name}\label{classmarlintpc_1_1PadResponseProcessor_a581dfbc7b9e75ddd05a15458e8e4014a}

\begin{DoxyCompactList}\small\item\em the name of the input collection \end{DoxyCompactList}\item 
std\-::string {\bf \-\_\-mc\-Truth\-Relations\-Col\-Name}\label{classmarlintpc_1_1PadResponseProcessor_a1b2d20655d739894e39eafd9e1dbf820}

\begin{DoxyCompactList}\small\item\em the name of the collection to the M\-C truth \end{DoxyCompactList}\item 
A\-I\-D\-A\-::\-I\-Histogram2\-D $\ast$ {\bf \-\_\-residuals\-\_\-vs\-\_\-position\-\_\-on\-\_\-pad}\label{classmarlintpc_1_1PadResponseProcessor_aa22d573eea69da32c56a0b2f7c2d4da3}

\begin{DoxyCompactList}\small\item\em the residuals versus the distance to pad centre (in units of pad width) \end{DoxyCompactList}\item 
A\-I\-D\-A\-::\-I\-Histogram2\-D $\ast$ {\bf \-\_\-residuals\-\_\-vs\-\_\-variance}\label{classmarlintpc_1_1PadResponseProcessor_a30148c896e4a46d6691fa4318d5f89b3}

\begin{DoxyCompactList}\small\item\em the residuals versus the variance of the charge distribution along the pad row \end{DoxyCompactList}\item 
A\-I\-D\-A\-::\-I\-Histogram2\-D $\ast$ {\bf \-\_\-residuals\-\_\-vs\-\_\-skewness}\label{classmarlintpc_1_1PadResponseProcessor_a4ba65f0eebcaec995aa281f6baee7ad6}

\begin{DoxyCompactList}\small\item\em the residuals versus the distance to pad centre (in units of pad width) \end{DoxyCompactList}\item 
std\-::list$<$ std\-::pair$<$ double, \\*
double $>$ $>$ {\bfseries \-\_\-skewness\-Residuals\-List}\label{classmarlintpc_1_1PadResponseProcessor_abb329d691cc71c97e8cdd62d175fec1b}

\item 
float {\bf \-\_\-residual\-Min\-Value}\label{classmarlintpc_1_1PadResponseProcessor_a7f5588dffe9b4a69d09fd49a5d65aea9}

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

\begin{DoxyCompactList}\small\item\em Maximum residual value in histogram. \end{DoxyCompactList}\item 
float {\bf \-\_\-skewness\-Min\-Value}\label{classmarlintpc_1_1PadResponseProcessor_a3eacdf464c422694eb06a2f9bfb5b3b7}

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

\begin{DoxyCompactList}\small\item\em Maximum skewness value in histogram. \end{DoxyCompactList}\item 
float {\bf \-\_\-variance\-Max\-Value}\label{classmarlintpc_1_1PadResponseProcessor_a8dc97bfb7cde447b1f3dd2203af51ec6}

\begin{DoxyCompactList}\small\item\em Maximum variance value in histogram. \end{DoxyCompactList}\item 
int {\bfseries \-\_\-n\-Pad\-Row\-Histos}\label{classmarlintpc_1_1PadResponseProcessor_af69d17d180217da0853c44d4cb4aa79a}

\item 
std\-::vector$<$ A\-I\-D\-A\-::\-I\-Histogram2\-D $\ast$ $>$ {\bfseries \-\_\-pad\-Row\-Histos}\label{classmarlintpc_1_1PadResponseProcessor_af5e88d2ec33d7575cd49a3a7dcd637ca}

\end{DoxyCompactItemize}


\subsection{Detailed Description}
Fills residulas of hits in 2\-D histograms against three different values\-: 

\begin{DoxyItemize}
\item Position on the pad (pad response) \item Variance of the charge distribution \item Skewness of the charge distribution\end{DoxyItemize}
In case of a gaussian charge distribution a linear dependency of the residuals on the skewness is expected. The end() method calculates a and b of the relation residual = a $\ast$ skewness + b\par
 As all the output files are already closed (or not accessible) at this point the result is dumped on the console.

\subparagraph*{Input -\/ Prerequisites}

\begin{DoxyItemize}
\item A collection of reconstructed tracks (L\-C\-I\-O\-::\-Track)\par
 Remember that L\-C\-I\-O\-::\-T\-R\-B\-I\-T\-\_\-\-H\-I\-T\-S has to be set, so the hits are stored. \item An L\-C\-Relation collection to M\-C\-Truth tracks (optional)\par
 If the relation to tracks with true parameters exists the track (helix) parameters to calculate the residuals are taken from there instead from the reconstructed track. Also works e. g. for reference tracks from a hodoscope.\end{DoxyItemize}

\begin{DoxyParams}{Parameters}
{\em Input\-Trackes} & Name of input Tracks collection (default\-: T\-P\-C\-Tracks) \\
\hline
{\em M\-C\-Truth\-Relation\-Col\-Name} & (optional) Name of the collection with relations to the M\-C truth \\
\hline
{\em Residual\-Min\-Value} & Minimum residual value histogram (default\-: -\/0.\-3 mm) \\
\hline
{\em Residual\-Max\-Value} & Maximal residual value histogram (default\-: 0.\-3 mm) \\
\hline
{\em Skewness\-Min\-Value} & Minimum skewness value histogram (default\-: -\/1 ) \\
\hline
{\em Skewness\-Max\-Value} & Maximum skewness value histogram (default\-: 1 ) \\
\hline
{\em Variance\-Max\-Value} & Maxnimum variance value histogram (default\-: 0.\-5 ) \\
\hline
{\em N\-Pad\-Row\-Histos} & Number of pad rows for which an individual histo should be created (default\-: 0 )\\
\hline
\end{DoxyParams}
\begin{DoxyAuthor}{Author}
Martin Killenberg, C\-E\-R\-N 
\end{DoxyAuthor}


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

References \-\_\-input\-Col\-Name, \-\_\-mc\-Truth\-Relations\-Col\-Name, \-\_\-residual\-Max\-Value, \-\_\-residual\-Min\-Value, \-\_\-residuals\-\_\-vs\-\_\-position\-\_\-on\-\_\-pad, \-\_\-residuals\-\_\-vs\-\_\-skewness, \-\_\-residuals\-\_\-vs\-\_\-variance, \-\_\-skewness\-Max\-Value, \-\_\-skewness\-Min\-Value, 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 
Pad\-Response\-Processor.\-h\item 
Pad\-Response\-Processor.\-cc\end{DoxyCompactItemize}
