\section{U\-T\-I\-L\-:\-:I\-L\-D\-Cell\-I\-D0 Struct Reference}
\label{structUTIL_1_1ILDCellID0}\index{U\-T\-I\-L\-::\-I\-L\-D\-Cell\-I\-D0@{U\-T\-I\-L\-::\-I\-L\-D\-Cell\-I\-D0}}


Helper class to define constants for the canonical encoding of the Cell\-I\-D0 in tracking sub detectors in I\-L\-D (or I\-L\-D like detectors).  




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

\subsection*{Static Public Attributes}
\begin{DoxyCompactItemize}
\item 
static std\-::string {\bf encoder\-\_\-string} = \char`\"{}subdet\-:5,side\-:-\/2,layer\-:9,module\-:8,sensor\-:8\char`\"{}
\begin{DoxyCompactList}\small\item\em The canonical encoding string to be used for writing the Cell\-I\-D0 with the Cell\-I\-D\-Encoder$<$\-T$>$\-: \end{DoxyCompactList}\item 
static const unsigned {\bf subdet} = 0
\begin{DoxyCompactList}\small\item\em \doxyref{Index}{p.}{structIndex} of the field subdet in encoder\-\_\-string -\/ sub detector Id as defined in Det\-I\-D, e.\-g. \end{DoxyCompactList}\item 
static const unsigned {\bf side} = 1\label{structUTIL_1_1ILDCellID0_af4c6826811c2de2d728c4c645219d339}

\begin{DoxyCompactList}\small\item\em \doxyref{Index}{p.}{structIndex} of the field side in encoder\-\_\-string -\/ one of Det\-I\-D\-::bwd, Det\-I\-D\-::barrel, Det\-I\-D\-::fwd. \end{DoxyCompactList}\item 
static const unsigned {\bf layer} = 2\label{structUTIL_1_1ILDCellID0_a55af94a7905c97b424fdfd3dc1965556}

\begin{DoxyCompactList}\small\item\em \doxyref{Index}{p.}{structIndex} of the field layer in encoder\-\_\-string -\/ local sub detector layer I\-D starting from 0 going away from the origin (I\-P). \end{DoxyCompactList}\item 
static const unsigned {\bf module} = 3
\begin{DoxyCompactList}\small\item\em \doxyref{Index}{p.}{structIndex} of the field module in encoder\-\_\-string -\/ module I\-D as defined for the given subdetetor. \end{DoxyCompactList}\item 
static const unsigned {\bf sensor} = 4
\begin{DoxyCompactList}\small\item\em \doxyref{Index}{p.}{structIndex} of the field sensor in encoder\-\_\-string -\/ sensor I\-D as defined for the given subdetetor module. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
Helper class to define constants for the canonical encoding of the Cell\-I\-D0 in tracking sub detectors in I\-L\-D (or I\-L\-D like detectors). 

F.\-Gaede, D\-E\-S\-Y, 2011 \begin{DoxyVersion}{Version}
\$\-Id\-:\$ 
\end{DoxyVersion}


