\section{V\-T\-X\-Digi\-Processor Class Reference}
\label{classVTXDigiProcessor}\index{V\-T\-X\-Digi\-Processor@{V\-T\-X\-Digi\-Processor}}


======= \doxyref{V\-T\-X\-Digi\-Processor}{p.}{classVTXDigiProcessor} ========== \par
 Produces S\-I\-T \& V\-T\-X Tracker\-Hit collection from Sim\-Tracker\-Hit collections.  




{\ttfamily \#include $<$V\-T\-X\-Digi\-Processor.\-h$>$}

Inheritance diagram for V\-T\-X\-Digi\-Processor\-:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2.000000cm]{classVTXDigiProcessor}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
virtual Processor $\ast$ {\bfseries new\-Processor} ()\label{classVTXDigiProcessor_ae361d5d1b32fd977aa7ca135e916b725}

\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{classVTXDigiProcessor_a72db0783f56e0a49b83d0ebf44946fcb}

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

\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{classVTXDigiProcessor_a568622c9f3190015257847aa730c6285}

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

\begin{DoxyCompactList}\small\item\em Called after data processing for clean up. \end{DoxyCompactList}\item 
double {\bfseries correct\-Phi\-Range} (double Phi) const \label{classVTXDigiProcessor_a3934420523f162d4f3c2389945533735}

\end{DoxyCompactItemize}
\subsection*{Protected Attributes}
\begin{DoxyCompactItemize}
\item 
std\-::string {\bfseries \-\_\-col\-Name\-V\-T\-X}\label{classVTXDigiProcessor_ae678a8613f11a99a6c679bf7c2dafc71}

\item 
std\-::string {\bfseries \-\_\-col\-Name\-S\-I\-T}\label{classVTXDigiProcessor_a77a43205f8303a72f022deafe99ea952}

\item 
std\-::string {\bfseries \-\_\-col\-Name\-S\-E\-T}\label{classVTXDigiProcessor_aa851f721f9f1291c8d140aa69ddd20ae}

\item 
std\-::string {\bfseries \-\_\-out\-Col\-Name\-V\-T\-X}\label{classVTXDigiProcessor_adc9141f016aa69b2961f986e791a73c9}

\item 
std\-::string {\bfseries \-\_\-out\-Col\-Name\-S\-I\-T}\label{classVTXDigiProcessor_a3fefb46255d998fa957cca31a4447c90}

\item 
std\-::string {\bfseries \-\_\-out\-Col\-Name\-S\-E\-T}\label{classVTXDigiProcessor_aa53f57af5d1037cc0852fd10120a4600}

\item 
std\-::vector$<$ int $>$ {\bfseries \-\_\-active\-S\-E\-T\-Layers}\label{classVTXDigiProcessor_a98949d728c88deabb54b54ad0ddf5412}

\item 
int {\bfseries \-\_\-n\-Run}\label{classVTXDigiProcessor_a53decb9928164caed91746e07aca05f8}

\item 
int {\bfseries \-\_\-n\-Evt}\label{classVTXDigiProcessor_ac747abd059c2047f5878e690cc92f8bb}

\item 
int {\bfseries \-\_\-smear\-Along\-Ladders}\label{classVTXDigiProcessor_af6262fe2eef847d351d0ed6f82bec653}

\item 
int {\bfseries \-\_\-debug}\label{classVTXDigiProcessor_a48abed7fbda09d339a0b1ca44c7429cd}

\item 
int {\bfseries \-\_\-remove\-D\-Rays}\label{classVTXDigiProcessor_a57193a2773206a9005002a50e431eeae}

\item 
float {\bfseries \-\_\-point\-Reso\-R\-Phi}\label{classVTXDigiProcessor_ab4a96b2ac2eebdb4e298a1c1b71b0967}

\item 
float {\bfseries \-\_\-point\-Reso\-R\-Phi\-\_\-\-V\-T\-X}\label{classVTXDigiProcessor_a668fc5ae4b8f3d4c0bb2a89b71c77f5f}

\item 
float {\bfseries \-\_\-point\-Reso\-R\-Phi\-\_\-\-S\-I\-T}\label{classVTXDigiProcessor_abcd4f320ab57e34c0cc172f7f59d6486}

\item 
float {\bfseries \-\_\-point\-Reso\-R\-Phi\-\_\-\-S\-E\-T}\label{classVTXDigiProcessor_a16716e17d948f99da7f5aa0af21e8ee2}

\item 
float {\bfseries \-\_\-point\-Reso\-Z}\label{classVTXDigiProcessor_ac1a342ef033ea424d8000f1c565c91fd}

\item 
float {\bfseries \-\_\-point\-Reso\-Z\-\_\-\-V\-T\-X}\label{classVTXDigiProcessor_a3f3c1034692b83660ddbea6e27a7f9f8}

\item 
float {\bfseries \-\_\-point\-Reso\-Z\-\_\-\-S\-I\-T}\label{classVTXDigiProcessor_a99be3269fd6af1424cce8ddc8c52eabd}

\item 
float {\bfseries \-\_\-point\-Reso\-Z\-\_\-\-S\-E\-T}\label{classVTXDigiProcessor_ace9f10318db7c5fb2a7c027a512b7081}

\item 
float {\bfseries \-\_\-mom\-Cut}\label{classVTXDigiProcessor_afd698d5c63d81c40dda43fcc3117dd1d}

