\section{marlintpc\-:\-:T\-P\-C\-Gas Class Reference}
\label{classmarlintpc_1_1TPCGas}\index{marlintpc\-::\-T\-P\-C\-Gas@{marlintpc\-::\-T\-P\-C\-Gas}}


The \doxyref{T\-P\-C\-Gas}{p.}{classmarlintpc_1_1TPCGas} is a helper class containing a parametrisation of some gas mixtures It can be used by processors thet need to know drift velocity or diffusion properties Usage\-: create a gas with a name, set E and B field, then values are available through the get functions.  




{\ttfamily \#include $<$T\-P\-C\-Gas.\-h$>$}

\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
{\bf T\-P\-C\-Gas} (std\-::string gasname)\label{classmarlintpc_1_1TPCGas_a0468730e891806fa396bfb9863344dc7}

\begin{DoxyCompactList}\small\item\em Constructor, gases are identified by names, e.\-g. \char`\"{}\-T\-D\-R\char`\"{},\char`\"{}\-P5\char`\"{}. \end{DoxyCompactList}\item 
{\bf $\sim$\-T\-P\-C\-Gas} ()\label{classmarlintpc_1_1TPCGas_a8d0caaa60012a0b9e28020f4bbd7f45b}

\begin{DoxyCompactList}\small\item\em Destructor. \end{DoxyCompactList}\item 
void {\bf Set\-E\-Field} (double E\-Field)\label{classmarlintpc_1_1TPCGas_aa10b483faf42a243468e67309949f960}

\begin{DoxyCompactList}\small\item\em Set the electric field, if field is changed call the Calculate\-Gas\-Parameters method again to obtain new values. \end{DoxyCompactList}\item 
double {\bfseries Get\-E\-Field} ()\label{classmarlintpc_1_1TPCGas_a304406feffe10bc46790f58f7ef0a5a2}

\item 
void {\bf Set\-B\-Field} (double B\-Field)\label{classmarlintpc_1_1TPCGas_a6b8b742af825c477e4634c4a747b0fb0}

\begin{DoxyCompactList}\small\item\em Set the magnetic field, if field is changed call the Calculate\-Gas\-Parameters method again to obtain new values. \end{DoxyCompactList}\item 
double {\bfseries Get\-B\-Field} ()\label{classmarlintpc_1_1TPCGas_a22d8506a52297a57c2de0153f36ab461}

\item 
double {\bf Get\-Drift\-Velocity} ()\label{classmarlintpc_1_1TPCGas_ad6d44fd93287ae16ae7b61a00ceadca2}

\begin{DoxyCompactList}\small\item\em returns the drift velocity in [mm/us] \end{DoxyCompactList}\item 
double {\bf Get\-Transverse\-Diffusion} ()\label{classmarlintpc_1_1TPCGas_a7f412abde687e96971bc21107a44f238}

\begin{DoxyCompactList}\small\item\em returns transverse diffusion in [um/sqrt(cm)] \end{DoxyCompactList}\item 
double {\bf Get\-Longitudinal\-Diffusion} ()\label{classmarlintpc_1_1TPCGas_acda6d3b9aa95e94e286a64c22dc9dce3}

\begin{DoxyCompactList}\small\item\em returns longitudinal diffusion in [um/sqrt(cm)] \end{DoxyCompactList}\item 
double {\bf Get\-Attachment} (double E\-Field, double dist)\label{classmarlintpc_1_1TPCGas_a57f9448e0256e961cf57992f8cebbb0e}

\begin{DoxyCompactList}\small\item\em calculate attachment over a given distance in cm \end{DoxyCompactList}\item 
void {\bf Calculate\-Gas\-Parameters} ()\label{classmarlintpc_1_1TPCGas_ad6edae1ec7b092c059449d286d2669b0}

\begin{DoxyCompactList}\small\item\em After name, E and B field are set call this function to calcuate the gas parameters. \end{DoxyCompactList}\item 
std\-::string {\bfseries Get\-Gas\-Name} ()\label{classmarlintpc_1_1TPCGas_a61f1e94ba7a50a0980c9750c67b649a3}

\end{DoxyCompactItemize}
\subsection*{Protected Member Functions}
\begin{DoxyCompactItemize}
\item 
void {\bfseries Calculate\-Transverse\-Diffusion} ()\label{classmarlintpc_1_1TPCGas_aa7cdb51a3a2e29812778239c15a75b7b}

\item 
double {\bf Evaluate\-E\-Field\-Dependence} (double a, double b, double c, double d, double e, double f, double g, double h, double i, double j, double k)\label{classmarlintpc_1_1TPCGas_a5b7db921c0669420fcea1c75dcdbbb01}

\begin{DoxyCompactList}\small\item\em used for v drift and diffusion and all gases, just the parameters change \end{DoxyCompactList}\item 
double {\bf Evaluate\-B\-Field\-Dependence} (double a, double b, double c, double d, double e, double f)\label{classmarlintpc_1_1TPCGas_a473cf0c550843baf4672bdb88c349042}

\begin{DoxyCompactList}\small\item\em used for transverse diffusion dependence on magnetic field \end{DoxyCompactList}\item 
void {\bfseries init\-T\-D\-R\-Gas} ()\label{classmarlintpc_1_1TPCGas_a2f7f650b7a986dd01da4c143aeb9a0c0}

\item 
void {\bfseries init\-P5\-Gas} ()\label{classmarlintpc_1_1TPCGas_a80d1df34c4b507ef2bf50c9b41f69e5f}

\item 
void {\bfseries init\-P10\-Gas} ()\label{classmarlintpc_1_1TPCGas_ac2074e947f6360d856f3f26f4c783e65}

\item 
void {\bfseries init\-T2\-K\-Gas} ()\label{classmarlintpc_1_1TPCGas_ab9354af6b74e1d77300f956971ad2aef}

\end{DoxyCompactItemize}
\subsection*{Protected Attributes}
\begin{DoxyCompactItemize}
\item 
double {\bfseries \-\_\-\-B\-Field}\label{classmarlintpc_1_1TPCGas_a33b6d9d30a79bc80136984737b29a4b5}

\item 
double {\bfseries \-\_\-\-E\-Field}\label{classmarlintpc_1_1TPCGas_afdee45fc2f823d6d11d9641706f6bc3e}

\item 
double {\bfseries \-\_\-vdrift}\label{classmarlintpc_1_1TPCGas_a4b0980420dd971dc3eecc61bb44692cb}

\item 
double {\bfseries \-\_\-diff\-Long}\label{classmarlintpc_1_1TPCGas_a1d038691b7030b809196d916f91f2b61}

\item 
double {\bfseries \-\_\-diff\-Trans}\label{classmarlintpc_1_1TPCGas_a14c0bcb952d9910d9daa67977cad5a57}

\item 
double {\bfseries \-\_\-attachment}\label{classmarlintpc_1_1TPCGas_a148356828b5039922ff2a9706ace85c6}

\item 
double {\bf \-\_\-d\-L\-\_\-params} [11]\label{classmarlintpc_1_1TPCGas_a6b1bd39d2d788ff62bb4dbc0e735c9f0}

\begin{DoxyCompactList}\small\item\em container for the parametrisation of longitudinal diffusion \end{DoxyCompactList}\item 
double {\bf \-\_\-vd\-\_\-params} [11]\label{classmarlintpc_1_1TPCGas_a5f775fe3e45c4945c6b89e9646162b9e}

\begin{DoxyCompactList}\small\item\em container for the parametrisation of drift velocity \end{DoxyCompactList}\item 
double {\bf \-\_\-d\-T\-\_\-params} [10][6]\label{classmarlintpc_1_1TPCGas_ae0b332605f97fd73bf476393d96aadc2}

\begin{DoxyCompactList}\small\item\em container for the parametrisation of transverse diffusion \end{DoxyCompactList}\item 
double {\bf \-\_\-att} [7]\label{classmarlintpc_1_1TPCGas_abfb5f010ec3674408f2bb4d25452fef9}

\begin{DoxyCompactList}\small\item\em container for parametrisation of attachment \end{DoxyCompactList}\item 
std\-::string {\bfseries \-\_\-gas\-Name}\label{classmarlintpc_1_1TPCGas_a6c6d118278d7ce6a16021e9c22c0effa}

\end{DoxyCompactItemize}


\subsection{Detailed Description}
The \doxyref{T\-P\-C\-Gas}{p.}{classmarlintpc_1_1TPCGas} is a helper class containing a parametrisation of some gas mixtures It can be used by processors thet need to know drift velocity or diffusion properties Usage\-: create a gas with a name, set E and B field, then values are available through the get functions. 

\begin{DoxyAuthor}{Author}
Astrid Muennich 
\end{DoxyAuthor}


The documentation for this class was generated from the following files\-:\begin{DoxyCompactItemize}
\item 
T\-P\-C\-Gas.\-h\item 
T\-P\-C\-Gas.\-cc\end{DoxyCompactItemize}
