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


Implementation of the generic Sim\-Calorimeter\-Hit.  




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

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

\begin{DoxyCompactList}\small\item\em Default constructor, initializes values to 0. \end{DoxyCompactList}\item 
{\bf Sim\-Calorimeter\-Hit\-Impl} (const {\bf E\-V\-E\-N\-T\-::\-Sim\-Calorimeter\-Hit} \&hit)\label{classIMPL_1_1SimCalorimeterHitImpl_a72eda9990fc13c112d0f651e0c00b7dd}

\begin{DoxyCompactList}\small\item\em Copy constructor -\/ shallow copy. \end{DoxyCompactList}\item 
virtual {\bf $\sim$\-Sim\-Calorimeter\-Hit\-Impl} ()\label{classIMPL_1_1SimCalorimeterHitImpl_a00a66d6f7050fb26ab5131bd272e4165}

\begin{DoxyCompactList}\small\item\em Destructor. \end{DoxyCompactList}\item 
virtual int {\bf id} () const \label{classIMPL_1_1SimCalorimeterHitImpl_a833c30f27872e535c3ddfe8693152493}

\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 
\begin{DoxyCompactList}\small\item\em Create a deep copy of itself. \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_1SimCalorimeterHitImpl_a3b0b519643a17ed01c03137e2f8219ef}

\begin{DoxyCompactList}\small\item\em Returns the energy of the hit. \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 const float $\ast$ {\bf get\-Step\-Position} (int i) const \label{classIMPL_1_1SimCalorimeterHitImpl_ad7fa39c8a8237d8c09dd33ac7de4fe66}

\begin{DoxyCompactList}\small\item\em Returns the position where the energy deposited (step) occurred optional, only if bit L\-C\-I\-O\-::\-C\-H\-B\-I\-T\-\_\-\-S\-T\-E\-P is set. \end{DoxyCompactList}\item 
virtual int {\bf get\-N\-M\-C\-Particles} () const 
\begin{DoxyCompactList}\small\item\em Returns the number of M\-C contributions to the hit. \end{DoxyCompactList}\item 
virtual int {\bf get\-N\-M\-C\-Contributions} () const 
\begin{DoxyCompactList}\small\item\em Returns the number of M\-C contributions to the hit. \end{DoxyCompactList}\item 
virtual float {\bf get\-Energy\-Cont} (int i) const 
\begin{DoxyCompactList}\small\item\em Returns the energy in [Ge\-V] of the i-\/th contribution to the hit. \end{DoxyCompactList}\item 
virtual float {\bf get\-Time\-Cont} (int i) const 
\begin{DoxyCompactList}\small\item\em Returns the time of the i-\/th in [ns] contribution to the hit. \end{DoxyCompactList}\item 
virtual int {\bf get\-P\-D\-G\-Cont} (int i) const 
\begin{DoxyCompactList}\small\item\em Returns the P\-D\-G code of the shower particle that caused this contribution. \end{DoxyCompactList}\item 
virtual {\bf E\-V\-E\-N\-T\-::\-M\-C\-Particle} $\ast$ {\bf get\-Particle\-Cont} (int i) const 
\begin{DoxyCompactList}\small\item\em Returns the M\-C\-Particle that caused the shower responsible for this contribution to the hit. \end{DoxyCompactList}\item 
void {\bf set\-Cell\-I\-D0} (int id0)\label{classIMPL_1_1SimCalorimeterHitImpl_ae8e46b9d9a12a5cbdc4b3d09409b344f}

\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 C\-H\-B\-I\-T\-\_\-\-I\-D1) of the collection is set. \end{DoxyCompactList}\item 
void {\bf set\-Energy} (float en)\label{classIMPL_1_1SimCalorimeterHitImpl_a6c68a0bee933b2dc115e7198349f28e9}

