\section{U\-T\-I\-L\-:\-:Cell\-I\-D\-Encoder$<$ T $>$ Class Template Reference}
\label{classUTIL_1_1CellIDEncoder}\index{U\-T\-I\-L\-::\-Cell\-I\-D\-Encoder$<$ T $>$@{U\-T\-I\-L\-::\-Cell\-I\-D\-Encoder$<$ T $>$}}


Specialization for Sim\-Tracker\-Hits that have only one cell\-I\-D.  




{\ttfamily \#include $<$U\-T\-I\-L/\-Cell\-I\-D\-Encoder.\-h$>$}

Inheritance diagram for U\-T\-I\-L\-:\-:Cell\-I\-D\-Encoder$<$ T $>$\-:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=3.000000cm]{classUTIL_1_1CellIDEncoder}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
{\bf Cell\-I\-D\-Encoder} (const std\-::string \&cell\-I\-D\-Encoding, {\bf E\-V\-E\-N\-T\-::\-L\-C\-Collection} $\ast$col)\label{classUTIL_1_1CellIDEncoder_acd59718c894343a84f935907e8f20131}

\begin{DoxyCompactList}\small\item\em Constructor, sets collection parameter L\-C\-I\-O\-::\-Cell\-I\-D\-Encoding to the given encoding string. \end{DoxyCompactList}\item 
void {\bfseries set\-Cell\-I\-D} (T $\ast$hit)\label{classUTIL_1_1CellIDEncoder_a0bd83acba500a3a0ab7cb85f444f994a}

\item 
void {\bf set\-Cell\-I\-D\-Flag} ()\label{classUTIL_1_1CellIDEncoder_a213375d3ceafc7dc45b44faec77c6a8d}

\begin{DoxyCompactList}\small\item\em Helper method that sets/unsets the proper bit for storing a second cellid word. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Protected Attributes}
\begin{DoxyCompactItemize}
\item 
{\bf E\-V\-E\-N\-T\-::\-L\-C\-Collection} $\ast$ {\bfseries \-\_\-col}\label{classUTIL_1_1CellIDEncoder_a69080fb89e8eb583ddd4e5cf633a7996}

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


\subsection{Detailed Description}
\subsubsection*{template$<$class T$>$class U\-T\-I\-L\-::\-Cell\-I\-D\-Encoder$<$ T $>$}

Specialization for Sim\-Tracker\-Hits that have only one cell\-I\-D. 

Convenient class for encoding cell\-I\-Ds for various hit objects. It sets the proper collection parameter L\-C\-I\-O\-::\-Cell\-I\-D\-Encoding and sets the proper flag bit for storing a second cellid if necessary. See \doxyref{U\-T\-I\-L\-::\-Bit\-Field64}{p.}{classUTIL_1_1BitField64} for a description of the encoding string. Example\-:\par
 ~ Cell\-I\-D\-Encoder$<$\-Sim\-Calorimeter\-Hit\-Impl$>$ cd( \char`\"{}i\-:20,j\-:20,k\-:20\char`\"{} ,cal\-Vec ) ;\par
 ~ for(int j=0;j$<$N\-H\-I\-T\-S;j++)\{\par
 ~~ Sim\-Calorimeter\-Hit\-Impl$\ast$ hit = new Sim\-Calorimeter\-Hit\-Impl ;\par
 ~~ cd[\char`\"{}i\char`\"{}] = j ;\par
 ~~ cd[\char`\"{}j\char`\"{}] = j + 100 ;\par
 ~~ cd[\char`\"{}k\char`\"{}] = j + 200 ;\par
 ~~ cd.\-set\-Cell\-I\-D( hit ) ;\par
 ~ \} \par


\begin{DoxySeeAlso}{See Also}
\doxyref{Bit\-Field64}{p.}{classUTIL_1_1BitField64} 
\end{DoxySeeAlso}
\begin{DoxyVersion}{Version}

\end{DoxyVersion}
\begin{DoxyParagraph}{Id\-:}
\doxyref{Cell\-I\-D\-Encoder.\-h}{p.}{CellIDEncoder_8h_source},v 1.\-6 2008-\/01-\/22 14\-:38\-:55 gaede Exp 
\end{DoxyParagraph}


The documentation for this class was generated from the following file\-:\begin{DoxyCompactItemize}
\item 
Cell\-I\-D\-Encoder.\-h\end{DoxyCompactItemize}
