\section{Jet\-Fit\-Object Class Reference}
\label{classJetFitObject}\index{Jet\-Fit\-Object@{Jet\-Fit\-Object}}


Class for jets with (E, eta, phi) in kinematic fits.  




{\ttfamily \#include $<$Jet\-Fit\-Object.\-h$>$}

Inheritance diagram for Jet\-Fit\-Object\-:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=3.000000cm]{classJetFitObject}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
{\bfseries Jet\-Fit\-Object} (double E, double theta, double phi, double D\-E, double Dtheta, double Dphi, double m=0)\label{classJetFitObject_a16d19a76abe4101282b54f391a1d1bc6}

\item 
{\bf Jet\-Fit\-Object} (const {\bf Jet\-Fit\-Object} \&rhs)
\begin{DoxyCompactList}\small\item\em Copy constructor. \end{DoxyCompactList}\item 
{\bf Jet\-Fit\-Object} \& {\bf operator=} (const {\bf Jet\-Fit\-Object} \&rhs)
\begin{DoxyCompactList}\small\item\em Assignment. \end{DoxyCompactList}\item 
virtual {\bf Jet\-Fit\-Object} $\ast$ {\bf copy} () const \label{classJetFitObject_a848fee1e83a558a7911310d99cbb0c4b}

\begin{DoxyCompactList}\small\item\em Return a new copy of itself. \end{DoxyCompactList}\item 
virtual {\bf Jet\-Fit\-Object} \& {\bf assign} (const {\bf Base\-Fit\-Object} \&source)
\begin{DoxyCompactList}\small\item\em Assign from anther object, if of same type. \end{DoxyCompactList}\item 
virtual const char $\ast$ {\bf get\-Param\-Name} (int ilocal) const 
\begin{DoxyCompactList}\small\item\em Get name of parameter ilocal. \end{DoxyCompactList}\item 
virtual bool {\bf update\-Params} (double p[$\,$], int idim)
\begin{DoxyCompactList}\small\item\em Read values from global vector, readjust vector; return\-: significant change. \end{DoxyCompactList}\item 
virtual int {\bf get\-N\-Par} () const \label{classJetFitObject_aac368077535db03c002e0eb4c76e6263}

\begin{DoxyCompactList}\small\item\em Get total number of parameters of this Fit\-Object. \end{DoxyCompactList}\item 
virtual double {\bf get\-D\-Px} (int ilocal) const \label{classJetFitObject_a366611f88d44ffe1016e7c8ca37bc9bb}

\begin{DoxyCompactList}\small\item\em Return d p\-\_\-x / d par\-\_\-ilocal (derivative of px w.\-r.\-t. local parameter ilocal) \end{DoxyCompactList}\item 
virtual double {\bf get\-D\-Py} (int ilocal) const \label{classJetFitObject_a23a215f8779f08a2e25b88d7caf3d29d}

\begin{DoxyCompactList}\small\item\em Return d p\-\_\-y / d par\-\_\-ilocal (derivative of py w.\-r.\-t. local parameter ilocal) \end{DoxyCompactList}\item 
virtual double {\bf get\-D\-Pz} (int ilocal) const \label{classJetFitObject_ada823c73f13fe72acc5a978b87f6f44e}

\begin{DoxyCompactList}\small\item\em Return d p\-\_\-z / d par\-\_\-ilocal (derivative of pz w.\-r.\-t. local parameter ilocal) \end{DoxyCompactList}\item 
virtual double {\bf get\-D\-E} (int ilocal) const \label{classJetFitObject_a5a43fac2bc175d742274d97ac2eb6563}

\begin{DoxyCompactList}\small\item\em Return d E / d par\-\_\-ilocal (derivative of E w.\-r.\-t. local parameter ilocal) \end{DoxyCompactList}\item 
virtual double {\bf get\-Cov} (int ilocal, int jlocal) const 
\begin{DoxyCompactList}\small\item\em Get covariance between parameters ilocal and jlocal. \end{DoxyCompactList}\item 
virtual double {\bf get\-Error} (int ilocal) const 
\begin{DoxyCompactList}\small\item\em Get error of parameter ilocal. \end{DoxyCompactList}\item 
virtual double {\bf get\-First\-Derivative\-\_\-\-Meta\-\_\-\-Local} (int i\-Meta, int ilocal, int meta\-Set) const \label{classJetFitObject_af96ec2948685ddc9aa58eef03faa2bfd}

