\section{Z\-H5\-C\-Fit Class Reference}
\label{classZH5CFit}\index{Z\-H5\-C\-Fit@{Z\-H5\-C\-Fit}}


An example processor for a kinematic fit.  




{\ttfamily \#include $<$Z\-H5\-C\-Fit.\-h$>$}

Inheritance diagram for Z\-H5\-C\-Fit\-:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2.000000cm]{classZH5CFit}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
virtual Processor $\ast$ {\bfseries new\-Processor} ()\label{classZH5CFit_a038c78c8c5fea1a85344286d5333312a}

\item 
virtual void {\bf init} ()
\begin{DoxyCompactList}\small\item\em Called at the begin of the job before anything is read. \end{DoxyCompactList}\item 
virtual void {\bf process\-Run\-Header} (L\-C\-Run\-Header $\ast$run)\label{classZH5CFit_a43d9d948bcae44cbfc364035522c97db}

\begin{DoxyCompactList}\small\item\em Called for every run. \end{DoxyCompactList}\item 
virtual void {\bf process\-Event} (L\-C\-Event $\ast$evt)\label{classZH5CFit_a31c6b4f6b37bd60ca8742a644bad263e}

\begin{DoxyCompactList}\small\item\em Called for every event -\/ the working horse. \end{DoxyCompactList}\item 
virtual void {\bfseries check} (L\-C\-Event $\ast$evt)\label{classZH5CFit_a5e373da23a09e87179a5f3313ae3ef2c}

\item 
virtual void {\bf end} ()\label{classZH5CFit_a5628f650ceb8b91b5617ea763269b9c4}

\begin{DoxyCompactList}\small\item\em Called after data processing for clean up. \end{DoxyCompactList}\item 
double {\bfseries Jet\-Energy\-Resolution} (double E)\label{classZH5CFit_aec7ca25f34ed066f70d476c5c3735cdb}

\end{DoxyCompactItemize}
\subsection*{Protected Attributes}
\begin{DoxyCompactItemize}
\item 
std\-::string {\bf \-\_\-jetcol\-Name}\label{classZH5CFit_a9b7a76caa76d4381d58da3d40f23503d}

\begin{DoxyCompactList}\small\item\em Input collection name. \end{DoxyCompactList}\item 
std\-::string {\bfseries \-\_\-name}\label{classZH5CFit_a9ea719d5efb711f0b557ee30eeb53020}

\item 
std\-::string {\bfseries \-\_\-\-Output\-Collection}\label{classZH5CFit_af2287a166b9cc4b2c24236aa5c4ad829}

\item 
float {\bf \-\_\-ecm}\label{classZH5CFit_a8124c8bcec0e785a597f955a1a18293c}

\begin{DoxyCompactList}\small\item\em Input parameter\-: center of mass energy. \end{DoxyCompactList}\item 
float {\bfseries \-\_\-isrpzmax}\label{classZH5CFit_ace65a5d0383ca37985c6b5f85d744efe}

\item 
int {\bfseries \-\_\-fit\-I\-S\-R}\label{classZH5CFit_a9291f20838a3b1406be293e4ca46fbea}

\item 
int {\bfseries \-\_\-ifitter}\label{classZH5CFit_a25a3af2181381b3eec9743c0644c3407}

\item 
int {\bfseries \-\_\-ievttrace}\label{classZH5CFit_a955eba75550474bbcbfafa2db32d5c54}

\item 
bool {\bfseries \-\_\-traceall}\label{classZH5CFit_a2c709b855f7d906b941ad8a2e3dba54e}

\item 
double {\bfseries \-\_\-errene}\label{classZH5CFit_a7c528ce4255ae51c9a826c85125051c7}

\item 
double {\bfseries \-\_\-errtheta}\label{classZH5CFit_a986d4e3040c1b84b6afed9f2ec0fe41f}

\item 
double {\bfseries \-\_\-errphi}\label{classZH5CFit_a02b798035fa6ca812955b7a5265bb7cd}

\item 
double {\bfseries b}\label{classZH5CFit_a1a536e2eb1e37cb55df6cc563073f801}

