\section{gear\-:\-:Material\-Map Class Reference}
\label{classgear_1_1MaterialMap}\index{gear\-::\-Material\-Map@{gear\-::\-Material\-Map}}


Material map using \doxyref{Gear\-Distance\-Properties}{p.}{classgear_1_1GearDistanceProperties}.  




{\ttfamily \#include $<$Material\-Map.\-h$>$}

\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
{\bf Material\-Map} ({\bf Gear\-Mgr} $\ast$gear\-Mgr, double xmin, double xmax, int nxsteps, double ymin, double ymax, int nysteps, double zmin, double zmax, int nzsteps, int coord)
\begin{DoxyCompactList}\small\item\em Should be called through the Material\-Map\-Factory! Creating a material map in memory. \end{DoxyCompactList}\item 
virtual {\bf $\sim$\-Material\-Map} ()\label{classgear_1_1MaterialMap_a706ad7a0540f09d3c95acd90e52dcd38}

\begin{DoxyCompactList}\small\item\em Destructor. \end{DoxyCompactList}\item 
double {\bf get\-Interaction\-Length} (double x, double y, double z) const   throw (\-Exception, std\-::exception )\label{classgear_1_1MaterialMap_a2ed138d8396f5cd1967286c9b1596148}

\begin{DoxyCompactList}\small\item\em Returns the interaction length from the vertex at (0,0,0) to (x,y,z) using a distance wheighted interpolation of the neighbouring grid point values. \end{DoxyCompactList}\item 
double {\bf get\-Radiation\-Length} (double x, double y, double z) const   throw (\-Exception, std\-::exception )\label{classgear_1_1MaterialMap_afdf4fb33bab87099c19f766b79408cc3}

\begin{DoxyCompactList}\small\item\em Returns the radiation length from the vertex at (0,0,0) to (x,y,z) using a distance wheighted interpolation of the neighbouring grid point values. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Static Public Attributes}
\begin{DoxyCompactItemize}
\item 
static const int {\bf C\-A\-R\-T\-E\-S\-I\-A\-N} = 0\label{classgear_1_1MaterialMap_af7d20569ddabfee257ffde330767c076}

\begin{DoxyCompactList}\small\item\em coord=0 \-: C\-A\-R\-T\-E\-S\-I\-A\-N (x,y,z) \end{DoxyCompactList}\item 
static const int {\bf C\-Y\-L\-I\-N\-D\-R\-I\-C\-A\-L} = 1\label{classgear_1_1MaterialMap_ae98bf33bdfa18bbe76656832046000d1}

\begin{DoxyCompactList}\small\item\em coord=1 \-: C\-Y\-L\-I\-N\-D\-R\-I\-C\-A\-L (r,phi,z) \end{DoxyCompactList}\item 
static const int {\bf S\-P\-H\-E\-R\-I\-C\-A\-L} = 2\label{classgear_1_1MaterialMap_af757f39d4eb88aadde7a16dc440840cf}

\begin{DoxyCompactList}\small\item\em coord=2 \-: S\-P\-E\-R\-I\-C\-A\-L (r,theta,phi) \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Protected Member Functions}
\begin{DoxyCompactItemize}
\item 
void {\bfseries calculate\-Grid\-Index} (std\-::vector$<$ int $>$ \&gpos, double x, double y, double z) const   throw (\-Exception, std\-::exception )\label{classgear_1_1MaterialMap_ae0da06f5357a0075643dfa39a68fb276}

\item 
void {\bfseries interpolate\-On\-Grid} (std\-::pair$<$ double, double $>$ \&result, double x, double y, double z) const \label{classgear_1_1MaterialMap_ac8624ad37d8f8b4f113852b0c0339eb4}

\end{DoxyCompactItemize}
\subsection*{Protected Attributes}
\begin{DoxyCompactItemize}
\item 
double {\bfseries \-\_\-xmin}\label{classgear_1_1MaterialMap_a31d3271f98c58107f6981fbe8f7cb6a6}

\item 
double {\bfseries \-\_\-xmax}\label{classgear_1_1MaterialMap_ab5de74eb8312af4e7b50e483f02b6906}

\item 
int {\bfseries \-\_\-nxsteps}\label{classgear_1_1MaterialMap_a58f4c07e11d4c6ab9a5f5dee0a53e473}

\item 
double {\bfseries \-\_\-ymin}\label{classgear_1_1MaterialMap_a28d543c1f90def9732e4187027faa98a}

\item 
double {\bfseries \-\_\-ymax}\label{classgear_1_1MaterialMap_a2afd8fe02b55515a1c7e963347dd187f}