\begin{DoxyCompactList}\small\item\em add derivatives to vector der of size idim pxfact$\ast$dpx/dx\-\_\-i + pyfact$\ast$dpy/dx\-\_\-i + pzfact$\ast$dpz/dx\-\_\-i + efact$\ast$d\-E/dx\-\_\-i \end{DoxyCompactList}\item 
virtual double {\bfseries get\-Second\-Derivative\-\_\-\-Meta\-\_\-\-Local} (int i\-Meta, int ilocal, int jlocal, int meta\-Set) const \label{classJetFitObject_aa7b79f60eb381f62691c73f5fe0f9080}

\end{DoxyCompactItemize}
\subsection*{Protected Types}
\begin{DoxyCompactItemize}
\item 
enum \{ {\bfseries N\-P\-A\-R} =3
 \}
\begin{DoxyCompactList}\small\item\em Get chi squared from measured and fitted parameters. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Protected Member Functions}
\begin{DoxyCompactItemize}
\item 
void {\bfseries update\-Cache} () const \label{classJetFitObject_adf94b2c92824983e05c94fc2ee68070e}

\end{DoxyCompactItemize}
\subsection*{Static Protected Member Functions}
\begin{DoxyCompactItemize}
\item 
static bool {\bf adjust\-E\-Theta\-Phi} (double \&m, double \&E, double \&theta, double \&phi)\label{classJetFitObject_a1c26f640eb1c391a39c376c52fef4880}

\begin{DoxyCompactList}\small\item\em Adjust E, theta and phi such that E$>$=m, 0$<$=theta$<$=pi, -\/pi $<$= phi $<$ pi; returns true if anything was changed. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Protected Attributes}
\begin{DoxyCompactItemize}
\item 
double {\bfseries ctheta}\label{classJetFitObject_a1fcc57136d6f1fa15b35d8176c8c96f4}

\item 
double {\bfseries stheta}\label{classJetFitObject_a5fd7d42efc9b40c1c9b2c95d5f858bfb}

\item 
double {\bfseries cphi}\label{classJetFitObject_a6a21afc091a4b16be6c707d23b7684ce}

\item 
double {\bfseries sphi}\label{classJetFitObject_a0a59082a15576c34b22dff844c141b04}

\item 
double {\bfseries p2}\label{classJetFitObject_a5d38a8a224c03654742eebcaa3478717}

\item 
double {\bfseries p}\label{classJetFitObject_a9559c257b3526846bb636157643c0431}

\item 
double {\bfseries pt}\label{classJetFitObject_ab543835d36b7236ca9d8e52c63a1b405}

\item 
double {\bfseries px}\label{classJetFitObject_ae34cf6652a5cbe84f44757faa850240f}

\item 
double {\bfseries py}\label{classJetFitObject_a5fa3dc26c0aaa8de3e76a7f7e7f7c34c}

\item 
double {\bfseries pz}\label{classJetFitObject_afc213964c5c0a385d7dd62d4bf4c9703}

\item 
double {\bfseries dpd\-E}\label{classJetFitObject_ab737fbdb053d2b1079b57d2409de5fed}

\item 
double {\bfseries dptd\-E}\label{classJetFitObject_a7dc07db4dd1eb9b2e40659de8c377d79}

\item 
double {\bfseries dpxd\-E}\label{classJetFitObject_a87f79469c54b54b077536c0aa9df88d7}

\item 
double {\bfseries dpyd\-E}\label{classJetFitObject_a6152ca3290c7dd23025f6d54afea04c3}

\item 
double {\bfseries dpzd\-E}\label{classJetFitObject_a7bba2de9cdf62288aea0f38806285af6}

