\section{marlintpc\-:\-:Pad\-Response\-Function\-G\-E\-M Class Reference}
\label{classmarlintpc_1_1PadResponseFunctionGEM}\index{marlintpc\-::\-Pad\-Response\-Function\-G\-E\-M@{marlintpc\-::\-Pad\-Response\-Function\-G\-E\-M}}


Functionality to evaluate the pad response function for a hit.  




{\ttfamily \#include $<$Pad\-Response\-Function\-G\-E\-M.\-h$>$}

\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
{\bf Pad\-Response\-Function\-G\-E\-M} (double defocussing, double diffusion, const gear\-::\-T\-P\-C\-Parameters \&gearparameter)\label{classmarlintpc_1_1PadResponseFunctionGEM_af5303c93b5d562bd6c76d733ecf0294e}

\begin{DoxyCompactList}\small\item\em The constructor. \end{DoxyCompactList}\item 
bool {\bf Evaluate\-Hit} (lcio\-::\-Tracker\-Hit $\ast$hit, lcio\-::\-Track $\ast$track=N\-U\-L\-L)\label{classmarlintpc_1_1PadResponseFunctionGEM_a756a45a7ecf6d7d73f83974946deb778}

\begin{DoxyCompactList}\small\item\em returns true if a P\-R\-F correction was applied, returns false if Keep\-Centre\-Of\-Gravity\-Info was used \end{DoxyCompactList}\item 
double $\ast$ {\bf Get\-P\-R\-F\-Position} ()\label{classmarlintpc_1_1PadResponseFunctionGEM_a3769ee188f0016e11141d25f16599ade}

\begin{DoxyCompactList}\small\item\em P\-R\-F improved position in global coordinates. P\-R\-F acts in rphi or xy not in z, so this is a 2\-D position in global coordinates. \end{DoxyCompactList}\item 
double {\bf Get\-P\-R\-F\-Charge} ()\label{classmarlintpc_1_1PadResponseFunctionGEM_a672415573868f8acf96b0859826117d4}

\begin{DoxyCompactList}\small\item\em Hit charge given by the integral of the P\-R\-F. \end{DoxyCompactList}\item 
double {\bf Get\-P\-R\-F\-Charge\-Error} ()\label{classmarlintpc_1_1PadResponseFunctionGEM_a2cff9709ec299a0414045ee5c9db8e14}

\begin{DoxyCompactList}\small\item\em Error on the hit charge. \end{DoxyCompactList}\item 
bool {\bf Get\-P\-R\-F\-Succeeded} ()\label{classmarlintpc_1_1PadResponseFunctionGEM_a443bd2a39c1096a3ff8832018440c157}

\begin{DoxyCompactList}\small\item\em Option to check if the fit failed. A way to distinguish between the reseon the P\-R\-F was not used, either because enough pads or fit failed. \end{DoxyCompactList}\item 
void {\bf Set\-P\-R\-C\-Only} (int value)\label{classmarlintpc_1_1PadResponseFunctionGEM_a0edeefc0286c79c4b7e7a8b6fd0b1a6d}

\begin{DoxyCompactList}\small\item\em Option to check if the fit failed. A way to distinguish between the reseon the P\-R\-F was not used, either because enough pads or fit failed. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Protected Member Functions}
\begin{DoxyCompactItemize}
\item 
void {\bf Calculate\-Fixed\-Width} (lcio\-::\-Tracker\-Hit $\ast$hit, lcio\-::\-Track $\ast$track=N\-U\-L\-L)\label{classmarlintpc_1_1PadResponseFunctionGEM_ae965ed829988a3779bbca03190e51fff}

\begin{DoxyCompactList}\small\item\em Calculate the width to be fixed for the P\-R\-F fit from information from the hit and/or track based on a parametrisation. \end{DoxyCompactList}\item 
void {\bf Prepare\-Hit\-Data} (lcio\-::\-Tracker\-Hit $\ast$hit)\label{classmarlintpc_1_1PadResponseFunctionGEM_a64d0c5653c044b96f56d40af4cd5fdd5}

