\section{I\-M\-P\-L\-:\-:Calorimeter\-Hit\-Impl Class Reference}
\label{classIMPL_1_1CalorimeterHitImpl}\index{I\-M\-P\-L\-::\-Calorimeter\-Hit\-Impl@{I\-M\-P\-L\-::\-Calorimeter\-Hit\-Impl}}


Implementation of the real data Calorimeter\-Hit.  




{\ttfamily \#include $<$I\-M\-P\-L/\-Calorimeter\-Hit\-Impl.\-h$>$}

Inheritance diagram for I\-M\-P\-L\-:\-:Calorimeter\-Hit\-Impl\-:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=5.000000cm]{classIMPL_1_1CalorimeterHitImpl}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
{\bf Calorimeter\-Hit\-Impl} ()\label{classIMPL_1_1CalorimeterHitImpl_a4cf888c2e5469803f0ff86f9f29331f3}

\begin{DoxyCompactList}\small\item\em Default constructor, initializes values to 0. \end{DoxyCompactList}\item 
virtual {\bf $\sim$\-Calorimeter\-Hit\-Impl} ()
\begin{DoxyCompactList}\small\item\em Copy constructor. \end{DoxyCompactList}\item 
virtual int {\bf id} () const \label{classIMPL_1_1CalorimeterHitImpl_ab890726b75c6de417abf9321aa7211e2}

\begin{DoxyCompactList}\small\item\em Returns an object id for internal (debugging) use in L\-C\-I\-O. \end{DoxyCompactList}\item 
virtual int {\bf get\-Cell\-I\-D0} () const \label{classIMPL_1_1CalorimeterHitImpl_ab7abc1fbc1e813b4d6d6b7da062c7757}

\begin{DoxyCompactList}\small\item\em Returns the detector specific (geometrical) cell id. \end{DoxyCompactList}\item 
virtual int {\bf get\-Cell\-I\-D1} () const 
\begin{DoxyCompactList}\small\item\em Returns the second detector specific (geometrical) cell id. \end{DoxyCompactList}\item 
virtual float {\bf get\-Energy} () const \label{classIMPL_1_1CalorimeterHitImpl_ac0cdbd28f2dc020c5c31e799f31e4844}

\begin{DoxyCompactList}\small\item\em Returns the energy of the hit. \end{DoxyCompactList}\item 
virtual float {\bf get\-Energy\-Error} () const 
\begin{DoxyCompactList}\small\item\em Returns the error of the hit energy. \end{DoxyCompactList}\item 
virtual float {\bf get\-Time} () const 
\begin{DoxyCompactList}\small\item\em Returns the time of the hit in [ns]. \end{DoxyCompactList}\item 
virtual const float $\ast$ {\bf get\-Position} () const 
\begin{DoxyCompactList}\small\item\em Returns the position of the hit in world coordinates. \end{DoxyCompactList}\item 
virtual int {\bf get\-Type} () const 
\begin{DoxyCompactList}\small\item\em Type of hit. \end{DoxyCompactList}\item 
virtual {\bf E\-V\-E\-N\-T\-::\-L\-C\-Object} $\ast$ {\bf get\-Raw\-Hit} () const 
\begin{DoxyCompactList}\small\item\em The Raw\-Calorimeter\-Hit. \end{DoxyCompactList}\item 
void {\bf set\-Cell\-I\-D0} (int id0)\label{classIMPL_1_1CalorimeterHitImpl_a3c09c05e1420f0a0dad3b877b51f2bf0}

\begin{DoxyCompactList}\small\item\em Sets the first cell id;. \end{DoxyCompactList}\item 
void {\bf set\-Cell\-I\-D1} (int id1)
\begin{DoxyCompactList}\small\item\em Sets the second cell id; Only store if the flag word (bit R\-C\-H\-B\-I\-T\-\_\-\-I\-D1) of the collection is set. \end{DoxyCompactList}\item 
void {\bf set\-Energy} (float en)\label{classIMPL_1_1CalorimeterHitImpl_a8de9eda26f9378d3601e24a399410343}