\item 
double {\bfseries dpxdtheta}\label{classJetFitObject_a701bdf99d229b8c081eefb7ef7b43f7f}

\item 
double {\bfseries dpydtheta}\label{classJetFitObject_a469e4ce879f72158265499b7b23f203b}

\item 
double {\bfseries chi2}\label{classJetFitObject_aa17f73cc4e9d09ec3c587366686def02}

\end{DoxyCompactItemize}
\subsection*{Additional Inherited Members}


\subsection{Detailed Description}
Class for jets with (E, eta, phi) in kinematic fits. 

Author\-: Jenny List, Benno List \begin{DoxyParagraph}{Date\-:}
2011/03/03 15\-:03\-:02 
\end{DoxyParagraph}
\begin{DoxyParagraph}{Author\-:}
blist 
\end{DoxyParagraph}


{\bfseries Changelog\-:} 
\begin{DoxyItemize}
\item 30.\-12.\-04 B\-L\-: add\-To\-Glob\-Cov, get\-D\-Chi2\-D\-Param, get\-D\-Chi2\-D\-Param2, add\-To\-Global\-Chi2\-Der\-Matrix moved up to \doxyref{Particle\-Fit\-Object}{p.}{classParticleFitObject}, get\-Param\-Name implemented 
\end{DoxyItemize}

\subsection{Constructor \& Destructor Documentation}
\index{Jet\-Fit\-Object@{Jet\-Fit\-Object}!Jet\-Fit\-Object@{Jet\-Fit\-Object}}
\index{Jet\-Fit\-Object@{Jet\-Fit\-Object}!JetFitObject@{Jet\-Fit\-Object}}
\subsubsection[{Jet\-Fit\-Object}]{\setlength{\rightskip}{0pt plus 5cm}Jet\-Fit\-Object\-::\-Jet\-Fit\-Object (
\begin{DoxyParamCaption}
\item[{const {\bf Jet\-Fit\-Object} \&}]{rhs}
\end{DoxyParamCaption}
)}\label{classJetFitObject_ab182af0b4a1aac739370d9793173b368}


Copy constructor. 


\begin{DoxyParams}{Parameters}
{\em rhs} & right hand side \\
\hline
\end{DoxyParams}


References assign().



\subsection{Member Function Documentation}
\index{Jet\-Fit\-Object@{Jet\-Fit\-Object}!assign@{assign}}
\index{assign@{assign}!JetFitObject@{Jet\-Fit\-Object}}
\subsubsection[{assign}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Jet\-Fit\-Object} \& Jet\-Fit\-Object\-::assign (
\begin{DoxyParamCaption}
\item[{const {\bf Base\-Fit\-Object} \&}]{source}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [virtual]}}\label{classJetFitObject_a50292a165244b4d4326f999706f4ec00}


Assign from anther object, if of same type. 


\begin{DoxyParams}{Parameters}
{\em source} & The source object \\
\hline
\end{DoxyParams}


Reimplemented from {\bf Particle\-Fit\-Object} \doxyref{}{p.}{classParticleFitObject_a8429a39000149c8e80935d127f89f632}.



References Particle\-Fit\-Object\-::assign().



Referenced by Jet\-Fit\-Object(), and operator=().

\index{Jet\-Fit\-Object@{Jet\-Fit\-Object}!get\-Cov@{get\-Cov}}
\index{get\-Cov@{get\-Cov}!JetFitObject@{Jet\-Fit\-Object}}
\subsubsection[{get\-Cov}]{\setlength{\rightskip}{0pt plus 5cm}double Jet\-Fit\-Object\-::get\-Cov (
\begin{DoxyParamCaption}
\item[{int}]{ilocal, }
\item[{int}]{jlocal}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily [virtual]}}\label{classJetFitObject_a2c429725485d2f8b930219ff33fb9b86}


Get covariance between parameters ilocal and jlocal. 


\begin{DoxyParams}{Parameters}
{\em ilocal} & Local parameter number i \\
\hline
{\em jlocal} & Local parameter number j \\
\hline
\end{DoxyParams}


