\section{marlintpc\-:\-:Linear\-Geometric\-Mean\-Resolution\-Processor Class Reference}
\label{classmarlintpc_1_1LinearGeometricMeanResolutionProcessor}\index{marlintpc\-::\-Linear\-Geometric\-Mean\-Resolution\-Processor@{marlintpc\-::\-Linear\-Geometric\-Mean\-Resolution\-Processor}}


Resoltuion calculator for straight lines using the gemetric mean method.  




{\ttfamily \#include $<$Linear\-Geometric\-Mean\-Resolution\-Processor.\-h$>$}

Inheritance diagram for marlintpc\-:\-:Linear\-Geometric\-Mean\-Resolution\-Processor\-:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=1.681682cm]{classmarlintpc_1_1LinearGeometricMeanResolutionProcessor}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
virtual Processor $\ast$ {\bf new\-Processor} ()\label{classmarlintpc_1_1LinearGeometricMeanResolutionProcessor_aa6bc33ce8db0c7cffaff32006e63ab37}

\begin{DoxyCompactList}\small\item\em The \doxyref{new\-Processor()}{p.}{classmarlintpc_1_1LinearGeometricMeanResolutionProcessor_aa6bc33ce8db0c7cffaff32006e63ab37} function does not make sense for this template class, so it throws an {\ttfamily lcio\-::\-Exception}. \end{DoxyCompactList}\item 
virtual void {\bf init} ()\label{classmarlintpc_1_1LinearGeometricMeanResolutionProcessor_a9aa9769b71747bb8b2c9e4213cd32c92}

\begin{DoxyCompactList}\small\item\em Register the A\-I\-D\-A histograms at the A\-I\-D\-A\-Processor. \end{DoxyCompactList}\item 
virtual void {\bfseries process\-Run\-Header} (lcio\-::\-L\-C\-Run\-Header $\ast$run)\label{classmarlintpc_1_1LinearGeometricMeanResolutionProcessor_a16cfd2105660480d7dbdbc7c2d516bab}

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

\item 
virtual void {\bfseries check} (lcio\-::\-L\-C\-Event $\ast$evt)\label{classmarlintpc_1_1LinearGeometricMeanResolutionProcessor_aebc52b645b131bd14ef47230b659ebcb}

\item 
virtual void {\bfseries end} ()\label{classmarlintpc_1_1LinearGeometricMeanResolutionProcessor_ab1c31da9916ac7f373623eea44527d17}

\end{DoxyCompactItemize}
\subsection*{Static Public Member Functions}
\begin{DoxyCompactItemize}
\item 
static bool {\bfseries compare\-Hit} (const std\-::pair$<$ Tracker\-Hit $\ast$, double $>$ \&pair1, const std\-::pair$<$ Tracker\-Hit $\ast$, double $>$ \&pair2)\label{classmarlintpc_1_1LinearGeometricMeanResolutionProcessor_a9913fe71605ede54ebf116ec098c7d60}

\end{DoxyCompactItemize}
\subsection*{Protected Attributes}
\begin{DoxyCompactItemize}
\item 
std\-::string {\bf \-\_\-input\-Col\-Name}
\item 
int {\bf \-\_\-histo\-Bin}
\item 
float {\bf \-\_\-histo\-Range}
\item 
bool {\bf is\-First\-Collection}\label{classmarlintpc_1_1LinearGeometricMeanResolutionProcessor_a0445ff74b9fc180e20f7fb401d33c339}

\begin{DoxyCompactList}\small\item\em is true till the first output collection is wirten to an event used to to store parameters only in the first collection (also done, if collection is transient) \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Static Protected Attributes}
\begin{DoxyCompactItemize}
\item 
static const unsigned int {\bf \-\_\-histo\-Geo\-N\-Index} = 0\label{classmarlintpc_1_1LinearGeometricMeanResolutionProcessor_a856c5cbfaa119ee36f930e8648510892}

\begin{DoxyCompactList}\small\item\em The index of the template parameter for the hits\-Per\-Track histos We want to have these values divided into z bins. \end{DoxyCompactList}\item 
static const unsigned int {\bfseries \-\_\-histo\-Geo\-Nminus1\-Index} = 1\label{classmarlintpc_1_1LinearGeometricMeanResolutionProcessor_abc40ee2543636a18f0d4842f0a2e93c3}

\item 
static const unsigned int {\bfseries \-\_\-histo\-Geo\-Z\-N\-Index} = 2\label{classmarlintpc_1_1LinearGeometricMeanResolutionProcessor_ad11045b6c3f8cdf32f7acee20de577fe}

\item 
static const unsigned int {\bfseries \-\_\-histo\-Geo\-Z\-Nminus1\-Index} = 3\label{classmarlintpc_1_1LinearGeometricMeanResolutionProcessor_a038454dcf4d787ce6e6a5d2f515c2371}

\end{DoxyCompactItemize}
\subsection*{Additional Inherited Members}


\subsection{Detailed Description}
Resoltuion calculator for straight lines using the gemetric mean method. 

Determines the resolution via the geometric mean method. Only possible for straight line tracks!

\begin{DoxyRefDesc}{Todo}
\item[{\bf Todo}]Currently only the histograms are filled. The resolution propper has to be calculated manually.\end{DoxyRefDesc}


One can apply a cut in z direction. If this is used to create several z bins by using several instances of \doxyref{Hit\-And\-Track\-Charge\-Processor}{p.}{classmarlintpc_1_1HitAndTrackChargeProcessor} in the steering file, you have to apply unique names for Histo\-Geo\-N and Histo\-Geo\-Nminus1 for each instance.