\begin{DoxyCompactList}\small\item\em Sets the energy/amplitude. \end{DoxyCompactList}\item 
void {\bf set\-Energy\-Error} (float enerr)
\begin{DoxyCompactList}\small\item\em Sets the error of the hit energy. \end{DoxyCompactList}\item 
void {\bf set\-Time} (float t)\label{classIMPL_1_1CalorimeterHitImpl_a0e75e0bf3a9c3b7935a60f068caab7c1}

\begin{DoxyCompactList}\small\item\em Sets the time. \end{DoxyCompactList}\item 
void {\bf set\-Position} (const float pos[3])
\begin{DoxyCompactList}\small\item\em Sets the position. \end{DoxyCompactList}\item 
void {\bfseries set\-Type} (int type)\label{classIMPL_1_1CalorimeterHitImpl_aed59ceb0ac4f94d1655738d2dfa34fd9}

\item 
void {\bfseries set\-Raw\-Hit} ({\bf E\-V\-E\-N\-T\-::\-L\-C\-Object} $\ast$raw\-Hit)\label{classIMPL_1_1CalorimeterHitImpl_af23c332dfbc60f7cce100cd3fb327e26}

\end{DoxyCompactItemize}
\subsection*{Protected Attributes}
\begin{DoxyCompactItemize}
\item 
int {\bfseries \-\_\-cell\-I\-D0}\label{classIMPL_1_1CalorimeterHitImpl_ac488b1460f59c2520f5682cdd00994c7}

\item 
int {\bfseries \-\_\-cell\-I\-D1}\label{classIMPL_1_1CalorimeterHitImpl_acb230d764946c2ce83275b894c0b95c2}

\item 
float {\bfseries \-\_\-energy}\label{classIMPL_1_1CalorimeterHitImpl_a37c4c810588c5b721fe1fdc8909b5d8a}

\item 
float {\bfseries \-\_\-energy\-Error}\label{classIMPL_1_1CalorimeterHitImpl_acd200514700b00883af22418476ac729}

\item 
float {\bfseries \-\_\-time}\label{classIMPL_1_1CalorimeterHitImpl_a6041a2febcbb8bd665a1e3981a371bd9}

\item 
float {\bfseries \-\_\-position} [3]\label{classIMPL_1_1CalorimeterHitImpl_a822edfd35957fe897f96204634da51d8}

\item 
int {\bfseries \-\_\-type}\label{classIMPL_1_1CalorimeterHitImpl_a3186fd90391cf4942439c7cc8ddccda2}

\item 
{\bf E\-V\-E\-N\-T\-::\-L\-C\-Object} $\ast$ {\bfseries \-\_\-raw\-Hit}\label{classIMPL_1_1CalorimeterHitImpl_a7b6361509d9aeecaed0a836a82c7c6b3}

\end{DoxyCompactItemize}
\subsection*{Additional Inherited Members}


\subsection{Detailed Description}
Implementation of the real data Calorimeter\-Hit. 

\begin{DoxyAuthor}{Author}
gaede 
\end{DoxyAuthor}
\begin{DoxyVersion}{Version}

\end{DoxyVersion}
\begin{DoxyParagraph}{Id\-:}
\doxyref{Calorimeter\-Hit\-Impl.\-h}{p.}{CalorimeterHitImpl_8h_source},v 1.\-16 2008-\/06-\/04 17\-:37\-:16 engels Exp 
\end{DoxyParagraph}