\begin{DoxyCompactList}\small\item\em prepare hit data, transfer info to fit object \end{DoxyCompactList}\item 
void {\bf Fit\-P\-R\-F} (lcio\-::\-Tracker\-Hit $\ast$hit, bool fix\-Charge=false)\label{classmarlintpc_1_1PadResponseFunctionGEM_abbb2ac7f2ff0a18635503dba43f0d7cc}

\begin{DoxyCompactList}\small\item\em Carry out the fit. \end{DoxyCompactList}\item 
void {\bf Calculate\-P\-R\-C} (lcio\-::\-Tracker\-Hit $\ast$hit)\label{classmarlintpc_1_1PadResponseFunctionGEM_a8ebc13ace31a1fefb9c3a541a28e7d5f}

\begin{DoxyCompactList}\small\item\em calculate only a position correction for the center of gravity based on parametrisation \end{DoxyCompactList}\item 
void {\bf Keep\-Centre\-Of\-Gravity\-Info} (lcio\-::\-Tracker\-Hit $\ast$hit)\label{classmarlintpc_1_1PadResponseFunctionGEM_a047d5b98074842837d92b92ff65833fe}

\begin{DoxyCompactList}\small\item\em In case a P\-R\-F is not needed we keep the information of the original hit via the centre of gravity. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Protected Attributes}
\begin{DoxyCompactItemize}
\item 
double {\bf \-\_\-defocussing}\label{classmarlintpc_1_1PadResponseFunctionGEM_a0a9da21aa9028a94ee1a0041a36b4c67}

\begin{DoxyCompactList}\small\item\em First paramter for the parametrisation of expected width\-: diffusion within gem stack sigma\-\_\-0$^\wedge$2 [mm$^\wedge$2]. \end{DoxyCompactList}\item 
double {\bf \-\_\-diffusion}\label{classmarlintpc_1_1PadResponseFunctionGEM_ad0417e6a97c397747ffa79118695a810}

\begin{DoxyCompactList}\small\item\em Second paramter for the parametrisation of expected width\-: diffusion in drift region D$^\wedge$2 [mm]. \end{DoxyCompactList}\item 
double {\bf \-\_\-fixed\-Width}\label{classmarlintpc_1_1PadResponseFunctionGEM_a2493fcc8eef8242325976db60cba6fc9}

\begin{DoxyCompactList}\small\item\em width for the gaussian fit \end{DoxyCompactList}\item 
double {\bf \-\_\-position}\label{classmarlintpc_1_1PadResponseFunctionGEM_acab0e9b8c1f7b6eb72d1c32e8783247b}

\begin{DoxyCompactList}\small\item\em position of the hit along the row in global coordinates \end{DoxyCompactList}\item 
double {\bf \-\_\-position\-Row}\label{classmarlintpc_1_1PadResponseFunctionGEM_a18743a431b7ede711345876a6d4f00de}

\begin{DoxyCompactList}\small\item\em position of the row of the hit in global coordinates, unaffected by P\-R\-F fit \end{DoxyCompactList}\item 
double {\bf \-\_\-prfpos} [2]\label{classmarlintpc_1_1PadResponseFunctionGEM_aa42ba16a3d020350969267238b39a727}

\begin{DoxyCompactList}\small\item\em position to give back \end{DoxyCompactList}\item 
double {\bf \-\_\-position\-Row\-Local}\label{classmarlintpc_1_1PadResponseFunctionGEM_af01f0928081feaf69ec20376a245ae9c}

\begin{DoxyCompactList}\small\item\em position of the row of the hit in local coordinates, unaffected by P\-R\-F fit \end{DoxyCompactList}\item 
double {\bf \-\_\-charge}\label{classmarlintpc_1_1PadResponseFunctionGEM_a782f91cd2a590bb603b4cd1d29ca67cd}

