\section{Generic\-Viewer Class Reference}
\label{classGenericViewer}\index{Generic\-Viewer@{Generic\-Viewer}}


Viewer Processor \par
 This processor displays collections of L\-C\-I\-O objects, \par
 including Sim\-Calorimeter\-Hits, Sim\-Tracker\-Hits, \par
 Calorimeter\-Hits, Tracker\-Hits, reconstructed Tracks, \par
 reconstructed Clusters and reconstructed particle flow objects.  




{\ttfamily \#include $<$Generic\-Viewer.\-h$>$}

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

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

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

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

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

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

\end{DoxyCompactItemize}
\subsection*{Protected Member Functions}
\begin{DoxyCompactItemize}
\item 
int {\bfseries return\-Color} (int counter)\label{classGenericViewer_a45d3097709fc17658e074359592ebc32}

\end{DoxyCompactItemize}
\subsection*{Protected Attributes}
\begin{DoxyCompactItemize}
\item 
int {\bfseries \-\_\-n\-Run}\label{classGenericViewer_a2ee7f28d38da641108f2b1f5c3808c58}

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

\item 
std\-::vector$<$ std\-::string $>$ {\bfseries \-\_\-calo\-Hit\-Collections}\label{classGenericViewer_a57a1985b6d5523b5939874b46f082d0f}

\item 
std\-::vector$<$ std\-::string $>$ {\bfseries \-\_\-sim\-Calo\-Hit\-Collections}\label{classGenericViewer_a5e8b43d0cc81e1d2a461fcb7f3a251e8}

\item 
std\-::vector$<$ std\-::string $>$ {\bfseries \-\_\-tracker\-Hit\-Collections}\label{classGenericViewer_a9cb22d8daf97ad7dd59b6ca0fc1f4fee}

\item 
std\-::vector$<$ std\-::string $>$ {\bfseries \-\_\-sim\-Tracker\-Hit\-Collections}\label{classGenericViewer_a0fee6f0b7c6a94f601011252f390e7ef}

\item 
std\-::string {\bfseries \-\_\-true\-Clusters\-Collection}\label{classGenericViewer_a6a71d0dc3ec2ccb8369a36bc7a99dcf3}

\item 
std\-::string {\bfseries \-\_\-true\-Tracks\-Collection}\label{classGenericViewer_a7a90476df1c527b8329853df3d213ef3}

\item 
std\-::string {\bfseries \-\_\-clusters\-Collection}\label{classGenericViewer_ae3e77f8e9364b5482fb9cfab2dba10d1}

\item 
std\-::string {\bfseries \-\_\-tracks\-Collection}\label{classGenericViewer_a8256918a461adb9214d4c2cd8273b066}

\item 
std\-::string {\bfseries \-\_\-particle\-Collection}\label{classGenericViewer_afb370f519607fe234a362abe6fa03d85}

\item 
int {\bfseries \-\_\-layer\-Calo\-Hit}\label{classGenericViewer_a2663e74513359b8d6b2ed86f75acd733}

\item 
int {\bfseries \-\_\-layer\-Sim\-Calo\-Hit}\label{classGenericViewer_a4ea74dd28e721068ee3066c90038ae3f}

\item 
int {\bfseries \-\_\-layer\-Tracker\-Hit}\label{classGenericViewer_ac2c20f09cf4c917e56e11baf113b86b3}

\item 
int {\bfseries \-\_\-layer\-Sim\-Tracker\-Hit}\label{classGenericViewer_a26c744fec4e82f0d3e9de7eff5d2a07a}

\item 
int {\bfseries \-\_\-layer\-True\-Clusters}\label{classGenericViewer_a995f44c5952164c2e7a61339c7448f85}

\item 
int {\bfseries \-\_\-layer\-True\-Tracks}\label{classGenericViewer_a7a4894a36426a409cc50ee538db24fff}

\item 
int {\bfseries \-\_\-layer\-Clusters}\label{classGenericViewer_a3ef805c46f1cf6d72b39f4f619394c09}

\item 
int {\bfseries \-\_\-layer\-Tracks}\label{classGenericViewer_af3a574105d77919a6620ab7ce74bcff4}

\item 
int {\bfseries \-\_\-layer\-M\-C\-P}\label{classGenericViewer_ace55f89d354283999ccc49e5113fe6de}

\item 
int {\bfseries \-\_\-layer\-Bosons}\label{classGenericViewer_a265f84bfbfe19161a9f1f6e5e41a7f0e}

\item 
int {\bfseries \-\_\-layer\-Reco}\label{classGenericViewer_a6ff9bdc2b68acbf7c6a3bc759526e81b}

\item 
int {\bfseries \-\_\-det\-Model}\label{classGenericViewer_aba4a8d64e05cfccc3717ce9622a52b18}

\item 
int {\bfseries \-\_\-wait\-For\-Keyboard}\label{classGenericViewer_a3e747e07fbea3fce15d0832eed3248d7}

\item 
std\-::map$<$ M\-C\-Particle $\ast$, int $>$ {\bfseries \-\_\-mcp\-List}\label{classGenericViewer_a18981251f31d331d4a59043ca75e26da}

\item 
float {\bfseries \-\_\-b\-Field}\label{classGenericViewer_a53c0ed60dbb5e0e67867f0b876ccd64b}

\end{DoxyCompactItemize}


\subsection{Detailed Description}
Viewer Processor \par
 This processor displays collections of L\-C\-I\-O objects, \par
 including Sim\-Calorimeter\-Hits, Sim\-Tracker\-Hits, \par
 Calorimeter\-Hits, Tracker\-Hits, reconstructed Tracks, \par
 reconstructed Clusters and reconstructed particle flow objects. 

\par
 Display of a given collection is manipulated with numeric keys \par
 associated with toggle layers. \par
 Processor also draws wire-\/frame sketch of the detector. \par
 A current event is displayed in the window panel activated by C Event \par
 Display (C\-E\-D) program glced. You have to launch this program before \par
 starting Marlin. \par
 The user should specify the name of collections to be displayed \par
 via processor parameters described below. \par
 
\begin{DoxyParams}{Parameters}
{\em Sim\-Calo\-Hit\-Collections} & \-: names of Sim\-Calorimeter\-Hit collections to be displayed \par
 \\
\hline
{\em Layer\-Sim\-Calo\-Hit} & \-: toggle layer for Sim\-Calorimeter\-Hits \par
 \\
\hline
{\em Sim\-Tracker\-Hit\-Collections} & \-: Sim\-Tracker\-Hit collections to be displayed \par
 \\
\hline
{\em Layer\-Sim\-Tracker\-Hit} & \-: toggle layer for Sim\-Tracker\-Hits \par
 \\
\hline
{\em Calo\-Hit\-Collections} & \-: names of Calorimeter\-Hit collections to be displayed \par
 \\
\hline
{\em Layer\-Calo\-Hit} & \-: toggle layer for Calorimeter\-Hits \par
 \\
\hline
{\em Tracker\-Hit\-Collections} & \-: names of Tracker\-Hit collections to be displayed \par
 \\
\hline
{\em Layer\-Tracker\-Hit} & \-: toggle layer for Tracker\-Hits \par
 \\
\hline
{\em True\-Track\-Collection} & \-: True Monte Carlo track collection name to be displayed \par
 \\
\hline
{\em Layer\-True\-Tracks} & \-: toggle layer for True Monte Carlo tracks \par
 \\
\hline
{\em True\-Cluster\-Collection} & \-: name of true M\-C cluster collection to be displayed \par
 \\
\hline
{\em Layer\-True\-Clusters} & \-: toggle layer for true M\-C clusters \par
 \\
\hline
{\em Track\-Collection} & \-: name of reconstructed track collection collections to be displayed \par
 \\
\hline
{\em Layer\-Tracks} & \-: toggle layer for reconstructed tracks \par
 \\
\hline
{\em Cluster\-Collection} & \-: name of reconstructed Cluster collection to be displayed \par
 \\
\hline
{\em Layer\-Clusters} & \-: toggle layer for reconstructed clusters \par
 \\
\hline
{\em Particle\-Collection} & \-: name of reconstructed Particle collection to be displayed \par
 \\
\hline
{\em Layer\-Reco} & \-: toggle layer for reconstructed Particles \par
 \par
 If a layer toggle is set to -\/1, the corresponding collection is not displayed \par
 \par
 \\
\hline
{\em Detector\-Model} & \-: detector model \par
 0 -\/ L\-D\-C model (Mokka program, models D09, D10, D12) \par
 1 -\/ Si\-D model (S\-L\-I\-C program) \par
 2 -\/ G\-L\-D model (Jupiter program) \par
 \\
\hline
{\em Magnetic\-Field} & \-: Magnetic field in Tesla \par
 \\
\hline
{\em Wait\-For\-Keyboard} & \-: toggle to wait for keyboard input or not \par
 0 -\/ the \doxyref{Generic\-Viewer}{p.}{classGenericViewer} processor does not wait after the display of the current event \par
 1 -\/ the \doxyref{Generic\-Viewer}{p.}{classGenericViewer} processor waits for a keyboard (std) input after each event. This is the default. \par
\\
\hline
\end{DoxyParams}
\begin{DoxyAuthor}{Authors}
A.\-Raspereza (D\-E\-S\-Y), O.\-Wendt (D\-E\-S\-Y) 
\end{DoxyAuthor}
\begin{DoxyVersion}{Version}

\end{DoxyVersion}
\begin{DoxyParagraph}{Id\-:}
\doxyref{Generic\-Viewer.\-h}{p.}{GenericViewer_8h_source} 2304 2011-\/07-\/01 11\-:35\-:32\-Z gaede 
\end{DoxyParagraph}


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