\subsection{Constructor \& Destructor Documentation}
\index{I\-M\-P\-L\-::\-Calorimeter\-Hit\-Impl@{I\-M\-P\-L\-::\-Calorimeter\-Hit\-Impl}!$\sim$\-Calorimeter\-Hit\-Impl@{$\sim$\-Calorimeter\-Hit\-Impl}}
\index{$\sim$\-Calorimeter\-Hit\-Impl@{$\sim$\-Calorimeter\-Hit\-Impl}!IMPL::CalorimeterHitImpl@{I\-M\-P\-L\-::\-Calorimeter\-Hit\-Impl}}
\subsubsection[{$\sim$\-Calorimeter\-Hit\-Impl}]{\setlength{\rightskip}{0pt plus 5cm}I\-M\-P\-L\-::\-Calorimeter\-Hit\-Impl\-::$\sim$\-Calorimeter\-Hit\-Impl (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [virtual]}}\label{classIMPL_1_1CalorimeterHitImpl_a79271da81096625879bd2e3d77d051eb}


Copy constructor. 

Not yet -\/ needs pointer chasing ... Destructor. 

\subsection{Member Function Documentation}
\index{I\-M\-P\-L\-::\-Calorimeter\-Hit\-Impl@{I\-M\-P\-L\-::\-Calorimeter\-Hit\-Impl}!get\-Cell\-I\-D1@{get\-Cell\-I\-D1}}
\index{get\-Cell\-I\-D1@{get\-Cell\-I\-D1}!IMPL::CalorimeterHitImpl@{I\-M\-P\-L\-::\-Calorimeter\-Hit\-Impl}}
\subsubsection[{get\-Cell\-I\-D1}]{\setlength{\rightskip}{0pt plus 5cm}int I\-M\-P\-L\-::\-Calorimeter\-Hit\-Impl\-::get\-Cell\-I\-D1 (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily [virtual]}}\label{classIMPL_1_1CalorimeterHitImpl_a20b831a19e6dad000d93fbdbbedb753c}


Returns the second detector specific (geometrical) cell id. 

0 if information is not stored -\/ check the flag word (bit R\-C\-H\-B\-I\-T\-\_\-\-I\-D1) of the collection. Default is to store only cellid0. 

Implements {\bf E\-V\-E\-N\-T\-::\-Calorimeter\-Hit} \doxyref{}{p.}{classEVENT_1_1CalorimeterHit_adba2e6fe942a8c81b6e92b78eac0f12d}.

\index{I\-M\-P\-L\-::\-Calorimeter\-Hit\-Impl@{I\-M\-P\-L\-::\-Calorimeter\-Hit\-Impl}!get\-Energy\-Error@{get\-Energy\-Error}}
\index{get\-Energy\-Error@{get\-Energy\-Error}!IMPL::CalorimeterHitImpl@{I\-M\-P\-L\-::\-Calorimeter\-Hit\-Impl}}
\subsubsection[{get\-Energy\-Error}]{\setlength{\rightskip}{0pt plus 5cm}float I\-M\-P\-L\-::\-Calorimeter\-Hit\-Impl\-::get\-Energy\-Error (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily [virtual]}}\label{classIMPL_1_1CalorimeterHitImpl_a5e7a4351f0156c3127b634db592ac929}


Returns the error of the hit energy. 

Optional, check/set flag(\-L\-C\-I\-O\-::\-R\-C\-H\-B\-I\-T\-\_\-\-E\-N\-E\-R\-G\-Y\-\_\-\-E\-R\-R\-O\-R)==1. 

Implements {\bf E\-V\-E\-N\-T\-::\-Calorimeter\-Hit} \doxyref{}{p.}{classEVENT_1_1CalorimeterHit_a3059e2dafc3df7e6e5071d9fd2e31da6}.

\index{I\-M\-P\-L\-::\-Calorimeter\-Hit\-Impl@{I\-M\-P\-L\-::\-Calorimeter\-Hit\-Impl}!get\-Position@{get\-Position}}
\index{get\-Position@{get\-Position}!IMPL::CalorimeterHitImpl@{I\-M\-P\-L\-::\-Calorimeter\-Hit\-Impl}}
\subsubsection[{get\-Position}]{\setlength{\rightskip}{0pt plus 5cm}const float $\ast$ I\-M\-P\-L\-::\-Calorimeter\-Hit\-Impl\-::get\-Position (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily [virtual]}}\label{classIMPL_1_1CalorimeterHitImpl_a7d3f209c4470ad33912dff4904a055d3}


