\section{Calc\-Tracker\-Hit\-Residuals Class Reference}
\label{classCalcTrackerHitResiduals}\index{Calc\-Tracker\-Hit\-Residuals@{Calc\-Tracker\-Hit\-Residuals}}


Set the L\-C\-I\-O Extensions to relate Sim\-Tracker\-Hits to Tracker\-Hits via a pointer.  




{\ttfamily \#include $<$Calc\-Tracker\-Hit\-Residuals.\-h$>$}

Inheritance diagram for Calc\-Tracker\-Hit\-Residuals\-:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2.000000cm]{classCalcTrackerHitResiduals}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
virtual marlin\-::\-Processor $\ast$ {\bfseries new\-Processor} ()\label{classCalcTrackerHitResiduals_a36d22387ea72211680dfefc3fa699b03}

\item 
virtual void {\bf init} ()
\begin{DoxyCompactList}\small\item\em Called at the begin of the job before anything is read. \end{DoxyCompactList}\item 
virtual void {\bf process\-Run\-Header} (L\-C\-Run\-Header $\ast$run)\label{classCalcTrackerHitResiduals_a97600e9dcabc7df22e7b69bf820cc57e}

\begin{DoxyCompactList}\small\item\em Called for every run. \end{DoxyCompactList}\item 
virtual void {\bf process\-Event} (L\-C\-Event $\ast$evt)\label{classCalcTrackerHitResiduals_a56b9bcd51fd041279cfcafca9b8bce63}

\begin{DoxyCompactList}\small\item\em Called for every event -\/ the working horse. \end{DoxyCompactList}\item 
virtual void {\bfseries check} (L\-C\-Event $\ast$evt)\label{classCalcTrackerHitResiduals_a268be4dbd9d04b11be1856d67d65673e}

\item 
virtual void {\bf end} ()\label{classCalcTrackerHitResiduals_a0505dbb69c132941e44f4d7e99af5528}

\begin{DoxyCompactList}\small\item\em Called after data processing for clean up. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Protected Member Functions}
\begin{DoxyCompactItemize}
\item 
void {\bfseries create\-Histogram\-Buffers} ()\label{classCalcTrackerHitResiduals_a91c1385588cc00631a2c2cd420e59d45}

\item 
void {\bfseries fill\-\_\-histo} (const std\-::string \&name, float value)\label{classCalcTrackerHitResiduals_aa9a11bb8091808e93987bd41697ad4cb}

\item 
void {\bfseries write\-\_\-buffer\-\_\-to\-\_\-histo} (std\-::map$<$ std\-::string, std\-::list$<$ float $>$ $\ast$ $>$\-::iterator it\-\_\-buffer)\label{classCalcTrackerHitResiduals_a5a92cb0ad045943523beb09efedf86cb}

\item 
const L\-C\-Object\-Vec $\ast$ {\bfseries get\-Sim\-Hits} (Tracker\-Hit $\ast$trkhit, const Float\-Vec $\ast$weights=N\-U\-L\-L)\label{classCalcTrackerHitResiduals_afcc1899d3b30f21e94203076a9683145}

\item 
int {\bfseries get\-Detector\-I\-D} (Tracker\-Hit $\ast$hit)\label{classCalcTrackerHitResiduals_a86ef83b9632a9b24cf7c80d5af23c07d}

\item 
int {\bfseries get\-Side\-I\-D} (Tracker\-Hit $\ast$hit)\label{classCalcTrackerHitResiduals_ae792722431d954d2ea8d6fb16fdba985}

\item 
int {\bfseries get\-Layer\-I\-D} (Tracker\-Hit $\ast$hit)\label{classCalcTrackerHitResiduals_a52f5455b3a229bc8235dbb61707d038d}

\item 
int {\bfseries get\-Module\-I\-D} (Tracker\-Hit $\ast$hit)\label{classCalcTrackerHitResiduals_a4068e729d939973fcebb7f677d6bbb0c}

\item 
int {\bfseries get\-Sensor\-I\-D} (Tracker\-Hit $\ast$hit)\label{classCalcTrackerHitResiduals_a8e50e00b35501113c8bebdd8f2825b36}

\item 
L\-C\-Collection $\ast$ {\bf Get\-Collection} (L\-C\-Event $\ast$evt, std\-::string col\-Name)\label{classCalcTrackerHitResiduals_a87a6de9106d041238f01b342e26047a8}

\begin{DoxyCompactList}\small\item\em helper function to get collection using try catch block \end{DoxyCompactList}\item 
L\-C\-Relation\-Navigator $\ast$ {\bf Get\-Relations} (L\-C\-Event $\ast$evt, std\-::string Rel\-Name)\label{classCalcTrackerHitResiduals_af52a6479e1e3c7cb5f024c84d3bd3bb5}

\begin{DoxyCompactList}\small\item\em helper function to get relations using try catch block \end{DoxyCompactList}\item 
void {\bf Setup\-Input\-Collections} (L\-C\-Event $\ast$evt)\label{classCalcTrackerHitResiduals_a829d24415d213a3acfad595ab3c7a340}