Reimplemented from {\bf Base\-Fit\-Object} \doxyref{}{p.}{classBaseFitObject_a039bf1c96d2b36aa33134cf61c73393d}.



References Base\-Fit\-Object\-::cov.

\index{Jet\-Fit\-Object@{Jet\-Fit\-Object}!get\-Error@{get\-Error}}
\index{get\-Error@{get\-Error}!JetFitObject@{Jet\-Fit\-Object}}
\subsubsection[{get\-Error}]{\setlength{\rightskip}{0pt plus 5cm}double Jet\-Fit\-Object\-::get\-Error (
\begin{DoxyParamCaption}
\item[{int}]{ilocal}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily [virtual]}}\label{classJetFitObject_a14380a3ce49149c21cb1d50d29ad7d4f}


Get error of parameter ilocal. 


\begin{DoxyParams}{Parameters}
{\em ilocal} & Local parameter number \\
\hline
\end{DoxyParams}


Reimplemented from {\bf Base\-Fit\-Object} \doxyref{}{p.}{classBaseFitObject_a8aa49a5e4cd3345629a09ea5c3807d52}.



References Base\-Fit\-Object\-::cov.

\index{Jet\-Fit\-Object@{Jet\-Fit\-Object}!get\-Param\-Name@{get\-Param\-Name}}
\index{get\-Param\-Name@{get\-Param\-Name}!JetFitObject@{Jet\-Fit\-Object}}
\subsubsection[{get\-Param\-Name}]{\setlength{\rightskip}{0pt plus 5cm}const char $\ast$ Jet\-Fit\-Object\-::get\-Param\-Name (
\begin{DoxyParamCaption}
\item[{int}]{ilocal}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily [virtual]}}\label{classJetFitObject_af3d39618763bc65b0e215f637c4773b4}


Get name of parameter ilocal. 


\begin{DoxyParams}{Parameters}
{\em ilocal} & Local parameter number \\
\hline
\end{DoxyParams}


Reimplemented from {\bf Base\-Fit\-Object} \doxyref{}{p.}{classBaseFitObject_a6e993153f0efe7b380186cb815f5ccc1}.

\index{Jet\-Fit\-Object@{Jet\-Fit\-Object}!operator=@{operator=}}
\index{operator=@{operator=}!JetFitObject@{Jet\-Fit\-Object}}
\subsubsection[{operator=}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Jet\-Fit\-Object} \& Jet\-Fit\-Object\-::operator= (
\begin{DoxyParamCaption}
\item[{const {\bf Jet\-Fit\-Object} \&}]{rhs}
\end{DoxyParamCaption}
)}\label{classJetFitObject_a8c6e6f15846e0f433c85c29dd0c7b8d6}


Assignment. 


\begin{DoxyParams}{Parameters}
{\em rhs} & right hand side \\
\hline
\end{DoxyParams}


References assign().

\index{Jet\-Fit\-Object@{Jet\-Fit\-Object}!update\-Params@{update\-Params}}
\index{update\-Params@{update\-Params}!JetFitObject@{Jet\-Fit\-Object}}
\subsubsection[{update\-Params}]{\setlength{\rightskip}{0pt plus 5cm}bool Jet\-Fit\-Object\-::update\-Params (
\begin{DoxyParamCaption}
\item[{double}]{p[$\,$], }
\item[{int}]{idim}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [virtual]}}\label{classJetFitObject_ab6a0e67859ef979a5b2bd489a0131a60}


Read values from global vector, readjust vector; return\-: significant change. 


\begin{DoxyParams}{Parameters}
{\em p} & The parameter vector \\
\hline
{\em idim} & Length of the vector \\
\hline
\end{DoxyParams}


Reimplemented from {\bf Base\-Fit\-Object} \doxyref{}{p.}{classBaseFitObject_a3f7c5b3f86dec80b75340e7c966a6e90}.



References Base\-Fit\-Object\-::cov, Base\-Fit\-Object\-::get\-Global\-Par\-Num(), Base\-Fit\-Object\-::invalidate\-Cache(), Particle\-Fit\-Object\-::mass, and Base\-Fit\-Object\-::par.



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