Returns the position of the hit in world coordinates. 

N\-U\-L\-L if information is not stored. Ask collection for flag, only available if bit L\-C\-I\-O.\-R\-C\-H\-B\-I\-T\-\_\-\-L\-O\-N\-G is set. 

Implements {\bf E\-V\-E\-N\-T\-::\-Calorimeter\-Hit} \doxyref{}{p.}{classEVENT_1_1CalorimeterHit_a73c4e571d43f9abd2cc7d89e82f636fb}.

\index{I\-M\-P\-L\-::\-Calorimeter\-Hit\-Impl@{I\-M\-P\-L\-::\-Calorimeter\-Hit\-Impl}!get\-Raw\-Hit@{get\-Raw\-Hit}}
\index{get\-Raw\-Hit@{get\-Raw\-Hit}!IMPL::CalorimeterHitImpl@{I\-M\-P\-L\-::\-Calorimeter\-Hit\-Impl}}
\subsubsection[{get\-Raw\-Hit}]{\setlength{\rightskip}{0pt plus 5cm}{\bf E\-V\-E\-N\-T\-::\-L\-C\-Object} $\ast$ I\-M\-P\-L\-::\-Calorimeter\-Hit\-Impl\-::get\-Raw\-Hit (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily [virtual]}}\label{classIMPL_1_1CalorimeterHitImpl_ad518ca473906a5afbf438f3f653e1b24}


The Raw\-Calorimeter\-Hit. 

As in the future there might be other types of raw calorimeter hits the return type is L\-C\-Object. 

Implements {\bf E\-V\-E\-N\-T\-::\-Calorimeter\-Hit} \doxyref{}{p.}{classEVENT_1_1CalorimeterHit_a8261427f61e40cc6eafd9d5a172960ca}.

\index{I\-M\-P\-L\-::\-Calorimeter\-Hit\-Impl@{I\-M\-P\-L\-::\-Calorimeter\-Hit\-Impl}!get\-Time@{get\-Time}}
\index{get\-Time@{get\-Time}!IMPL::CalorimeterHitImpl@{I\-M\-P\-L\-::\-Calorimeter\-Hit\-Impl}}
\subsubsection[{get\-Time}]{\setlength{\rightskip}{0pt plus 5cm}float I\-M\-P\-L\-::\-Calorimeter\-Hit\-Impl\-::get\-Time (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily [virtual]}}\label{classIMPL_1_1CalorimeterHitImpl_afaac55f096ae368b6f7be95a791471ff}


Returns the time of the hit in [ns]. 

Optional, check/set flag(\-L\-C\-I\-O\-::\-R\-C\-H\-B\-I\-T\-\_\-\-T\-I\-M\-E)==1. 

Implements {\bf E\-V\-E\-N\-T\-::\-Calorimeter\-Hit} \doxyref{}{p.}{classEVENT_1_1CalorimeterHit_aecc1e6765edcdd2ff54d84ff23e31904}.

\index{I\-M\-P\-L\-::\-Calorimeter\-Hit\-Impl@{I\-M\-P\-L\-::\-Calorimeter\-Hit\-Impl}!get\-Type@{get\-Type}}
\index{get\-Type@{get\-Type}!IMPL::CalorimeterHitImpl@{I\-M\-P\-L\-::\-Calorimeter\-Hit\-Impl}}
\subsubsection[{get\-Type}]{\setlength{\rightskip}{0pt plus 5cm}int I\-M\-P\-L\-::\-Calorimeter\-Hit\-Impl\-::get\-Type (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily [virtual]}}\label{classIMPL_1_1CalorimeterHitImpl_a37dbffe45ee03525fb66a2bdf14cf2b3}


Type of hit. 

