\section{Simple\-Calo\-Digi Class Reference}
\label{classSimpleCaloDigi}\index{Simple\-Calo\-Digi@{Simple\-Calo\-Digi}}


=== \doxyref{Simple\-Calo\-Digi}{p.}{classSimpleCaloDigi} Processor === \par
 Simple calorimeter digitizer Processor.  




{\ttfamily \#include $<$Simple\-Calo\-Digi.\-h$>$}

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

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

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

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

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

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

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

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

\item 
std\-::vector$<$ std\-::string $>$ {\bfseries \-\_\-ecal\-Collections}\label{classSimpleCaloDigi_a0ada5a0a25511e75b1bd622a2b3a3b09}

\item 
std\-::vector$<$ std\-::string $>$ {\bfseries \-\_\-hcal\-Collections}\label{classSimpleCaloDigi_a431fa85eb640cf288eb8fa17256608e6}

\item 
std\-::string {\bfseries \-\_\-output\-Ecal\-Collection}\label{classSimpleCaloDigi_a4bad91785fa1dd1d94b5baaacd8857f9}

\item 
std\-::string {\bfseries \-\_\-output\-Hcal\-Collection}\label{classSimpleCaloDigi_af1464ddb627df6d4f374193abf80fbf0}

\item 
std\-::string {\bfseries \-\_\-output\-Rel\-Collection}\label{classSimpleCaloDigi_a459e730c4d26c0da3d078a2c6ab531ca}

\item 
float {\bfseries \-\_\-threshold\-Ecal}\label{classSimpleCaloDigi_a4385737f5e6a5120313d5496fee9b7ea}

\item 
float {\bfseries \-\_\-threshold\-Hcal}\label{classSimpleCaloDigi_a2dc7cd1b00bd775d7f706189fbaafe28}

\item 
int {\bfseries \-\_\-digital\-Ecal}\label{classSimpleCaloDigi_af71842760f03814ad2bb098be01329eb}

\item 
int {\bfseries \-\_\-digital\-Hcal}\label{classSimpleCaloDigi_a9b6c488aef153af5649d3fd531d23f04}

\item 
std\-::vector$<$ float $>$ {\bfseries \-\_\-calibr\-Coeff\-Ecal}\label{classSimpleCaloDigi_a61e4ac08009afa4d2380f90db059ba8d}

\item 
std\-::vector$<$ float $>$ {\bfseries \-\_\-calibr\-Coeff\-Hcal}\label{classSimpleCaloDigi_afee81d23e1de83040826eb53c11c4e81}

\item 
std\-::vector$<$ int $>$ {\bfseries \-\_\-ecal\-Layers}\label{classSimpleCaloDigi_aea1e9c349b36c423c4cfea4733be1c75}

\item 
std\-::vector$<$ int $>$ {\bfseries \-\_\-hcal\-Layers}\label{classSimpleCaloDigi_a8d174e4f443b996446b0570053f5b017}

\end{DoxyCompactItemize}


\subsection{Detailed Description}
=== \doxyref{Simple\-Calo\-Digi}{p.}{classSimpleCaloDigi} Processor === \par
 Simple calorimeter digitizer Processor. 

\par
 Takes Sim\-Calorimeter\-Hit Collections and \par
 produces Calorimeter\-Hit Collections. \par
 Simulated energy depositions in active \par
 layers of calorimeters are \par
 converted into physical energy. This is done \par
 taking into account sampling fractions of \par
 E\-C\-A\-L and H\-C\-A\-L. \par
 User has to specify E\-C\-A\-L and H\-C\-A\-L Sim\-Calorimeter\-Hit \par
 collections with processor parameters \par
 H\-C\-A\-L\-Collections and E\-C\-A\-L\-Collections. \par
 The names of the output Calorimeter\-Hit Collections \par
 are specified with processor parameters \par
 E\-C\-A\-L\-Output\-Collection and H\-C\-A\-L\-Output\-Collection. \par
 Conversion factors for E\-C\-A\-L and H\-C\-A\-L \par
 are specified via processor parameters \par
 Calibr\-E\-C\-A\-L and Calibr\-H\-C\-A\-L. \par
 It should be noted that E\-C\-A\-L and H\-C\-A\-L may consist \par
 of several sections with different sampling fractions. \par
 To handle this situation, calibration coefficients for \par
 E\-C\-A\-L and H\-C\-A\-L are passed as arrays of floats with each element \par
 in this array corresponding to certain section with \par
 a given sampling fraction. \par
 List of layer numbers terminating each section are given through \par
 processor parameters E\-C\-A\-L\-Layers and H\-C\-A\-L\-Layers \par
 There is an option to perform digitization of \par
 both E\-C\-A\-L and H\-C\-A\-L in a digital mode. \par
 Digital mode is activated by \par
 setting processor parameters \par
 If\-Digital\-Ecal / If\-Digital\-Hcal to 1. \par
 In this case Calibr\-E\-C\-A\-L / Calibr\-H\-C\-A\-L will \par
 convert the number of hits into physical energy. \par
 Thresholds on hit energies in E\-C\-A\-L and H\-C\-A\-L \par
 are set with processor parameters \par
 E\-C\-A\-L\-Threshold and H\-C\-A\-L\-Threshold. \par
 Relations between Calorimeter\-Hits and Sim\-Calorimeter\-Hits \par
 are held in the corresponding relation collection. \par
 The name of this relation collection is specified \par
 via processor parameter Relation\-Output\-Collection. \par
 \subparagraph*{Input collections and prerequisites}

Sim\-Calorimeter\-Hit collections \par
 \subparagraph*{Output}

Calorimeter\-Hit collections for E\-Cal and H\-Cal. \par
 Collection of relations \par
 between Calorimeter\-Hits and Sim\-Calorimeter\-Hits. \par
 For E\-Cal Calorimeter hits the variable type is set to 0, \par
 whereas for H\-Cal Calorimeter hits the type is set to 1 \par
 \begin{DoxyAuthor}{Author}
A. Raspereza (D\-E\-S\-Y) \par
 
\end{DoxyAuthor}
\begin{DoxyVersion}{Version}

\end{DoxyVersion}
\begin{DoxyParagraph}{Id\-:}
\doxyref{Simple\-Calo\-Digi.\-h}{p.}{SimpleCaloDigi_8h_source} 2553 2011-\/09-\/20 14\-:50\-:20\-Z gaede 
\end{DoxyParagraph}
\par
 

The documentation for this class was generated from the following file\-:\begin{DoxyCompactItemize}
\item 
Simple\-Calo\-Digi.\-h\end{DoxyCompactItemize}