\item 
Float\-Vec {\bfseries \-\_\-vxd\-Eff}\label{classVTXDigiProcessor_a1036814ec362117939c7756b8e41557f}

\item 
std\-::vector$<$ std\-::pair$<$ long, \\*
long $>$ $>$ {\bfseries \-\_\-vxd\-Count}\label{classVTXDigiProcessor_a253d8191267bb45f0ce3c4705a0c8e73}

\item 
gsl\-\_\-rng $\ast$ {\bfseries \-\_\-rng}\label{classVTXDigiProcessor_a3123c6e0452f07841105c415663d2ec3}

\end{DoxyCompactItemize}


\subsection{Detailed Description}
======= \doxyref{V\-T\-X\-Digi\-Processor}{p.}{classVTXDigiProcessor} ========== \par
 Produces S\-I\-T \& V\-T\-X Tracker\-Hit collection from Sim\-Tracker\-Hit collections. 

\par
 The positions of \char`\"{}digitized\char`\"{} Tracker\-Hits are obtained by gaussian smearing positions of Sim\-Tracker\-Hits in r-\/phi and z according to the specified point resolutions. Each created Tracker\-Hit is assigned the type via method Tracker\-Hit\-Impl\-::set\-Type(int type). The Tracker\-Hit type is encoded in the following way \-: \par
 type = 100 + layer\-\_\-index\-\_\-vtx for vertex hits (layer\-\_\-index\-\_\-vtx = 1...5) \par
 type = 400 + layer\-\_\-index\-\_\-sit for S\-I\-T hits (layer\-\_\-index\-\_\-sit = 1,2) \par
 To access this type use method Tracker\-Hit\-::get\-Type() \par
 \subparagraph*{Input collections and prerequisites}

Processor requires collections of Sim\-Tracker\-Hits in vertex detector and S\-I\-T \par
 \subparagraph*{Output}

Processor produces collection of digitized Tracker\-Hits in the vertex detector and S\-I\-T \par
 
\begin{DoxyParams}{Parameters}
{\em V\-T\-X\-Collection\-Name} & The name of input collection of V\-T\-X Sim\-Tracker\-Hits \par
 (default name vxd00\-\_\-\-V\-X\-D) \par
 \\
\hline
{\em S\-I\-T\-Collection\-Name} & The name of input collection of S\-I\-T Sim\-Tracker\-Hits \par
 (default name sit00\-\_\-\-S\-I\-T) \par
 \\
\hline
{\em V\-T\-X\-Hit\-Collection} & The name of output collection of digitized V\-T\-X Tracker\-Hits \par
 (default name V\-T\-X\-Tracker\-Hits) \par
 \\
\hline
{\em S\-I\-T\-Hit\-Collection} & The name of output collection of digitized S\-I\-T Tracker\-Hits \par
 (default name S\-I\-T\-Tracker\-Hits) \par
 \\
\hline
{\em Point\-Resolution\-R\-Phi\-\_\-\-V\-T\-X} & Point resolution in r-\/phi for the vertex detector (in mm) \par
 (default value 0.\-004) \par
 \\
\hline
{\em Point\-Resolution\-Z\-\_\-\-V\-T\-X} & Point resolution in z for the vertex detector (in mm) \par
 (default value 0.\-004) \par
 \\
\hline
{\em Hit\-Efficiency\-Per\-Layer\-\_\-\-V\-T\-X} & hit efficiencies per layer in the V\-T\-X\par
 (default value 1. 1. 1. 1. 1. 1.) \par
 \\
\hline
{\em Point\-Resolution\-R\-Phi\-\_\-\-S\-I\-T} & Point resolution in r-\/phi for S\-I\-T (in mm) \par
 (default value 0.\-01) \par
 \\
\hline
{\em Point\-Resolution\-Z\-\_\-\-S\-I\-T} & Point resolution in z for S\-I\-T (in mm) \par
 (default value 0.\-01) \par
 \\
\hline
{\em Remove\-Drays} & When this flag is set to 1 hits produced by delta-\/electrons are removed from output collections \par
 (default value 0) \par
 \\
\hline
{\em Momentum\-Cut\-For\-D\-Rays} & The upper cut on delta-\/electron momentum (in Me\-V) \par
 (default value 10) \par
 \\
\hline
{\em Debug} & When this flag is set to one, debugging regime is enabled with a lot of printouts \par
 (default value is 0) \par
 \par
\\
\hline
\end{DoxyParams}
F.\-Gaede\-: 2008-\/11-\/28 added parameter Active\-S\-E\-T\-Layers\-: only S\-E\-T hits from these layers will be digitized -\/$>$ used to mimic the stereo layers strip detectors (eg. use only hits from layer 1 )

\begin{DoxyAuthor}{Author}
A. Raspereza, M\-P\-I (Munich) 
\end{DoxyAuthor}


\subsection{Member Function Documentation}
\index{V\-T\-X\-Digi\-Processor@{V\-T\-X\-Digi\-Processor}!init@{init}}
\index{init@{init}!VTXDigiProcessor@{V\-T\-X\-Digi\-Processor}}
\subsubsection[{init}]{\setlength{\rightskip}{0pt plus 5cm}virtual void V\-T\-X\-Digi\-Processor\-::init (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [virtual]}}\label{classVTXDigiProcessor_a15db9ac53be70ca8afdf42c79649ae6f}


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

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

The documentation for this class was generated from the following file\-:\begin{DoxyCompactItemize}
\item 
V\-T\-X\-Digi\-Processor.\-h\end{DoxyCompactItemize}
