<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">\section{Soft\-Gauss\-Mass\-Constraint Class Reference}
\label{classSoftGaussMassConstraint}\index{Soft\-Gauss\-Mass\-Constraint@{Soft\-Gauss\-Mass\-Constraint}}


Implements constraint 0 = mass1 -\/ mass2 -\/ m.  




{\ttfamily \#include $&lt;$Soft\-Gauss\-Mass\-Constraint.\-h$&gt;$}

Inheritance diagram for Soft\-Gauss\-Mass\-Constraint\-:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=4.000000cm]{classSoftGaussMassConstraint}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
{\bf Soft\-Gauss\-Mass\-Constraint} (double sigma\-\_\-, double mass\-\_\-=0.)
\begin{DoxyCompactList}\small\item\em Constructor. \end{DoxyCompactList}\item 
virtual {\bf $\sim$\-Soft\-Gauss\-Mass\-Constraint} ()\label{classSoftGaussMassConstraint_a8d3fb287f38f7a46afb942626fca6f75}

\begin{DoxyCompactList}\small\item\em Virtual destructor. \end{DoxyCompactList}\item 
virtual double {\bf get\-Value} () const \label{classSoftGaussMassConstraint_a3d2b6d1e2abbb039ff200e6e71655a80}

\begin{DoxyCompactList}\small\item\em Returns the value of the constraint function. \end{DoxyCompactList}\item 
virtual void {\bf get\-Derivatives} (int idim, double der[$\,$]) const 
\begin{DoxyCompactList}\small\item\em Get first order derivatives. \end{DoxyCompactList}\item 
virtual double {\bf get\-Mass} (int flag=1)
\begin{DoxyCompactList}\small\item\em Get the actual invariant mass of the fit objects with a given flag. \end{DoxyCompactList}\item 
virtual void {\bf set\-Mass} (double mass\-\_\-)
\begin{DoxyCompactList}\small\item\em Sets the target mass of the constraint. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Protected Member Functions}
\begin{DoxyCompactItemize}
\item 
virtual bool {\bf second\-Derivatives} (int i, int j, double $\ast${\bf derivatives}) const 
\begin{DoxyCompactList}\small\item\em Second derivatives with respect to the 4-\/vectors of Fit objects i and j; result false if all derivatives are zero. \end{DoxyCompactList}\item 
virtual bool {\bf first\-Derivatives} (int i, double $\ast${\bf derivatives}) const 
\begin{DoxyCompactList}\small\item\em First derivatives with respect to the 4-\/vector of Fit objects i; result false if all derivatives are zero. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Protected Attributes}
\begin{DoxyCompactItemize}
\item 
double {\bf mass}\label{classSoftGaussMassConstraint_ae6fceded28b322630d4b8b07f1d20da2}

\begin{DoxyCompactList}\small\item\em The mass difference between object sets 1 and 2. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Additional Inherited Members}


\subsection{Detailed Description}
Implements constraint 0 = mass1 -\/ mass2 -\/ m. 

This class implements different mass constraints\-:
\begin{DoxyItemize}
\item the invariant mass of several objects should be m
\item the difference of the invariant masses between two sets of objects should be m (normally m=0 in this case).
\end{DoxyItemize}

Author\-: Jenny List, Benno List Last update\-: \begin{DoxyParagraph}{Date\-:}
2008/02/12 16\-:43\-:26 
\end{DoxyParagraph}
by\-: \begin{DoxyParagraph}{Author\-:}
blist 
\end{DoxyParagraph}