\subsection{Member Data Documentation}
\index{U\-T\-I\-L\-::\-I\-L\-D\-Cell\-I\-D0@{U\-T\-I\-L\-::\-I\-L\-D\-Cell\-I\-D0}!encoder\-\_\-string@{encoder\-\_\-string}}
\index{encoder\-\_\-string@{encoder\-\_\-string}!UTIL::ILDCellID0@{U\-T\-I\-L\-::\-I\-L\-D\-Cell\-I\-D0}}
\subsubsection[{encoder\-\_\-string}]{\setlength{\rightskip}{0pt plus 5cm}std\-::string U\-T\-I\-L\-::\-I\-L\-D\-Cell\-I\-D0\-::encoder\-\_\-string = \char`\"{}subdet\-:5,side\-:-\/2,layer\-:9,module\-:8,sensor\-:8\char`\"{}\hspace{0.3cm}{\ttfamily [static]}}\label{structUTIL_1_1ILDCellID0_a92b0d58ddabf99fad64c09ab7f3ddcf3}


The canonical encoding string to be used for writing the Cell\-I\-D0 with the Cell\-I\-D\-Encoder$<$\-T$>$\-: 


\begin{DoxyPre}"subdet:5,side:-2,layer:9,module:8:sensor:8"\end{DoxyPre}


Use the Cell\-Id\-Decoder to access the elements\-: 
\begin{DoxyPre}
    CellIDDecoder<TrackerHit> idDec( trkHitCol ) ;
     // ...
     TrackerHit* hit = (TrackerHit*) trkHitCol.getElementAt( i ) ;\end{DoxyPre}



\begin{DoxyPre}     int layer  = idDec( hit )[ \doxyref{ILDCellID0::layer}{p.}{structUTIL_1_1ILDCellID0_a55af94a7905c97b424fdfd3dc1965556} ] ;
 \end{DoxyPre}
 \index{U\-T\-I\-L\-::\-I\-L\-D\-Cell\-I\-D0@{U\-T\-I\-L\-::\-I\-L\-D\-Cell\-I\-D0}!module@{module}}
\index{module@{module}!UTIL::ILDCellID0@{U\-T\-I\-L\-::\-I\-L\-D\-Cell\-I\-D0}}
\subsubsection[{module}]{\setlength{\rightskip}{0pt plus 5cm}const unsigned U\-T\-I\-L\-::\-I\-L\-D\-Cell\-I\-D0\-::module = 3\hspace{0.3cm}{\ttfamily [static]}}\label{structUTIL_1_1ILDCellID0_ae865d90bbe5b5d25a182f0605e0279a8}


\doxyref{Index}{p.}{structIndex} of the field module in encoder\-\_\-string -\/ module I\-D as defined for the given subdetetor. 

\index{U\-T\-I\-L\-::\-I\-L\-D\-Cell\-I\-D0@{U\-T\-I\-L\-::\-I\-L\-D\-Cell\-I\-D0}!sensor@{sensor}}
\index{sensor@{sensor}!UTIL::ILDCellID0@{U\-T\-I\-L\-::\-I\-L\-D\-Cell\-I\-D0}}
\subsubsection[{sensor}]{\setlength{\rightskip}{0pt plus 5cm}const unsigned U\-T\-I\-L\-::\-I\-L\-D\-Cell\-I\-D0\-::sensor = 4\hspace{0.3cm}{\ttfamily [static]}}\label{structUTIL_1_1ILDCellID0_a2c2205ad3fe828ceba21534451f5542d}


\doxyref{Index}{p.}{structIndex} of the field sensor in encoder\-\_\-string -\/ sensor I\-D as defined for the given subdetetor module. 

\index{U\-T\-I\-L\-::\-I\-L\-D\-Cell\-I\-D0@{U\-T\-I\-L\-::\-I\-L\-D\-Cell\-I\-D0}!subdet@{subdet}}
\index{subdet@{subdet}!UTIL::ILDCellID0@{U\-T\-I\-L\-::\-I\-L\-D\-Cell\-I\-D0}}
\subsubsection[{subdet}]{\setlength{\rightskip}{0pt plus 5cm}const unsigned U\-T\-I\-L\-::\-I\-L\-D\-Cell\-I\-D0\-::subdet = 0\hspace{0.3cm}{\ttfamily [static]}}\label{structUTIL_1_1ILDCellID0_a55a1ac8a222eac65cfdee8f33a36d2f6}


\doxyref{Index}{p.}{structIndex} of the field subdet in encoder\-\_\-string -\/ sub detector Id as defined in Det\-I\-D, e.\-g. 

Det\-I\-D\-::\-V\-X\-D or Det\-I\-D\-::\-F\-T\-D. 

The documentation for this struct was generated from the following files\-:\begin{DoxyCompactItemize}
\item 
I\-L\-D\-Conf.\-h\item 
I\-L\-D\-Conf.\-cc\end{DoxyCompactItemize}
