\section{W\-W5\-C\-Fit Class Reference}
\label{classWW5CFit}\index{W\-W5\-C\-Fit@{W\-W5\-C\-Fit}}


An example processor for a kinematic fit.  




{\ttfamily \#include $<$W\-W5\-C\-Fit.\-h$>$}

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

\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{classWW5CFit_aabe9fa7ee6db2a932808fdc0e50284d7}

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

\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{classWW5CFit_ae37c30ee439c54aa4690f574c1531417}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

\item 
float {\bfseries bestmass1}\label{classWW5CFit_a2ab96ff74847975b814dd052c4aa6f1b}

\item 
float {\bfseries bestmass2}\label{classWW5CFit_a11cb5744d5369cb222b0584260cbf672}

\item 
float {\bfseries beststartmass1}\label{classWW5CFit_a4713c5e32f957040a97374f82b628272}

\item 
float {\bfseries beststartmass2}\label{classWW5CFit_a5fa55a951e47d9c2afa69f2f0addc2db}

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

\item 
float {\bfseries startmass1}\label{classWW5CFit_ab25fa27d8622b8067d79547035e44f47}

\item 
float {\bfseries startmass2}\label{classWW5CFit_aea505129134f5a612d673f02206736d3}

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

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

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

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

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

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

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

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

\item 
Top\-Event\-I\-L\-C $\ast$ {\bfseries topevent}\label{classWW5CFit_a99284f4570fd0c8b36dc9e9a67a0bfd5}

\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{W\-W5\-C\-Fit.\-h}{p.}{WW5CFit_8h_source},v 1.\-2 2010/07/19 23\-:41\-:46 mbeckman Exp 
\end{DoxyParagraph}


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


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 
W\-W5\-C\-Fit.\-h\item 
W\-W5\-C\-Fit.\-cc\end{DoxyCompactItemize}