\begin{DoxyCompactList}\small\item\em Sets the energy. \end{DoxyCompactList}\item 
void {\bf set\-Position} (const float pos[3])
\begin{DoxyCompactList}\small\item\em Sets the position. \end{DoxyCompactList}\item 
void {\bf add\-M\-C\-Particle\-Contribution} ({\bf E\-V\-E\-N\-T\-::\-M\-C\-Particle} $\ast$p, float en, float t)
\begin{DoxyCompactList}\small\item\em Adds an M\-C\-Particle contribution to the hit -\/ contributions for the same M\-C\-Particle are combined into one, where the energy is accumulated and the time is the energy weighted mean time. \end{DoxyCompactList}\item 
void {\bf add\-M\-C\-Particle\-Contribution} ({\bf E\-V\-E\-N\-T\-::\-M\-C\-Particle} $\ast$p, float en, float t, int pdg, float $\ast$step\-Pos=0)
\begin{DoxyCompactList}\small\item\em Adds a detailed M\-C\-Particle contribution to the hit. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Protected Attributes}
\begin{DoxyCompactItemize}
\item 
int {\bfseries \-\_\-cell\-I\-D0}\label{classIMPL_1_1SimCalorimeterHitImpl_a7db4dc9c13bb0213075c5fb0a05bdf2c}

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

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

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

\item 
M\-C\-Particle\-Cont\-Vec {\bfseries \-\_\-vec}\label{classIMPL_1_1SimCalorimeterHitImpl_a01bfad6848bd9aaf6ea76c448c936c88}

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


\subsection{Detailed Description}
Implementation of the generic Sim\-Calorimeter\-Hit. 

\begin{DoxyAuthor}{Author}
gaede 
\end{DoxyAuthor}
\begin{DoxyVersion}{Version}
Mar 5, 2003 
\end{DoxyVersion}


\subsection{Member Function Documentation}
\index{I\-M\-P\-L\-::\-Sim\-Calorimeter\-Hit\-Impl@{I\-M\-P\-L\-::\-Sim\-Calorimeter\-Hit\-Impl}!add\-M\-C\-Particle\-Contribution@{add\-M\-C\-Particle\-Contribution}}
\index{add\-M\-C\-Particle\-Contribution@{add\-M\-C\-Particle\-Contribution}!IMPL::SimCalorimeterHitImpl@{I\-M\-P\-L\-::\-Sim\-Calorimeter\-Hit\-Impl}}
\subsubsection[{add\-M\-C\-Particle\-Contribution}]{\setlength{\rightskip}{0pt plus 5cm}void I\-M\-P\-L\-::\-Sim\-Calorimeter\-Hit\-Impl\-::add\-M\-C\-Particle\-Contribution (
\begin{DoxyParamCaption}
\item[{{\bf E\-V\-E\-N\-T\-::\-M\-C\-Particle} $\ast$}]{p, }
\item[{float}]{en, }
\item[{float}]{t}
\end{DoxyParamCaption}
)}\label{classIMPL_1_1SimCalorimeterHitImpl_a569263114e571cb49f7a9ed65cac1e04}


Adds an M\-C\-Particle contribution to the hit -\/ contributions for the same M\-C\-Particle are combined into one, where the energy is accumulated and the time is the energy weighted mean time. 

Use this method for the standard L\-C\-I\-O mode, where one energy contribution per primary particle entering the calorimeter is stored. \index{I\-M\-P\-L\-::\-Sim\-Calorimeter\-Hit\-Impl@{I\-M\-P\-L\-::\-Sim\-Calorimeter\-Hit\-Impl}!add\-M\-C\-Particle\-Contribution@{add\-M\-C\-Particle\-Contribution}}
\index{add\-M\-C\-Particle\-Contribution@{add\-M\-C\-Particle\-Contribution}!IMPL::SimCalorimeterHitImpl@{I\-M\-P\-L\-::\-Sim\-Calorimeter\-Hit\-Impl}}
\subsubsection[{add\-M\-C\-Particle\-Contribution}]{\setlength{\rightskip}{0pt plus 5cm}void I\-M\-P\-L\-::\-Sim\-Calorimeter\-Hit\-Impl\-::add\-M\-C\-Particle\-Contribution (
\begin{DoxyParamCaption}
\item[{{\bf E\-V\-E\-N\-T\-::\-M\-C\-Particle} $\ast$}]{p, }
\item[{float}]{en, }
\item[{float}]{t, }
\item[{int}]{pdg, }
\item[{float $\ast$}]{step\-Pos = {\ttfamily 0}}
\end{DoxyParamCaption}
)}\label{classIMPL_1_1SimCalorimeterHitImpl_a5d7959b107da55c230572b39f7481dc4}