\subsection{Constructor \&amp; Destructor Documentation}
\index{Soft\-Gauss\-Mass\-Constraint@{Soft\-Gauss\-Mass\-Constraint}!Soft\-Gauss\-Mass\-Constraint@{Soft\-Gauss\-Mass\-Constraint}}
\index{Soft\-Gauss\-Mass\-Constraint@{Soft\-Gauss\-Mass\-Constraint}!SoftGaussMassConstraint@{Soft\-Gauss\-Mass\-Constraint}}
\subsubsection[{Soft\-Gauss\-Mass\-Constraint}]{\setlength{\rightskip}{0pt plus 5cm}Soft\-Gauss\-Mass\-Constraint\-::\-Soft\-Gauss\-Mass\-Constraint (
\begin{DoxyParamCaption}
\item[{double}]{sigma\-\_\-, }
\item[{double}]{mass\-\_\- = {\ttfamily 0.}}
\end{DoxyParamCaption}
)}\label{classSoftGaussMassConstraint_af865242cbaf309690b92e53d62c6f37c}


Constructor. 


\begin{DoxyParams}{Parameters}
{\em sigma\-\_\-} &amp; The sigma value \\
\hline
{\em mass\-\_\-} &amp; The mass difference between object sets 1 and 2 \\
\hline
\end{DoxyParams}


\subsection{Member Function Documentation}
\index{Soft\-Gauss\-Mass\-Constraint@{Soft\-Gauss\-Mass\-Constraint}!first\-Derivatives@{first\-Derivatives}}
\index{first\-Derivatives@{first\-Derivatives}!SoftGaussMassConstraint@{Soft\-Gauss\-Mass\-Constraint}}
\subsubsection[{first\-Derivatives}]{\setlength{\rightskip}{0pt plus 5cm}bool Soft\-Gauss\-Mass\-Constraint\-::first\-Derivatives (
\begin{DoxyParamCaption}
\item[{int}]{i, }
\item[{double $\ast$}]{derivatives}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily [protected]}, {\ttfamily [virtual]}}\label{classSoftGaussMassConstraint_a9102ce05ef5d4614d7233680ff0e7086}


First derivatives with respect to the 4-\/vector of Fit objects i; result false if all derivatives are zero. 


\begin{DoxyParams}{Parameters}
{\em i} &amp; number of 1st Fit\-Object \\
\hline
{\em derivatives} &amp; The result 4-\/vector \\
\hline
\end{DoxyParams}


Implements {\bf Soft\-Gauss\-Particle\-Constraint} \doxyref{}{p.}{classSoftGaussParticleConstraint_a08e956b0334a8a221deb6e771ffcb0aa}.



References Soft\-Gauss\-Particle\-Constraint\-::fitobjects, Soft\-Gauss\-Particle\-Constraint\-::flags, Particle\-Fit\-Object\-::get\-E(), Particle\-Fit\-Object\-::get\-Px(), Particle\-Fit\-Object\-::get\-Py(), and Particle\-Fit\-Object\-::get\-Pz().

\index{Soft\-Gauss\-Mass\-Constraint@{Soft\-Gauss\-Mass\-Constraint}!get\-Derivatives@{get\-Derivatives}}
\index{get\-Derivatives@{get\-Derivatives}!SoftGaussMassConstraint@{Soft\-Gauss\-Mass\-Constraint}}
\subsubsection[{get\-Derivatives}]{\setlength{\rightskip}{0pt plus 5cm}void Soft\-Gauss\-Mass\-Constraint\-::get\-Derivatives (
\begin{DoxyParamCaption}
\item[{int}]{idim, }
\item[{double}]{der[$\,$]}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily [virtual]}}\label{classSoftGaussMassConstraint_a21fb08382c0034f18f62b248fcf6e551}


Get first order derivatives. 

Call this with a predefined array \char`\"{}der\char`\"{} with the necessary number of entries! 
\begin{DoxyParams}{Parameters}
{\em idim} &amp; First dimension of the array \\
\hline
{\em der} &amp; Array of derivatives, at least idim x idim \\
\hline
\end{DoxyParams}


Implements {\bf Soft\-Gauss\-Particle\-Constraint} \doxyref{}{p.}{classSoftGaussParticleConstraint_a466338d7f4d153acc03a4d35b93a596b}.



References Soft\-Gauss\-Particle\-Constraint\-::fitobjects, and Soft\-Gauss\-Particle\-Constraint\-::flags.