Mapping of integer types to type names through collection parameters \char`\"{}\-Calorimeter\-Hit\-Type\-Names\char`\"{} and \char`\"{}\-Calorimeter\-Hit\-Type\-Values\char`\"{}. 

Implements {\bf E\-V\-E\-N\-T\-::\-Calorimeter\-Hit} \doxyref{}{p.}{classEVENT_1_1CalorimeterHit_a3bbf447ae34197fc40a6c98f7355320b}.

\index{I\-M\-P\-L\-::\-Calorimeter\-Hit\-Impl@{I\-M\-P\-L\-::\-Calorimeter\-Hit\-Impl}!set\-Cell\-I\-D1@{set\-Cell\-I\-D1}}
\index{set\-Cell\-I\-D1@{set\-Cell\-I\-D1}!IMPL::CalorimeterHitImpl@{I\-M\-P\-L\-::\-Calorimeter\-Hit\-Impl}}
\subsubsection[{set\-Cell\-I\-D1}]{\setlength{\rightskip}{0pt plus 5cm}void I\-M\-P\-L\-::\-Calorimeter\-Hit\-Impl\-::set\-Cell\-I\-D1 (
\begin{DoxyParamCaption}
\item[{int}]{id1}
\end{DoxyParamCaption}
)}\label{classIMPL_1_1CalorimeterHitImpl_a93e94c6b452154143877c882dbd124fb}


Sets the second cell id; Only store if the flag word (bit R\-C\-H\-B\-I\-T\-\_\-\-I\-D1) of the collection is set. 

Default is to store only cellid0. \index{I\-M\-P\-L\-::\-Calorimeter\-Hit\-Impl@{I\-M\-P\-L\-::\-Calorimeter\-Hit\-Impl}!set\-Energy\-Error@{set\-Energy\-Error}}
\index{set\-Energy\-Error@{set\-Energy\-Error}!IMPL::CalorimeterHitImpl@{I\-M\-P\-L\-::\-Calorimeter\-Hit\-Impl}}
\subsubsection[{set\-Energy\-Error}]{\setlength{\rightskip}{0pt plus 5cm}void I\-M\-P\-L\-::\-Calorimeter\-Hit\-Impl\-::set\-Energy\-Error (
\begin{DoxyParamCaption}
\item[{float}]{enerr}
\end{DoxyParamCaption}
)}\label{classIMPL_1_1CalorimeterHitImpl_a0b252859d1f48b879dd3e1cbec596a9c}


Sets the error of the hit energy. 

Not stored if flag R\-C\-H\-B\-I\-T\-\_\-\-E\-N\-E\-R\-G\-Y\-\_\-\-E\-R\-R\-O\-R isn't set \index{I\-M\-P\-L\-::\-Calorimeter\-Hit\-Impl@{I\-M\-P\-L\-::\-Calorimeter\-Hit\-Impl}!set\-Position@{set\-Position}}
\index{set\-Position@{set\-Position}!IMPL::CalorimeterHitImpl@{I\-M\-P\-L\-::\-Calorimeter\-Hit\-Impl}}
\subsubsection[{set\-Position}]{\setlength{\rightskip}{0pt plus 5cm}void I\-M\-P\-L\-::\-Calorimeter\-Hit\-Impl\-::set\-Position (
\begin{DoxyParamCaption}
\item[{const float}]{pos[3]}
\end{DoxyParamCaption}
)}\label{classIMPL_1_1CalorimeterHitImpl_af2426f2dc5169c67827877d3a2fed6b3}


Sets the position. 

Not stored if L\-C\-I\-O.\-R\-C\-H\-B\-I\-T\-\_\-\-L\-O\-N\-G isn't set. 

The documentation for this class was generated from the following files\-:\begin{DoxyCompactItemize}
\item 
Calorimeter\-Hit\-Impl.\-h\item 
Calorimeter\-Hit\-Impl.\-cc\end{DoxyCompactItemize}