Adds a detailed M\-C\-Particle contribution to the hit. 

This method should be used for the detailed mode, where one M\-C\-Particle\-Contribution is stored for every simulator step.\par
 If step\-Pos==0, (0,0,0) will be stored. N\-B\-: The flag word bit L\-C\-I\-O\-::\-C\-H\-B\-I\-T\-\_\-\-S\-T\-E\-P (or L\-C\-I\-O\-::\-C\-H\-B\-I\-T\-\_\-\-P\-D\-G) has to be set, in order for the P\-D\-G and step position to be stored. \index{I\-M\-P\-L\-::\-Sim\-Calorimeter\-Hit\-Impl@{I\-M\-P\-L\-::\-Sim\-Calorimeter\-Hit\-Impl}!get\-Cell\-I\-D0@{get\-Cell\-I\-D0}}
\index{get\-Cell\-I\-D0@{get\-Cell\-I\-D0}!IMPL::SimCalorimeterHitImpl@{I\-M\-P\-L\-::\-Sim\-Calorimeter\-Hit\-Impl}}
\subsubsection[{get\-Cell\-I\-D0}]{\setlength{\rightskip}{0pt plus 5cm}int I\-M\-P\-L\-::\-Sim\-Calorimeter\-Hit\-Impl\-::get\-Cell\-I\-D0 (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily [virtual]}}\label{classIMPL_1_1SimCalorimeterHitImpl_aef1c3bcc7633773454963f8f3f45b513}


Create a deep copy of itself. 

Overwrites return type in L\-C\-Object\-::clone(). Not yet -\/ as A\-I\-D genereates virtual inheritance and g++ doesn't support virtual constructors with virtual inheritance T\-O\-D\-O -\/ change org.\-freehep.\-aid.\-C\-P\-P\-Header\-Generator !\-Returns the detector specific (geometrical) cell id. 

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

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


Returns the second detector specific (geometrical) cell id. 

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

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

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


Returns the energy in [Ge\-V] of the i-\/th contribution to the hit. 

\begin{DoxySeeAlso}{See Also}
\doxyref{get\-N\-M\-C\-Contributions()}{p.}{classIMPL_1_1SimCalorimeterHitImpl_afb51d0a037b4c8cc65ebfd01c871d185} 
\end{DoxySeeAlso}


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

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


Returns the number of M\-C contributions to the hit. 

0 if information is not stored. There are two levels of detail\-: if collection flag bit L\-C\-I\-O.\-C\-H\-B\-I\-T\-\_\-\-S\-T\-E\-P==1 then all simulator steps' contributions to the hit are stored, otherwise there is only one contribution for every particle entering the calorimeter. 

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



Referenced by get\-N\-M\-C\-Particles().

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


Returns the number of M\-C contributions to the hit. 

0 if information is not stored. Renamed to get\-N\-M\-C\-Contributions. \begin{DoxyRefDesc}{Deprecated}
\item[{\bf Deprecated}]\begin{DoxySeeAlso}{See Also}
\doxyref{get\-N\-M\-C\-Contributions()}{p.}{classIMPL_1_1SimCalorimeterHitImpl_afb51d0a037b4c8cc65ebfd01c871d185} 
\end{DoxySeeAlso}
\end{DoxyRefDesc}


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



References get\-N\-M\-C\-Contributions(), and U\-T\-I\-L\-::\-L\-C\-Warning\-::print\-Warning().

\index{I\-M\-P\-L\-::\-Sim\-Calorimeter\-Hit\-Impl@{I\-M\-P\-L\-::\-Sim\-Calorimeter\-Hit\-Impl}!get\-Particle\-Cont@{get\-Particle\-Cont}}
\index{get\-Particle\-Cont@{get\-Particle\-Cont}!IMPL::SimCalorimeterHitImpl@{I\-M\-P\-L\-::\-Sim\-Calorimeter\-Hit\-Impl}}
\subsubsection[{get\-Particle\-Cont}]{\setlength{\rightskip}{0pt plus 5cm}{\bf E\-V\-E\-N\-T\-::\-M\-C\-Particle} $\ast$ I\-M\-P\-L\-::\-Sim\-Calorimeter\-Hit\-Impl\-::get\-Particle\-Cont (
\begin{DoxyParamCaption}
\item[{int}]{i}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily [virtual]}}\label{classIMPL_1_1SimCalorimeterHitImpl_a0ad48c0241f1d6e8f10bbf019928c10f}