\subparagraph*{Input -\/ Prerequisites}

\begin{DoxyItemize}
\item A collection of tracks (lcio\-::\-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.\end{DoxyItemize}
\subparagraph*{Output}

\begin{DoxyItemize}
\item Histograms with residual distribution including all hits (n) and leaving out the test hit (n-\/1)\end{DoxyItemize}

\begin{DoxyParams}{Parameters}
{\em Input\-Collection\-Name} & Name of input collection, Tracker\-Raw\-Data \\
\hline
{\em Apply\-Z\-Cut} & Flag whether to cut in z , default 0 \\
\hline
{\em Z\-Min} & Minimal\-: z value, default 0 mm \\
\hline
{\em Z\-Max} & Maximal\-: z value, default 100 mm \\
\hline
{\em Histo\-Geo\-N\-Name} & Name of the histogramm with all hits in the track fit , default histo\-Geo\-N \\
\hline
{\em Histo\-Geo\-Nminus1\-Name} & Name of the histogramm with n -\/1 hits in the track fit, default\\
\hline
{\em Histo\-Range} & Histograms will have range (-\/\-\_\-histo\-Range, \-\_\-histo\-Range), default \-\_\-histo\-Range = 1mm \\
\hline
{\em Histo\-Bin} & Histograms will be binned with \-\_\-histo\-Bin, default \-\_\-histo\-Bin = 100 \\
\hline
{\em Display\-All\-Events} & Flag whether a Event Display shall be created in any Case \\
\hline
{\em Histo\-Geo\-Z\-N\-Name} & Name of the histogramm with all hits in the track fit \\
\hline
{\em Histo\-Geo\-Z\-Nminus1\-Name} & Name of the histogramm with n -\/1 hits in the track fit \\
\hline
{\em trans\-Diff} & transverse Diffusion coefficent mu per sqrt(cm) \\
\hline
{\em long\-Diff} & longitudinal Diffusion coefficent mu per sqrt(cm)\\
\hline
\end{DoxyParams}
\begin{DoxyAuthor}{Author}
Simone Zimmermann (with changes by C.\-Brezina) 
\end{DoxyAuthor}


\subsection{Member Data Documentation}
\index{marlintpc\-::\-Linear\-Geometric\-Mean\-Resolution\-Processor@{marlintpc\-::\-Linear\-Geometric\-Mean\-Resolution\-Processor}!\-\_\-histo\-Bin@{\-\_\-histo\-Bin}}
\index{\-\_\-histo\-Bin@{\-\_\-histo\-Bin}!marlintpc::LinearGeometricMeanResolutionProcessor@{marlintpc\-::\-Linear\-Geometric\-Mean\-Resolution\-Processor}}
\subsubsection[{\-\_\-histo\-Bin}]{\setlength{\rightskip}{0pt plus 5cm}int marlintpc\-::\-Linear\-Geometric\-Mean\-Resolution\-Processor\-::\-\_\-histo\-Bin\hspace{0.3cm}{\ttfamily [protected]}}\label{classmarlintpc_1_1LinearGeometricMeanResolutionProcessor_a8a371ae5fb5f42c31a23dc7a2ade9bf7}

\begin{DoxyItemize}
\item binning of histograms 
\end{DoxyItemize}\index{marlintpc\-::\-Linear\-Geometric\-Mean\-Resolution\-Processor@{marlintpc\-::\-Linear\-Geometric\-Mean\-Resolution\-Processor}!\-\_\-histo\-Range@{\-\_\-histo\-Range}}
\index{\-\_\-histo\-Range@{\-\_\-histo\-Range}!marlintpc::LinearGeometricMeanResolutionProcessor@{marlintpc\-::\-Linear\-Geometric\-Mean\-Resolution\-Processor}}
\subsubsection[{\-\_\-histo\-Range}]{\setlength{\rightskip}{0pt plus 5cm}float marlintpc\-::\-Linear\-Geometric\-Mean\-Resolution\-Processor\-::\-\_\-histo\-Range\hspace{0.3cm}{\ttfamily [protected]}}\label{classmarlintpc_1_1LinearGeometricMeanResolutionProcessor_ae9b4630169dc11ada156b9eacc44fee6}

\begin{DoxyItemize}
\item range of histograms 
\end{DoxyItemize}\index{marlintpc\-::\-Linear\-Geometric\-Mean\-Resolution\-Processor@{marlintpc\-::\-Linear\-Geometric\-Mean\-Resolution\-Processor}!\-\_\-input\-Col\-Name@{\-\_\-input\-Col\-Name}}
\index{\-\_\-input\-Col\-Name@{\-\_\-input\-Col\-Name}!marlintpc::LinearGeometricMeanResolutionProcessor@{marlintpc\-::\-Linear\-Geometric\-Mean\-Resolution\-Processor}}
\subsubsection[{\-\_\-input\-Col\-Name}]{\setlength{\rightskip}{0pt plus 5cm}std\-::string marlintpc\-::\-Linear\-Geometric\-Mean\-Resolution\-Processor\-::\-\_\-input\-Col\-Name\hspace{0.3cm}{\ttfamily [protected]}}\label{classmarlintpc_1_1LinearGeometricMeanResolutionProcessor_a3d3a597986cf73d355890db50d923651}

\begin{DoxyItemize}
\item the name of the input collection 
\end{DoxyItemize}

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