\begin{DoxyCompactList}\small\item\em sets up the different collections \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Protected Attributes}
\begin{DoxyCompactItemize}
\item 
U\-T\-I\-L\-::\-Bit\-Field64 $\ast$ {\bfseries \-\_\-encoder}\label{classCalcTrackerHitResiduals_a1faac0485146abbdf6da8218a07da1c8}

\item 
std\-::vector$<$ std\-::string $>$ {\bf \-\_\-col\-Names\-Tracker\-Hits}\label{classCalcTrackerHitResiduals_ae311f53901c20b314aeb039c099f20b5}

\begin{DoxyCompactList}\small\item\em input Tracker\-Hit collections \end{DoxyCompactList}\item 
std\-::vector$<$ std\-::string $>$ {\bf \-\_\-col\-Names\-Tracker\-Hit\-Relations}\label{classCalcTrackerHitResiduals_aa6422a1edc81bf8d51cda02aa20607ae}

\begin{DoxyCompactList}\small\item\em input relation collections \end{DoxyCompactList}\item 
int {\bfseries \-\_\-n\-\_\-run}\label{classCalcTrackerHitResiduals_a710cbe9cc0c3b863fefc49ffb2153ab7}

\item 
int {\bfseries \-\_\-n\-\_\-evt}\label{classCalcTrackerHitResiduals_a36424b33e9a11cedca02f08aec815f25}

\item 
int {\bfseries \-\_\-current\-\_\-evt\-\_\-number}\label{classCalcTrackerHitResiduals_a6533ce3a1ba3fa4e86a56363f9728709}

\item 
std\-::vector$<$ L\-C\-Collection $\ast$ $>$ {\bfseries \-\_\-col\-Tracker\-Hits}\label{classCalcTrackerHitResiduals_a4129c2eb625b387f89df5fd20d7f1748}

\item 
std\-::vector\\*
$<$ L\-C\-Relation\-Navigator $\ast$ $>$ {\bfseries \-\_\-nav\-Tracker\-Hit\-Rel}\label{classCalcTrackerHitResiduals_a0c323fd669e1aaccb1546e55a1d3bea5}

\item 
T\-File $\ast$ {\bfseries \-\_\-root\-\_\-file}\label{classCalcTrackerHitResiduals_ad6045561136e310cc1430f03a0d2396f}

\item 
std\-::map$<$ std\-::string, T\-H1\-F $\ast$ $>$ {\bfseries \-\_\-histo\-\_\-map}\label{classCalcTrackerHitResiduals_a26f38cdcfec7fc163a6e4f63197fa5b4}

\item 
std\-::map$<$ std\-::string, T\-H1\-F $\ast$ $>$\\*
\-::iterator {\bfseries \-\_\-histo\-\_\-map\-\_\-it}\label{classCalcTrackerHitResiduals_a3179562b03f8732bf2ff6b9b64352ae7}

\item 
std\-::map$<$ std\-::string, \\*
std\-::list$<$ float $>$ $\ast$ $>$ {\bfseries \-\_\-histo\-\_\-buffer\-\_\-map}\label{classCalcTrackerHitResiduals_a836419991db723fadcaaec7031127aa5}

\end{DoxyCompactItemize}


\subsection{Detailed Description}
Set the L\-C\-I\-O Extensions to relate Sim\-Tracker\-Hits to Tracker\-Hits via a pointer. 

\subparagraph*{Input -\/ Prerequisites}

Needs a collections of L\-C\-I\-O Tracker\-Hits.


\begin{DoxyParams}{Parameters}
{\em Tracker\-Hits\-Input\-Collections} & Name of the tracker hit input collections \par
 (default value\-: F\-T\-D\-Tracker\-Hits S\-I\-T\-Tracker\-Hits T\-P\-C\-Tracker\-Hits V\-X\-D\-Tracker\-Hits )\\
\hline
{\em Tracker\-Hits\-Rel\-Input\-Collections} & Name of the lcrelation collections, that link the Tracker\-Hits to their Sim\-Tracker\-Hits. Have to be in same order as Tracker\-Hits\-Input\-Collections!!! \par
 (default value\-: F\-T\-D\-Tracker\-Hit\-Relations S\-I\-T\-Tracker\-Hit\-Relations T\-P\-C\-Tracker\-Hit\-Relations V\-X\-D\-Tracker\-Hit\-Relations )\\
\hline
\end{DoxyParams}
\begin{DoxyAuthor}{Author}
S. J. Aplin, D\-E\-S\-Y 
\end{DoxyAuthor}


\subsection{Member Function Documentation}
\index{Calc\-Tracker\-Hit\-Residuals@{Calc\-Tracker\-Hit\-Residuals}!init@{init}}
\index{init@{init}!CalcTrackerHitResiduals@{Calc\-Tracker\-Hit\-Residuals}}
\subsubsection[{init}]{\setlength{\rightskip}{0pt plus 5cm}void Calc\-Tracker\-Hit\-Residuals\-::init (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [virtual]}}\label{classCalcTrackerHitResiduals_ab12684b28d008dcffbdca8c3b6ef76c3}


Called at the begin of the job before anything is read. 

Use to initialize the processor, e.\-g. book histograms. Write histogram to file 

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