\begin{DoxyCompactList}\small\item\em charge of the hit as given by the integral \end{DoxyCompactList}\item 
double {\bfseries \-\_\-charge\-Err}\label{classmarlintpc_1_1PadResponseFunctionGEM_a6231854f5cdbe514e6d6bef135bc9180}

\item 
bool {\bf \-\_\-status}\label{classmarlintpc_1_1PadResponseFunctionGEM_aebf80ad0161811bc987c808fc8e2e357}

\begin{DoxyCompactList}\small\item\em status of prf evaluation, true if fits have worked \end{DoxyCompactList}\item 
bool {\bf \-\_\-fit\-O\-K}\label{classmarlintpc_1_1PadResponseFunctionGEM_a9b402917c895fe3de1caafb175c21c25}

\begin{DoxyCompactList}\small\item\em status of prf fit \end{DoxyCompactList}\item 
T\-Graph $\ast$ {\bf \-\_\-graph}\label{classmarlintpc_1_1PadResponseFunctionGEM_afb50acca727004580947492ee1aed0e7}

\begin{DoxyCompactList}\small\item\em object for fitting or calculation in local coordinates \end{DoxyCompactList}\item 
double {\bf \-\_\-max\-Charge}\label{classmarlintpc_1_1PadResponseFunctionGEM_a4426614d54af1815a1674a018db9a6d8}

\begin{DoxyCompactList}\small\item\em max charge filled in graph \end{DoxyCompactList}\item 
double {\bf \-\_\-max\-Pos}\label{classmarlintpc_1_1PadResponseFunctionGEM_a9e3e558db710d7f590e2e9a166514ee3}

\begin{DoxyCompactList}\small\item\em max position in graph \end{DoxyCompactList}\item 
double {\bf \-\_\-min}\label{classmarlintpc_1_1PadResponseFunctionGEM_a67823e0752787ca210f0a01f158e8859}

\begin{DoxyCompactList}\small\item\em range of graph \end{DoxyCompactList}\item 
double {\bfseries \-\_\-max}\label{classmarlintpc_1_1PadResponseFunctionGEM_a7832c79e49cefb3fa9b209e43123e27c}

\item 
const gear\-::\-T\-P\-C\-Parameters \& {\bf \-\_\-tpc\-Parameters}\label{classmarlintpc_1_1PadResponseFunctionGEM_af8337e63d12c68ac779731ec00c6ae63}

\begin{DoxyCompactList}\small\item\em access to gear information \end{DoxyCompactList}\item 
T\-F1 $\ast$ {\bf \-\_\-\-P\-R\-F\-Shift}\label{classmarlintpc_1_1PadResponseFunctionGEM_ad2e8ec3fa92867bea230b153ae930be8}

\begin{DoxyCompactList}\small\item\em prf parametrisation for flat region \end{DoxyCompactList}\item 
T\-F1 $\ast$ {\bf \-\_\-\-P\-R\-F}\label{classmarlintpc_1_1PadResponseFunctionGEM_ae58818c774f5a8822ed55c50e09d1b96}

\begin{DoxyCompactList}\small\item\em prf parametrisation \end{DoxyCompactList}\item 
int {\bf \-\_\-\-P\-R\-Conly}\label{classmarlintpc_1_1PadResponseFunctionGEM_aa8cc28881e10727ea7c704cb8584fc88}

\begin{DoxyCompactList}\small\item\em Switch to disable the fitting, just do the calculation of a correction (like in Multi\-Fit) \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
Functionality to evaluate the pad response function for a hit. 

This class is for G\-E\-M data where the P\-R\-F can be described as a gaussian. Goals are to improve the position of the hit, enable the correction of dead channels and channels in overrange.

\begin{DoxyAuthor}{Author}
A.\-Muennich, D\-E\-S\-Y 
\end{DoxyAuthor}


The documentation for this class was generated from the following files\-:\begin{DoxyCompactItemize}
\item 
Pad\-Response\-Function\-G\-E\-M.\-h\item 
Pad\-Response\-Function\-G\-E\-M.\-cc\end{DoxyCompactItemize}
