\section{D\-S\-T\-Viewer Class Reference}
\label{classDSTViewer}\index{D\-S\-T\-Viewer@{D\-S\-T\-Viewer}}


\doxyref{D\-S\-T\-Viewer}{p.}{classDSTViewer} \par
 This processor displays ....  




{\ttfamily \#include $<$D\-S\-T\-Viewer.\-h$>$}

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

\item 
{\bf D\-S\-T\-Viewer} ()\label{classDSTViewer_aa012a7e4bc4a15d7ca49aabe9cb0f3e9}

\begin{DoxyCompactList}\small\item\em \doxyref{D\-S\-T\-Viewer}{p.}{classDSTViewer} description. \end{DoxyCompactList}\item 
virtual void {\bf init} ()\label{classDSTViewer_a36336bd41e5dc9858bd7cbab3f00973b}

\begin{DoxyCompactList}\small\item\em \doxyref{D\-S\-T\-Viewer}{p.}{classDSTViewer} initialise. \end{DoxyCompactList}\item 
virtual void {\bf process\-Run\-Header} (L\-C\-Run\-Header $\ast$run)\label{classDSTViewer_a715e8bc253aa421cd2b0e5060974e7fc}

\begin{DoxyCompactList}\small\item\em Process run header (?) \end{DoxyCompactList}\item 
virtual void {\bf process\-Event} (L\-C\-Event $\ast$evt)
\begin{DoxyCompactList}\small\item\em Main function process\-Event. \end{DoxyCompactList}\item 
virtual void {\bfseries check} (L\-C\-Event $\ast$evt)\label{classDSTViewer_a59a71443ce45a9104f2e245052adb80e}

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

\end{DoxyCompactItemize}
\subsection*{Protected Member Functions}
\begin{DoxyCompactItemize}
\item 
int {\bf return\-Track\-Color} (int type)\label{classDSTViewer_a90dbc5805511fac3af1bb33880609816}

\begin{DoxyCompactList}\small\item\em P\-R\-E\-L\-I\-M. \end{DoxyCompactList}\item 
int {\bf return\-Cluster\-Color} (float ene\-Cluster, float cutoff\-\_\-min, float cutoff\-\_\-max)
\item 
void {\bf show\-Legend\-Spectrum} (const unsigned int color\-\_\-steps, char scale, int color\-Map, float ene\-\_\-min, float ene\-\_\-max, unsigned int ticks)
\item 
int {\bf return\-R\-G\-B\-Cluster\-Color} (float ene\-Cluster, float cutoff\-\_\-min, float cutoff\-\_\-max, int color\-\_\-steps, char scale, int color\-Map)
\item 
int {\bf return\-Cluster\-Size} (float ene\-Cluster, float cutoff\-\_\-min, float cutoff\-\_\-max)
\item 
int {\bf return\-Track\-Size} (float type)\label{classDSTViewer_a7e9754ea23ae8ce338daf7c8b4faa508}

\begin{DoxyCompactList}\small\item\em P\-R\-E\-L\-I\-M. \end{DoxyCompactList}\item 
int {\bfseries return\-Jet\-Layer} (std\-::string jet\-Col\-Name)\label{classDSTViewer_abf60eb4162e756ad94e40f614e09a0cb}

\item 
int {\bfseries return\-Ip\-Layer} (std\-::string jet\-Col\-Name)\label{classDSTViewer_a865a5a8e183a968de63f78d240224ef2}

\item 
int {\bfseries return\-Jet\-Color} (std\-::string jet\-Col\-Name, int col\-Number)\label{classDSTViewer_ae4c8341c57c8cbd83315d1106e39aaaa}

\item 
int {\bfseries add\-Alpha\-Channel\-To\-Color} (int color, int alpha\-Channel)\label{classDSTViewer_afa8afee336cf2317b305d0f14d0e1cfb}

\item 
float $\ast$ {\bfseries return\-Cone\-Color} (std\-::string jet\-Col\-Name)\label{classDSTViewer_a32af89c91972b429928339db0046479d}

\item 
void {\bfseries write\-Layer\-Description} (void)\label{classDSTViewer_afedb28e1b4432b38ee741f19ed8a517c}

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

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

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

\item 
String\-Vec {\bfseries \-\_\-jet\-Collections}\label{classDSTViewer_adc427a3bbec7abfcfade1730545d9e72}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

\end{DoxyCompactItemize}


\subsection{Detailed Description}
\doxyref{D\-S\-T\-Viewer}{p.}{classDSTViewer} \par
 This processor displays .... 

\par
 
\begin{DoxyParams}{Parameters}
{\em Particle\-Collection} & \-: name of reconstructed Particle collection to be displayed \par
 ..... \par
 \\
\hline
\end{DoxyParams}
\begin{DoxyAuthor}{Authors}
Szymon Daraszewicz (D\-E\-S\-Y/\-U\-O\-E) 
\end{DoxyAuthor}
\begin{DoxyVersion}{Version}

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


\subsection{Member Function Documentation}
\index{D\-S\-T\-Viewer@{D\-S\-T\-Viewer}!process\-Event@{process\-Event}}
\index{process\-Event@{process\-Event}!DSTViewer@{D\-S\-T\-Viewer}}
\subsubsection[{process\-Event}]{\setlength{\rightskip}{0pt plus 5cm}void D\-S\-T\-Viewer\-::process\-Event (
\begin{DoxyParamCaption}
\item[{L\-C\-Event $\ast$}]{evt}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [virtual]}}\label{classDSTViewer_a2418227ec3063d7e4d65dc76ea54fef9}


Main function process\-Event. 

Drawing Geometry Reset drawing buffer and S\-T\-A\-R\-T drawing collection

Drawing Reconstructed Particles

Total E, p, q values for the event

get particle properties

Draw the helix and straight lines

Draw momentum lines from the ip

Draw momentum lines from the ip 

References return\-Cluster\-Size(), return\-R\-G\-B\-Cluster\-Color(), return\-Track\-Color(), return\-Track\-Size(), and show\-Legend\-Spectrum().

\index{D\-S\-T\-Viewer@{D\-S\-T\-Viewer}!return\-Cluster\-Color@{return\-Cluster\-Color}}
\index{return\-Cluster\-Color@{return\-Cluster\-Color}!DSTViewer@{D\-S\-T\-Viewer}}
\subsubsection[{return\-Cluster\-Color}]{\setlength{\rightskip}{0pt plus 5cm}int D\-S\-T\-Viewer\-::return\-Cluster\-Color (
\begin{DoxyParamCaption}
\item[{float}]{ene\-Cluster, }
\item[{float}]{cutoff\-\_\-min, }
\item[{float}]{cutoff\-\_\-max}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [protected]}}\label{classDSTViewer_a88e560b550e44ba61dd59908e9ce6964}
\begin{DoxyAuthor}{Author}
\-: S.\-Daraszewicz (Uo\-E) 
\end{DoxyAuthor}
\begin{DoxyDate}{Date}
\-: 21.\-08.\-08
\end{DoxyDate}

\begin{DoxyParams}{Parameters}
{\em ene\-Cluster} & \-: Energy of the cluster \\
\hline
{\em cutoff\-\_\-min} & \-: Min cut for the cluster energy \\
\hline
{\em cutoff\-\_\-max} & \-: Max cut for the cluster energy\\
\hline
\end{DoxyParams}
Returns the colour for the visualisation of a cluster (in log scale). Colours run from red (0x660000) to blue (0x6600\-F\-F) for high and low energy particles respectively. Check the input values for sanity \index{D\-S\-T\-Viewer@{D\-S\-T\-Viewer}!return\-Cluster\-Size@{return\-Cluster\-Size}}
\index{return\-Cluster\-Size@{return\-Cluster\-Size}!DSTViewer@{D\-S\-T\-Viewer}}
\subsubsection[{return\-Cluster\-Size}]{\setlength{\rightskip}{0pt plus 5cm}int D\-S\-T\-Viewer\-::return\-Cluster\-Size (
\begin{DoxyParamCaption}
\item[{float}]{ene\-Cluster, }
\item[{float}]{cutoff\-\_\-min, }
\item[{float}]{cutoff\-\_\-max}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [protected]}}\label{classDSTViewer_a7c5e164e2f8d984c24ce32999749f677}
Check the input values for sanity

Check the output 

Referenced by process\-Event().

\index{D\-S\-T\-Viewer@{D\-S\-T\-Viewer}!return\-R\-G\-B\-Cluster\-Color@{return\-R\-G\-B\-Cluster\-Color}}
\index{return\-R\-G\-B\-Cluster\-Color@{return\-R\-G\-B\-Cluster\-Color}!DSTViewer@{D\-S\-T\-Viewer}}
\subsubsection[{return\-R\-G\-B\-Cluster\-Color}]{\setlength{\rightskip}{0pt plus 5cm}int D\-S\-T\-Viewer\-::return\-R\-G\-B\-Cluster\-Color (
\begin{DoxyParamCaption}
\item[{float}]{ene\-Cluster, }
\item[{float}]{cutoff\-\_\-min, }
\item[{float}]{cutoff\-\_\-max, }
\item[{int}]{color\-\_\-steps, }
\item[{char}]{scale, }
\item[{int}]{color\-Map}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [protected]}}\label{classDSTViewer_a86cd681f36a170cfe2d2f234abe18ace}
Check the input values for sanity

Different color scales 

Referenced by process\-Event().

\index{D\-S\-T\-Viewer@{D\-S\-T\-Viewer}!show\-Legend\-Spectrum@{show\-Legend\-Spectrum}}
\index{show\-Legend\-Spectrum@{show\-Legend\-Spectrum}!DSTViewer@{D\-S\-T\-Viewer}}
\subsubsection[{show\-Legend\-Spectrum}]{\setlength{\rightskip}{0pt plus 5cm}void D\-S\-T\-Viewer\-::show\-Legend\-Spectrum (
\begin{DoxyParamCaption}
\item[{const unsigned int}]{color\-\_\-steps, }
\item[{char}]{scale, }
\item[{int}]{color\-Map, }
\item[{float}]{ene\-\_\-min, }
\item[{float}]{ene\-\_\-max, }
\item[{unsigned int}]{ticks}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [protected]}}\label{classDSTViewer_ac2432483da634c64ba992fa9dbb7a48d}
\begin{DoxyAuthor}{Author}
\-: S.\-Daraszewicz (Uo\-E) 
\end{DoxyAuthor}
\begin{DoxyDate}{Date}
\-: 22.\-08.\-08
\end{DoxyDate}

\begin{DoxyParams}{Parameters}
{\em ene\-Cluster} & \-: Energy of the cluster \\
\hline
{\em cutoff\-\_\-min} & \-: Min cut for the cluster energy \\
\hline
{\em cutoff\-\_\-max} & \-: Max cut for the cluster energy \\
\hline
{\em color\-\_\-steps} & Number of colours to be used in the scale \\
\hline
{\em scale} & \-: Linear or Logarithmic colour scale \\
\hline
{\em color\-Map} & \-: Color map type to be used\\
\hline
\end{DoxyParams}
Returns the size for the visualisation of a cluster (in log scale) within user defined sizes. 

Referenced by process\-Event().



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