\section{Hep\-Rep\-Output\-Processor Class Reference}
\label{classHepRepOutputProcessor}\index{Hep\-Rep\-Output\-Processor@{Hep\-Rep\-Output\-Processor}}


\doxyref{Hep\-Rep\-Output\-Processor}{p.}{classHepRepOutputProcessor}\-: This processor generates a Hep\-Rep Output file for a Hep\-Rep based event display program.  




{\ttfamily \#include $<$Hep\-Rep\-Output\-Processor.\-h$>$}

Inheritance diagram for Hep\-Rep\-Output\-Processor\-:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2.000000cm]{classHepRepOutputProcessor}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
{\bf Hep\-Rep\-Output\-Processor} ()\label{classHepRepOutputProcessor_a3cfd5cad93ba5a2b59fce4ffae569f04}

\begin{DoxyCompactList}\small\item\em The constructor. Parameters will be registered here. \end{DoxyCompactList}\item 
{\bf $\sim$\-Hep\-Rep\-Output\-Processor} ()\label{classHepRepOutputProcessor_afde9209ae17e06c84c11439b01bbc521}

\begin{DoxyCompactList}\small\item\em The Destructor. \end{DoxyCompactList}\item 
Processor $\ast$ {\bf new\-Processor} ()\label{classHepRepOutputProcessor_ad46955ab3866c3a08a4c76219e136686}

\begin{DoxyCompactList}\small\item\em Return a new instance of this processor. \end{DoxyCompactList}\item 
void {\bf init} ()\label{classHepRepOutputProcessor_a230cf40eba07465835c535f2fe376f38}

\begin{DoxyCompactList}\small\item\em Processor initialisation. G\-E\-A\-R Geometry is drawn here. \end{DoxyCompactList}\item 
void {\bf process\-Run\-Header} (lcio\-::\-L\-C\-Run\-Header $\ast$run)\label{classHepRepOutputProcessor_a1430a514fc5ab0f4af11554132d6e7c6}

\begin{DoxyCompactList}\small\item\em Run\-Header processing. Revision and parameter logging. \end{DoxyCompactList}\item 
virtual void {\bf process\-Event} (lcio\-::\-L\-C\-Event $\ast$evt)\label{classHepRepOutputProcessor_a57c3fa740704c427a4c0c675666ef8cc}

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

\begin{DoxyCompactList}\small\item\em Called for every event -\/ right after \doxyref{process\-Event()}{p.}{classHepRepOutputProcessor_a57c3fa740704c427a4c0c675666ef8cc} has been called for all processors. \end{DoxyCompactList}\item 
virtual void {\bf end} ()\label{classHepRepOutputProcessor_a6bea97a26f2fffb330345f4697a26445}

\begin{DoxyCompactList}\small\item\em Called after data processing for clean up in the inverse order of the \doxyref{init()}{p.}{classHepRepOutputProcessor_a230cf40eba07465835c535f2fe376f38} method so that resources allocated in the first processor also will be available for all following processors. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
\doxyref{Hep\-Rep\-Output\-Processor}{p.}{classHepRepOutputProcessor}\-: This processor generates a Hep\-Rep Output file for a Hep\-Rep based event display program. 

The processor extracts geometrical information of the detector in the \doxyref{init()}{p.}{classHepRepOutputProcessor_a230cf40eba07465835c535f2fe376f38} function, so it can be used for geometry checks as well. By means of parameters the user can decide which objects from the L\-C\-I\-O file shall be drawn.

\begin{DoxyRefDesc}{Todo}
\item[{\bf Todo}]Color or pattern coding of the quality flags should be implemented for the pads. 

not yet implemented, shall vary between a given color and \char`\"{}black\char`\"{} \begin{DoxyItemize}
\item C\-O\-L\-O\-R\-W\-H\-I\-T\-E = 6, \end{DoxyItemize}
not yet implemented, shall bleach a given color to \char`\"{}white\char`\"{} 
\begin{DoxyParams}{Parameters}
{\em Color} & -\/ \\
\hline
\end{DoxyParams}
not yet implemented, will be needed for some future color schemes.\end{DoxyRefDesc}
\begin{DoxyVerb}   <h4>Input - Prerequisites</h4>
   A valid GEAR file.

   <h4>Output</h4>
   A HepRep xml file.

   @param SimTrackerHitCollections list of the input SimTrackerHit collections.
   @param TrackerDataCollections list of the input SimTrackerHit collections.
   @param TrackerHitCollections list of the input SimTrackerHit collections.
   @param TrackerPulseCollections list of the input SimTrackerHit collections.
   @param TrackCollections list of the input SimTrackerHit collections.
   @param EventNumbersToDraw A space separated list of event numbers to be drawn.
   @param OutputFileName Name of the HepRep output file.
   @param PulseColorScheme Determines how the pulses are color coded:
    \li RAINBOW = 0, does rainbow colors between minimum and maximum charge.
            \li REDBLUE = 1, original color coding by J.Abernathy, gives a reddish value for charges > 0 and a blueish one for charges < 0
            \li TOPOGRAPHIC = 2, color coding as known from maps - blue for charges < 0 and green>yellow>orange>red for charges >0
            \li GREYSCALE = 3, grey between minimum (dark grey) and maximum charge (light grey)
            \li REDBLUESCALE = 4,\xrefitem todo 19.

   @author  \li J. Abernathy (UVic)
                    \li Oliver Sch&auml;fer, University of Rostock
   @version Revision $Rev$\end{DoxyVerb}
 

The documentation for this class was generated from the following files\-:\begin{DoxyCompactItemize}
\item 
Hep\-Rep\-Output\-Processor.\-h\item 
Hep\-Rep\-Output\-Processor.\-cc\end{DoxyCompactItemize}