\item 
double {\bfseries I\-S\-R\-Pz\-Max\-B}\label{classZH5CFit_a6ab80b34c1392ecbaeda000fc0b4f736}

\item 
float {\bfseries prob}\label{classZH5CFit_abeee6591e4eb592474c6e7c8e7fc2679}

\item 
float {\bfseries bestprob}\label{classZH5CFit_a9481a572a8e497870a1d1aae2cdcc5f9}

\item 
float {\bfseries bestnit}\label{classZH5CFit_a9719a48d66a52e24de09404a1228c542}

\item 
float {\bfseries bestmass\-Z}\label{classZH5CFit_a916e0543036648ea6dea4e0653bc14ab}

\item 
float {\bfseries bestmass\-H}\label{classZH5CFit_af9b67c0b8f39e6c9d79afd68e0c1ec3d}

\item 
float {\bfseries beststartmass\-Z}\label{classZH5CFit_ae91990efaf3d9240d25e8021048bc6e0}

\item 
float {\bfseries beststartmass\-H}\label{classZH5CFit_a210b3e980bff3bc9e6227f7cf7c3f765}

\item 
float {\bfseries bestphotonenergy}\label{classZH5CFit_a7f7b2b9ae716c48e2fbaa8b71c09ea1e}

\item 
float {\bfseries startmass\-Z}\label{classZH5CFit_ad4891fc9c6ff6808c3de8bcd7129c49d}

\item 
float {\bfseries startmass\-H}\label{classZH5CFit_a9ee52d5146ebfdd7544db156f8126cdb}

\item 
float {\bfseries variable}\label{classZH5CFit_ab6472bd69c01002cffc1c2a7a01d5253}

\item 
float {\bfseries momentum} [3]\label{classZH5CFit_aa97d34589ee06b23cc66f3636eaac4a2}

\item 
float {\bfseries energy}\label{classZH5CFit_a4e9f1e68a7a10518a40012913110e50e}

\item 
int {\bfseries \-\_\-n\-Run}\label{classZH5CFit_a51a091cbc59db6fab42ad0140902dc03}

\item 
int {\bfseries \-\_\-n\-Evt}\label{classZH5CFit_a0ba9f708a4824ea5c850a3e52a9ac4ee}

\item 
int {\bfseries nit}\label{classZH5CFit_afac20b607b50c98c74449174edcc9459}

\item 
int {\bfseries bestperm}\label{classZH5CFit_ad09472dfd900007359f74bc94f199beb}

\item 
int {\bfseries errorflag}\label{classZH5CFit_ac2f7358d346b3b5325c35c90d09f1117}

\end{DoxyCompactItemize}


\subsection{Detailed Description}
An example processor for a kinematic fit. 

... testing a W+\-W-\/ -\/$>$ 4jets hypothesis with energy and momentum conservation and an equal mass constraint

\subparagraph*{Input -\/ Prerequisites}

Needs 4 reconstructed jets

\subparagraph*{Output}

A histogram.


\begin{DoxyParams}{Parameters}
{\em Collection\-Name} & Name of the Reconstructed\-Particle collection\\
\hline
\end{DoxyParams}
\begin{DoxyAuthor}{Author}
J. List, D\-E\-S\-Y 
\end{DoxyAuthor}
\begin{DoxyVersion}{Version}

\end{DoxyVersion}
\begin{DoxyParagraph}{Id\-:}
\doxyref{Z\-H5\-C\-Fit.\-h}{p.}{ZH5CFit_8h_source},v 1.\-2 2010/07/19 23\-:41\-:46 mbeckman Exp 
\end{DoxyParagraph}


\subsection{Member Function Documentation}
\index{Z\-H5\-C\-Fit@{Z\-H5\-C\-Fit}!init@{init}}
\index{init@{init}!ZH5CFit@{Z\-H5\-C\-Fit}}
\subsubsection[{init}]{\setlength{\rightskip}{0pt plus 5cm}void Z\-H5\-C\-Fit\-::init (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [virtual]}}\label{classZH5CFit_a8c065a9e383905c8e9ca536102a09f8b}


Called at the begin of the job before anything is read. 

Use to initialize the processor, e.\-g. book histograms. 

References \-\_\-ecm.



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