\item 
int {\bfseries \-\_\-nysteps}\label{classgear_1_1MaterialMap_aafe766bc1009351105b22e761d2211aa}

\item 
double {\bfseries \-\_\-zmin}\label{classgear_1_1MaterialMap_ad5459ad619c3e9e31ccbe8f1145adc9f}

\item 
double {\bfseries \-\_\-zmax}\label{classgear_1_1MaterialMap_a08d71cb7d305fb48c14eb78d55293e08}

\item 
int {\bfseries \-\_\-nzsteps}\label{classgear_1_1MaterialMap_ad1804dec2cd02f1c57116bd0ed0c6165}

\item 
double {\bfseries \-\_\-xstep}\label{classgear_1_1MaterialMap_acee2b8034854acaf63cd68741aa9df74}

\item 
double {\bfseries \-\_\-ystep}\label{classgear_1_1MaterialMap_afa9d1f3df256d1603600c3bc97097e39}

\item 
double {\bfseries \-\_\-zstep}\label{classgear_1_1MaterialMap_af7dd379616813499decb98751a350d05}

\item 
std\-::pair$<$ double, double $>$ {\bfseries \-\_\-values}\label{classgear_1_1MaterialMap_abcb465e26658c6639631049431da2559}

\item 
std\-::vector$<$ std\-::vector\\*
$<$ std\-::vector$<$ std\-::pair\\*
$<$ double, double $>$ $>$ $>$ $>$ {\bfseries \-\_\-my\-Map}\label{classgear_1_1MaterialMap_a67a25951643baa32ef98c47e6f6e8dea}

\end{DoxyCompactItemize}


\subsection{Detailed Description}
Material map using \doxyref{Gear\-Distance\-Properties}{p.}{classgear_1_1GearDistanceProperties}. 

\begin{DoxyAuthor}{Author}
A. Muennich, C\-E\-R\-N 
\end{DoxyAuthor}
\begin{DoxyVersion}{Version}

\end{DoxyVersion}
\begin{DoxyParagraph}{Id\-:}
\doxyref{Material\-Map.\-h}{p.}{MaterialMap_8h_source} 380 2011-\/08-\/26 12\-:24\-:46\-Z gaede 
\end{DoxyParagraph}


Definition at line 16 of file Material\-Map.\-h.



\subsection{Constructor \& Destructor Documentation}
\index{gear\-::\-Material\-Map@{gear\-::\-Material\-Map}!Material\-Map@{Material\-Map}}
\index{Material\-Map@{Material\-Map}!gear::MaterialMap@{gear\-::\-Material\-Map}}
\subsubsection[{Material\-Map}]{\setlength{\rightskip}{0pt plus 5cm}gear\-::\-Material\-Map\-::\-Material\-Map (
\begin{DoxyParamCaption}
\item[{{\bf Gear\-Mgr} $\ast$}]{gear\-Mgr, }
\item[{double}]{xmin, }
\item[{double}]{xmax, }
\item[{int}]{nxsteps, }
\item[{double}]{ymin, }
\item[{double}]{ymax, }
\item[{int}]{nysteps, }
\item[{double}]{zmin, }
\item[{double}]{zmax, }
\item[{int}]{nzsteps, }
\item[{int}]{coord}
\end{DoxyParamCaption}
)}\label{classgear_1_1MaterialMap_a7adc0ec766d7907e06259fb6a397b6f6}


Should be called through the Material\-Map\-Factory! Creating a material map in memory. 

Three coordinate systems are supported\-: coord=0 \-: C\-A\-R\-T\-E\-S\-I\-A\-N (x,y,z) coord=1 \-: C\-Y\-L\-I\-N\-D\-R\-I\-C\-A\-L (r,phi,z) with r$>$0, 0$<$phi$<$2\-Pi coord=2 \-: S\-P\-E\-R\-I\-C\-A\-L (r,theta,phi) with r$>$0, 0$<$theta$<$Pi 0$<$phi$<$2\-Pi With the vector grid containing min and max (the beginning and the end of the map) and the number of steps that defines the granularity of the map. 

Definition at line 11 of file Material\-Map.\-cc.



References C\-A\-R\-T\-E\-S\-I\-A\-N, C\-Y\-L\-I\-N\-D\-R\-I\-C\-A\-L, gear\-::\-Gear\-Mgr\-::get\-Distance\-Properties(), gear\-::\-Gear\-Distance\-Properties\-::get\-N\-Intlen(), gear\-::\-Gear\-Distance\-Properties\-::get\-N\-Radlen(), and S\-P\-H\-E\-R\-I\-C\-A\-L.



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