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


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




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

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

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

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

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

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

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

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

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

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

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

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

\item 
std\-::string {\bfseries \-\_\-output\-Ecal\-Collection0}\label{classNewLDCCaloDigi_ae3eae1d288171188f5c6b97fa1772965}

\item 
std\-::string {\bfseries \-\_\-output\-Ecal\-Collection1}\label{classNewLDCCaloDigi_aa27afb5a0d70ee2024c0e65c4764bc3d}

\item 
std\-::string {\bfseries \-\_\-output\-Ecal\-Collection2}\label{classNewLDCCaloDigi_a1690a4fd427d4c6257633bd3b9e557ad}

\item 
std\-::string {\bfseries \-\_\-output\-Hcal\-Collection0}\label{classNewLDCCaloDigi_a186e19a872ced8747fe9ebdc7b8ce6a8}

\item 
std\-::string {\bfseries \-\_\-output\-Hcal\-Collection1}\label{classNewLDCCaloDigi_a7205003be76e47eaa28a504de78fd7dc}

\item 
std\-::string {\bfseries \-\_\-output\-Hcal\-Collection2}\label{classNewLDCCaloDigi_aa2ecb7e420e5dbd314e422d3f7de112f}

\item 
std\-::vector$<$ std\-::string $>$ {\bfseries \-\_\-output\-Ecal\-Collections}\label{classNewLDCCaloDigi_a260aae18b76015b3edebc7f6f1dc0052}

\item 
std\-::vector$<$ std\-::string $>$ {\bfseries \-\_\-output\-Hcal\-Collections}\label{classNewLDCCaloDigi_a96e11a894c4f8ebdde3b1582098c6220}

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

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

\item 
std\-::vector$<$ float $>$ {\bfseries \-\_\-threshold\-Hcal}\label{classNewLDCCaloDigi_a29054a1724fa3ff559a148d283e156c7}

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

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

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

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

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

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

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

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

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

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

\item 
float {\bfseries \-\_\-hcal\-Endcap\-Correction\-Factor}\label{classNewLDCCaloDigi_a6ffbeb06aaae01ea54b5f543d1f76bef}

\item 
std\-::string {\bfseries \-\_\-cell\-I\-D\-Layer\-String}\label{classNewLDCCaloDigi_aed2c07ef0a4e3d82aee9122753574a05}

\item 
std\-::string {\bfseries \-\_\-cell\-I\-D\-Module\-String}\label{classNewLDCCaloDigi_a0caadf8e1517027199004edf2989f9c2}

\item 
std\-::string {\bfseries \-\_\-cell\-I\-D\-Stave\-String}\label{classNewLDCCaloDigi_aad1319ac47b06e3e983cf143d7faa3ae}

\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{classNewLDCCaloDigi_a4a2547d5d94161686d30e49878555e8a}

\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{classNewLDCCaloDigi_a570f0178aa01f8472f0bd8f77dfb0e09}

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

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

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

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

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

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

\end{DoxyCompactItemize}


\subsection{Detailed Description}
=== \doxyref{New\-L\-D\-C\-Calo\-Digi}{p.}{classNewLDCCaloDigi} 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{New\-L\-D\-C\-Calo\-Digi.\-h}{p.}{NewLDCCaloDigi_8h_source} 4761 2015-\/02-\/12 15\-:11\-:51\-Z gaede 
\end{DoxyParagraph}
\par
 

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