\index{Soft\-Gauss\-Mass\-Constraint@{Soft\-Gauss\-Mass\-Constraint}!get\-Mass@{get\-Mass}}
\index{get\-Mass@{get\-Mass}!SoftGaussMassConstraint@{Soft\-Gauss\-Mass\-Constraint}}
\subsubsection[{get\-Mass}]{\setlength{\rightskip}{0pt plus 5cm}double Soft\-Gauss\-Mass\-Constraint\-::get\-Mass (
\begin{DoxyParamCaption}
\item[{int}]{flag = {\ttfamily 1}}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [virtual]}}\label{classSoftGaussMassConstraint_a19280266a23f6b3acf3d0381aa970549}


Get the actual invariant mass of the fit objects with a given flag. 


\begin{DoxyParams}{Parameters}
{\em flag} &amp; The flag \\
\hline
\end{DoxyParams}


References Soft\-Gauss\-Particle\-Constraint\-::fitobjects, and Soft\-Gauss\-Particle\-Constraint\-::flags.

\index{Soft\-Gauss\-Mass\-Constraint@{Soft\-Gauss\-Mass\-Constraint}!second\-Derivatives@{second\-Derivatives}}
\index{second\-Derivatives@{second\-Derivatives}!SoftGaussMassConstraint@{Soft\-Gauss\-Mass\-Constraint}}
\subsubsection[{second\-Derivatives}]{\setlength{\rightskip}{0pt plus 5cm}bool Soft\-Gauss\-Mass\-Constraint\-::second\-Derivatives (
\begin{DoxyParamCaption}
\item[{int}]{i, }
\item[{int}]{j, }
\item[{double $\ast$}]{derivatives}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily [protected]}, {\ttfamily [virtual]}}\label{classSoftGaussMassConstraint_a6452d3f7e37e167615e1a57d334cba3b}


Second derivatives with respect to the 4-\/vectors of Fit objects i and j; result false if all derivatives are zero. 


\begin{DoxyParams}{Parameters}
{\em i} &amp; number of 1st Fit\-Object \\
\hline
{\em j} &amp; number of 2nd Fit\-Object \\
\hline
{\em derivatives} &amp; The result 4x4 matrix \\
\hline
\end{DoxyParams}


Implements {\bf Soft\-Gauss\-Particle\-Constraint} \doxyref{}{p.}{classSoftGaussParticleConstraint_ac8fb61123f71e58634acd87a22c805bd}.



References Soft\-Gauss\-Particle\-Constraint\-::fitobjects, Soft\-Gauss\-Particle\-Constraint\-::flags, Particle\-Fit\-Object\-::get\-E(), Particle\-Fit\-Object\-::get\-Px(), Particle\-Fit\-Object\-::get\-Py(), and Particle\-Fit\-Object\-::get\-Pz().

\index{Soft\-Gauss\-Mass\-Constraint@{Soft\-Gauss\-Mass\-Constraint}!set\-Mass@{set\-Mass}}
\index{set\-Mass@{set\-Mass}!SoftGaussMassConstraint@{Soft\-Gauss\-Mass\-Constraint}}
\subsubsection[{set\-Mass}]{\setlength{\rightskip}{0pt plus 5cm}void Soft\-Gauss\-Mass\-Constraint\-::set\-Mass (
\begin{DoxyParamCaption}
\item[{double}]{mass\-\_\-}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [virtual]}}\label{classSoftGaussMassConstraint_a936f130676cc73f3aa1761f28e274a68}


Sets the target mass of the constraint. 


\begin{DoxyParams}{Parameters}
{\em mass\-\_\-} &amp; The new mass \\
\hline
\end{DoxyParams}


References mass.



The documentation for this class was generated from the following files\-:\begin{DoxyCompactItemize}
\item 
{\bf Soft\-Gauss\-Mass\-Constraint.\-h}\item 
{\bf Soft\-Gauss\-Mass\-Constraint.\-cc}\end{DoxyCompactItemize}
</pre></body></html>