\section{L\-D\-C\-Calo\-Digi Class Reference}
\label{classLDCCaloDigi}\index{L\-D\-C\-Calo\-Digi@{L\-D\-C\-Calo\-Digi}}


=== \doxyref{L\-D\-C\-Calo\-Digi}{p.}{classLDCCaloDigi} Processor === \par
 Simple calorimeter digitizer Processor.  




{\ttfamily \#include $<$L\-D\-C\-Calo\-Digi.\-h$>$}

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

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

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

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

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

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

\item 
virtual void {\bfseries fill\-E\-C\-A\-L\-Gaps} ()\label{classLDCCaloDigi_ad51d577615600e57dfc730c75ac3f57f}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

\item 
int {\bfseries \-\_\-ecal\-Gap\-Correction}\label{classLDCCaloDigi_a6f747e6289aef542c87b1863d0ca61e6}

\item 
float {\bfseries \-\_\-ecal\-Gap\-Correction\-Factor}\label{classLDCCaloDigi_a86e9ebeb575d57365da8de996efec63d}

\item 
float {\bfseries \-\_\-ecal\-Module\-Gap\-Correction\-Factor}\label{classLDCCaloDigi_aa2439bee80eae0826a10a0617e3c53b3}

\item 
float {\bfseries \-\_\-ecal\-Endcap\-Correction\-Factor}\label{classLDCCaloDigi_a9bd96cdc5df2349f79a7ebdc056eaf8c}

\item 
std\-::vector$<$ Calorimeter\-Hit\-Impl $\ast$ $>$ {\bfseries \-\_\-cal\-Hits\-By\-Stave\-Layer} [M\-A\-X\-\_\-\-S\-T\-A\-V\-E\-S][M\-A\-X\-\_\-\-L\-A\-Y\-E\-R\-S]\label{classLDCCaloDigi_a8709109c6ad0aca01045ae8b2f9b1ade}

\item 
std\-::vector$<$ int $>$ {\bfseries \-\_\-cal\-Hits\-By\-Stave\-Layer\-Module} [M\-A\-X\-\_\-\-S\-T\-A\-V\-E\-S][M\-A\-X\-\_\-\-L\-A\-Y\-E\-R\-S]\label{classLDCCaloDigi_aed7b0941389e188070a9b0aa5affa8a9}

\item 
float {\bfseries \-\_\-z\-Of\-Ecal\-Endcap}\label{classLDCCaloDigi_a22a5d556661d344bd3a8975820dd7ef7}

\item 
float {\bfseries \-\_\-barrel\-Pixel\-Size\-T} [M\-A\-X\-\_\-\-L\-A\-Y\-E\-R\-S]\label{classLDCCaloDigi_a77fa9623fae88ad4c30c40cf399d7631}

\item 
float {\bfseries \-\_\-barrel\-Pixel\-Size\-Z} [M\-A\-X\-\_\-\-L\-A\-Y\-E\-R\-S]\label{classLDCCaloDigi_acdc5dc21fefaaae8e63b481f5c82300c}

\item 
float {\bfseries \-\_\-endcap\-Pixel\-Size\-X} [M\-A\-X\-\_\-\-L\-A\-Y\-E\-R\-S]\label{classLDCCaloDigi_aeeae44f84d999bbab8a8586bbb70fe9c}

\item 
float {\bfseries \-\_\-endcap\-Pixel\-Size\-Y} [M\-A\-X\-\_\-\-L\-A\-Y\-E\-R\-S]\label{classLDCCaloDigi_ac4fe88c288cfcf58cb97c98b855902df}

\item 
float {\bfseries \-\_\-barrel\-Stave\-Dir} [M\-A\-X\-\_\-\-S\-T\-A\-V\-E\-S][2]\label{classLDCCaloDigi_abb09a9a76abe89f907e43d15ee540453}

\end{DoxyCompactItemize}


\subsection{Detailed Description}
=== \doxyref{L\-D\-C\-Calo\-Digi}{p.}{classLDCCaloDigi} 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
 

M. Thomson (D\-E\-S\-Y) \par
 
\end{DoxyAuthor}
\begin{DoxyVersion}{Version}

\end{DoxyVersion}
\begin{DoxyParagraph}{Id\-:}
\doxyref{L\-D\-C\-Calo\-Digi.\-h}{p.}{LDCCaloDigi_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 
L\-D\-C\-Calo\-Digi.\-h\end{DoxyCompactItemize}