Returns the M\-C\-Particle that caused the shower responsible for this contribution to the hit. 

This is the particle that flew into the calorimeter and not the shower particle that made the energy deposition. \begin{DoxySeeAlso}{See Also}
\doxyref{get\-N\-M\-C\-Contributions()}{p.}{classIMPL_1_1SimCalorimeterHitImpl_afb51d0a037b4c8cc65ebfd01c871d185} 
\end{DoxySeeAlso}


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

\index{I\-M\-P\-L\-::\-Sim\-Calorimeter\-Hit\-Impl@{I\-M\-P\-L\-::\-Sim\-Calorimeter\-Hit\-Impl}!get\-P\-D\-G\-Cont@{get\-P\-D\-G\-Cont}}
\index{get\-P\-D\-G\-Cont@{get\-P\-D\-G\-Cont}!IMPL::SimCalorimeterHitImpl@{I\-M\-P\-L\-::\-Sim\-Calorimeter\-Hit\-Impl}}
\subsubsection[{get\-P\-D\-G\-Cont}]{\setlength{\rightskip}{0pt plus 5cm}int I\-M\-P\-L\-::\-Sim\-Calorimeter\-Hit\-Impl\-::get\-P\-D\-G\-Cont (
\begin{DoxyParamCaption}
\item[{int}]{i}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily [virtual]}}\label{classIMPL_1_1SimCalorimeterHitImpl_a1172c142cb5a4443652ca750ad51ca91}


Returns the P\-D\-G code of the shower particle that caused this contribution. 

Check the flag word bit L\-C\-I\-O.\-C\-H\-B\-I\-T\-\_\-\-S\-T\-E\-P of the collection whether this information is available. \begin{DoxySeeAlso}{See Also}
\doxyref{get\-N\-M\-C\-Contributions()}{p.}{classIMPL_1_1SimCalorimeterHitImpl_afb51d0a037b4c8cc65ebfd01c871d185} 
\end{DoxySeeAlso}


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

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


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.\-C\-H\-B\-I\-T\-\_\-\-L\-O\-N\-G is set. 

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

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


Returns the time of the i-\/th in [ns] contribution to the hit. 

\begin{DoxySeeAlso}{See Also}
\doxyref{get\-N\-M\-C\-Contributions()}{p.}{classIMPL_1_1SimCalorimeterHitImpl_afb51d0a037b4c8cc65ebfd01c871d185} 
\end{DoxySeeAlso}


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

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


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

Default is to store only cellid0. \index{I\-M\-P\-L\-::\-Sim\-Calorimeter\-Hit\-Impl@{I\-M\-P\-L\-::\-Sim\-Calorimeter\-Hit\-Impl}!set\-Position@{set\-Position}}
\index{set\-Position@{set\-Position}!IMPL::SimCalorimeterHitImpl@{I\-M\-P\-L\-::\-Sim\-Calorimeter\-Hit\-Impl}}
\subsubsection[{set\-Position}]{\setlength{\rightskip}{0pt plus 5cm}void I\-M\-P\-L\-::\-Sim\-Calorimeter\-Hit\-Impl\-::set\-Position (
\begin{DoxyParamCaption}
\item[{const float}]{pos[3]}
\end{DoxyParamCaption}
)}\label{classIMPL_1_1SimCalorimeterHitImpl_a0cbcd5a2b818e8e7e12dfcb1fbd23684}


Sets the position. 

Not stored if L\-C\-I\-O.\-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 
Sim\-Calorimeter\-Hit\-Impl.\-h\item 
Sim\-Calorimeter\-Hit\-Impl.\-cc\end{DoxyCompactItemize}
