\section{marlintpc\-:\-:Histogram\-Width\-Extraction\-Tools Class Reference}
\label{classmarlintpc_1_1HistogramWidthExtractionTools}\index{marlintpc\-::\-Histogram\-Width\-Extraction\-Tools@{marlintpc\-::\-Histogram\-Width\-Extraction\-Tools}}


A collection of tools to evaluate the width of a distribution in a histogram.  




{\ttfamily \#include $<$Histogram\-Width\-Extraction\-Tools.\-h$>$}

\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
{\bf Histogram\-Width\-Extraction\-Tools} ()\label{classmarlintpc_1_1HistogramWidthExtractionTools_ab3ade16e7c89db4dc1d56eae337cb66f}

\begin{DoxyCompactList}\small\item\em constructor \end{DoxyCompactList}\item 
virtual {\bf $\sim$\-Histogram\-Width\-Extraction\-Tools} ()\label{classmarlintpc_1_1HistogramWidthExtractionTools_af9ecec410d06b2be610d0eae894ba4ed}

\begin{DoxyCompactList}\small\item\em destructor \end{DoxyCompactList}\item 
void {\bf Calculate} (T\-H1 $\ast$histogram, int method=1)
\begin{DoxyCompactList}\small\item\em Function to calculate width and mean and errors of the given histogram to be evaluated using the chosen method. \end{DoxyCompactList}\item 
double {\bf Get\-Width} ()\label{classmarlintpc_1_1HistogramWidthExtractionTools_af631012793d0715cda460a3daa0fd48e}

\begin{DoxyCompactList}\small\item\em Function giving back the width as a measure for the resolution for the chosen method. \end{DoxyCompactList}\item 
double {\bf Get\-Width\-Error} ()\label{classmarlintpc_1_1HistogramWidthExtractionTools_add7483beb287a0b66d21a44d4c0a938f}

\begin{DoxyCompactList}\small\item\em Function giving back the error on the width for the chosen method. \end{DoxyCompactList}\item 
double {\bf Get\-Mean} ()\label{classmarlintpc_1_1HistogramWidthExtractionTools_a3f2841c9647c0cb89eaa703ca0d18594}

\begin{DoxyCompactList}\small\item\em Function giving back the mean for the chosen method. \end{DoxyCompactList}\item 
double {\bf Get\-Mean\-Error} ()\label{classmarlintpc_1_1HistogramWidthExtractionTools_a81561935d12631489ad4fa9b901440b5}

\begin{DoxyCompactList}\small\item\em Function giving back the error on the mean for the chosen method. \end{DoxyCompactList}\item 
double {\bf Get\-Height} ()\label{classmarlintpc_1_1HistogramWidthExtractionTools_af2122cabed1b06fb3bb0390c63a7b4eb}

\begin{DoxyCompactList}\small\item\em Function giving back the height for the chosen method. \end{DoxyCompactList}\item 
double {\bf Get\-Height\-Error} ()\label{classmarlintpc_1_1HistogramWidthExtractionTools_a57d3f8567002c8f750fd800f54981f42}

\begin{DoxyCompactList}\small\item\em Function giving back the error on the height for the chosen method. \end{DoxyCompactList}\item 
std\-::pair$<$ double, double $>$ {\bf Get\-Range} ()\label{classmarlintpc_1_1HistogramWidthExtractionTools_a3bf67fad01886aaf2a35379c39d1d1d8}

\begin{DoxyCompactList}\small\item\em Function giving back the range used in the method. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
A collection of tools to evaluate the width of a distribution in a histogram. 

Available methods\-:
\begin{DoxyEnumerate}
\item R\-M\-S90
\item Gaussian fit within range of 3 sigma
\item rms after 5 sigma iterative cut of tails 
\end{DoxyEnumerate}

\subsection{Member Function Documentation}
\index{marlintpc\-::\-Histogram\-Width\-Extraction\-Tools@{marlintpc\-::\-Histogram\-Width\-Extraction\-Tools}!Calculate@{Calculate}}
\index{Calculate@{Calculate}!marlintpc::HistogramWidthExtractionTools@{marlintpc\-::\-Histogram\-Width\-Extraction\-Tools}}
\subsubsection[{Calculate}]{\setlength{\rightskip}{0pt plus 5cm}void marlintpc\-::\-Histogram\-Width\-Extraction\-Tools\-::\-Calculate (
\begin{DoxyParamCaption}
\item[{T\-H1 $\ast$}]{histogram, }
\item[{int}]{method = {\ttfamily 1}}
\end{DoxyParamCaption}
)}\label{classmarlintpc_1_1HistogramWidthExtractionTools_ad73525c9eebe027636155ad746bc9ada}


Function to calculate width and mean and errors of the given histogram to be evaluated using the chosen method. 

method=1\-: R\-M\-S90 method=2\-: Gaussian fit within range of 3 sigma method=3\-: rms after 5 sigma iterative cut of tails method=4\-: Gaussian fit within range of 3 sigma only on the rising slope for asymmetric shapes 

The documentation for this class was generated from the following files\-:\begin{DoxyCompactItemize}
\item 
Histogram\-Width\-Extraction\-Tools.\-h\item 
Histogram\-Width\-Extraction\-Tools.\-cc\end{DoxyCompactItemize}
