\hypertarget{classvertex__lcfi_1_1VertexMass}{\subsection{vertex\-\_\-lcfi\-:\-:Vertex\-Mass Class Reference}
\label{classvertex__lcfi_1_1VertexMass}\index{vertex\-\_\-lcfi\-::\-Vertex\-Mass@{vertex\-\_\-lcfi\-::\-Vertex\-Mass}}
}


Calculation of the Pt corrected mass vertex flavour tag input.  




{\ttfamily \#include $<$vertexmass.\-h$>$}



Inheritance diagram for vertex\-\_\-lcfi\-:\-:Vertex\-Mass\-:


Collaboration diagram for vertex\-\_\-lcfi\-:\-:Vertex\-Mass\-:
\subsubsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classvertex__lcfi_1_1VertexMass_ac1c25f6a1ea978a41bb335f2b5f35fda}{\hyperlink{classvertex__lcfi_1_1VertexMass_ac1c25f6a1ea978a41bb335f2b5f35fda}{Vertex\-Mass} ()}\label{classvertex__lcfi_1_1VertexMass_ac1c25f6a1ea978a41bb335f2b5f35fda}

\begin{DoxyCompactList}\small\item\em Default Constructor. \end{DoxyCompactList}\item 
string \hyperlink{classvertex__lcfi_1_1VertexMass_ac79dab5292b33cbe0fbbc47fa90b2ee2}{name} () const 
\begin{DoxyCompactList}\small\item\em Name. \end{DoxyCompactList}\item 
std\-::vector$<$ string $>$ \hyperlink{classvertex__lcfi_1_1VertexMass_a8bca0a44f3cf4f5dd71b2d4adaf47289}{parameter\-Names} () const 
\begin{DoxyCompactList}\small\item\em Parameter Names. \end{DoxyCompactList}\item 
std\-::vector$<$ string $>$ \hyperlink{classvertex__lcfi_1_1VertexMass_ad96556d317f8a21c1262c1f156fffbdf}{parameter\-Values} () const 
\begin{DoxyCompactList}\small\item\em Parameter Values. \end{DoxyCompactList}\item 
void \hyperlink{classvertex__lcfi_1_1VertexMass_a1d750dd8b3b0d6cd14a4599e6751f0a3}{set\-String\-Parameter} (const string \&Parameter, const string \&Value)
\begin{DoxyCompactList}\small\item\em Set String Parameter. \end{DoxyCompactList}\item 
void \hyperlink{classvertex__lcfi_1_1VertexMass_afc959e2927bec7a4de7425518b7b988c}{set\-Double\-Parameter} (const string \&Parameter, const double Value)
\begin{DoxyCompactList}\small\item\em Set Double Parameter. \end{DoxyCompactList}\item 
void \hyperlink{classvertex__lcfi_1_1VertexMass_ab0e2f41b50860e32e7f151b328a783ea}{set\-Pointer\-Parameter} (const string \&Parameter, void $\ast$Value)
\begin{DoxyCompactList}\small\item\em Set Pointer Parameter. \end{DoxyCompactList}\item 
double \hyperlink{classvertex__lcfi_1_1VertexMass_aea2d07f8259d53d5163f44a036021e30}{calculate\-For} (\hyperlink{classvertex__lcfi_1_1DecayChain}{Decay\-Chain} $\ast$My\-Decay\-Chain) const 
\begin{DoxyCompactList}\small\item\em Run the algorithm on a jet. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsubsection*{Static Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classvertex__lcfi_1_1VertexMass_af12091b088416fb86fab679c9dc0dd30}{static double \hyperlink{classvertex__lcfi_1_1VertexMass_af12091b088416fb86fab679c9dc0dd30}{Ptcalc} (\hyperlink{classvertex__lcfi_1_1Vertex}{Vertex} $\ast$, \hyperlink{classvertex__lcfi_1_1Vertex}{Vertex} $\ast$, \hyperlink{classvertex__lcfi_1_1util_1_1Vector3}{Vector3} $\ast$, float)}\label{classvertex__lcfi_1_1VertexMass_af12091b088416fb86fab679c9dc0dd30}

\begin{DoxyCompactList}\small\item\em Calculate vertex-\/constrained Pt correction. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsubsection{Detailed Description}
Calculation of the Pt corrected mass vertex flavour tag input. 

This class calculates the Pt corrected mass flavour tag input. The input is a \hyperlink{classvertex__lcfi_1_1DecayChain}{Decay\-Chain}. This \hyperlink{classvertex__lcfi_1_1DecayChain}{Decay\-Chain} is expected to be the output of \hyperlink{classvertex__lcfi_1_1TrackAttach}{vertex\-\_\-lcfi\-::\-Track\-Attach} algorithm. In this algorithm all the tracks are either added (attached) to the seed vertex or removed from the \hyperlink{classvertex__lcfi_1_1DecayChain}{Decay\-Chain}. The first step of the algorithm is to search the \hyperlink{classvertex__lcfi_1_1DecayChain}{Decay\-Chain} for the seed vertex, defined as vertex furthest from the I\-P. The routine then assumes that there is only one vertex in this \hyperlink{classvertex__lcfi_1_1DecayChain}{Decay\-Chain} and that all the tracks in the \hyperlink{classvertex__lcfi_1_1DecayChain}{Decay\-Chain} are attached to this vertex. The algorithm attempts to calculate the mass of this vertex. For this calculation we use the assumption that each track in the vertex has the mass of a charged pion. Additionally a kinematic correction is applied in order to minimise the transverse momentum of the tracks attached to the vertex. This accounts for the fact that some tracks might be neutral particles. There is however a limit on the maximum number of sigmas (based on error matrices) within which the the vertex axis can move. We then use this transverse momentum to calculate the pt corected vertex mass. 
\begin{DoxyParams}{Parameters}
{\em Max\-Momentum\-Angle} & maximum value of p$^\wedge$2 (1-\/ cos$^\wedge$2(theta)), where theta is the angle between the vertex axis and the total momentum of the tracks attached to the vertex. \\
\hline
{\em Max\-Kinematic\-Correction\-Sigma} & maximum number of sigmas (based on error matrices) within which the the vertex axis can move. \\
\hline
{\em Max\-Momentum\-Correction} & Maximum factor, by which vertex mass can be corrected (if this value is 2 the maximum mass returned will be twice the mass calculated without kinematic corrections.\\
\hline
\end{DoxyParams}
\begin{DoxyAuthor}{Author}
Erik Devetak (\href{mailto:e.devetak1@physics.ox.ac.uk}{\tt e.\-devetak1@physics.\-ox.\-ac.\-uk}) 
\end{DoxyAuthor}


\subsubsection{Member Function Documentation}
\hypertarget{classvertex__lcfi_1_1VertexMass_aea2d07f8259d53d5163f44a036021e30}{\index{vertex\-\_\-lcfi\-::\-Vertex\-Mass@{vertex\-\_\-lcfi\-::\-Vertex\-Mass}!calculate\-For@{calculate\-For}}
\index{calculate\-For@{calculate\-For}!vertex_lcfi::VertexMass@{vertex\-\_\-lcfi\-::\-Vertex\-Mass}}
\paragraph[{calculate\-For}]{\setlength{\rightskip}{0pt plus 5cm}double vertex\-\_\-lcfi\-::\-Vertex\-Mass\-::calculate\-For (
\begin{DoxyParamCaption}
\item[{{\bf Decay\-Chain} $\ast$}]{My\-Decay\-Chain}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily [virtual]}}}\label{classvertex__lcfi_1_1VertexMass_aea2d07f8259d53d5163f44a036021e30}


Run the algorithm on a jet. 

Calculate the Momentum Corrected mass of the seed vertex. 
\begin{DoxyParams}{Parameters}
{\em \hyperlink{classvertex__lcfi_1_1DecayChain}{Decay\-Chain}} & Pointer to the decay chain to be analysed. This decay chain is an output from the track attach algorithm in which case it is composed only of one vertex and attached tracks. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
double\-: Momentum corrected mass 
\end{DoxyReturn}


Implements \hyperlink{classvertex__lcfi_1_1Algo_a95a0f611f2ab925663b6f819b7d0f8c8}{vertex\-\_\-lcfi\-::\-Algo$<$ Decay\-Chain $\ast$, double $>$}.

\hypertarget{classvertex__lcfi_1_1VertexMass_ac79dab5292b33cbe0fbbc47fa90b2ee2}{\index{vertex\-\_\-lcfi\-::\-Vertex\-Mass@{vertex\-\_\-lcfi\-::\-Vertex\-Mass}!name@{name}}
\index{name@{name}!vertex_lcfi::VertexMass@{vertex\-\_\-lcfi\-::\-Vertex\-Mass}}
\paragraph[{name}]{\setlength{\rightskip}{0pt plus 5cm}string vertex\-\_\-lcfi\-::\-Vertex\-Mass\-::name (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily [virtual]}}}\label{classvertex__lcfi_1_1VertexMass_ac79dab5292b33cbe0fbbc47fa90b2ee2}


Name. 

String name of the algorithm \begin{DoxyReturn}{Returns}
String name 
\end{DoxyReturn}


Implements \hyperlink{classvertex__lcfi_1_1Algo_a8dc63ee2a511bf2809979a862167d0d6}{vertex\-\_\-lcfi\-::\-Algo$<$ Decay\-Chain $\ast$, double $>$}.

\hypertarget{classvertex__lcfi_1_1VertexMass_a8bca0a44f3cf4f5dd71b2d4adaf47289}{\index{vertex\-\_\-lcfi\-::\-Vertex\-Mass@{vertex\-\_\-lcfi\-::\-Vertex\-Mass}!parameter\-Names@{parameter\-Names}}
\index{parameter\-Names@{parameter\-Names}!vertex_lcfi::VertexMass@{vertex\-\_\-lcfi\-::\-Vertex\-Mass}}
\paragraph[{parameter\-Names}]{\setlength{\rightskip}{0pt plus 5cm}std\-::vector$<$string$>$ vertex\-\_\-lcfi\-::\-Vertex\-Mass\-::parameter\-Names (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily [virtual]}}}\label{classvertex__lcfi_1_1VertexMass_a8bca0a44f3cf4f5dd71b2d4adaf47289}


Parameter Names. 

A vector of the names of the algorithms parameters \begin{DoxyReturn}{Returns}
vector of string names 
\end{DoxyReturn}


Implements \hyperlink{classvertex__lcfi_1_1Algo_ac5a83cb4625455de40bec9ab8f718c48}{vertex\-\_\-lcfi\-::\-Algo$<$ Decay\-Chain $\ast$, double $>$}.

\hypertarget{classvertex__lcfi_1_1VertexMass_ad96556d317f8a21c1262c1f156fffbdf}{\index{vertex\-\_\-lcfi\-::\-Vertex\-Mass@{vertex\-\_\-lcfi\-::\-Vertex\-Mass}!parameter\-Values@{parameter\-Values}}
\index{parameter\-Values@{parameter\-Values}!vertex_lcfi::VertexMass@{vertex\-\_\-lcfi\-::\-Vertex\-Mass}}
\paragraph[{parameter\-Values}]{\setlength{\rightskip}{0pt plus 5cm}std\-::vector$<$string$>$ vertex\-\_\-lcfi\-::\-Vertex\-Mass\-::parameter\-Values (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily [virtual]}}}\label{classvertex__lcfi_1_1VertexMass_ad96556d317f8a21c1262c1f156fffbdf}


Parameter Values. 

A vector of the values of the algorithms parameters, in the same order as parameter names \begin{DoxyReturn}{Returns}
vector of string values 
\end{DoxyReturn}


Implements \hyperlink{classvertex__lcfi_1_1Algo_a6248170b83886bf51a922b78ce629a71}{vertex\-\_\-lcfi\-::\-Algo$<$ Decay\-Chain $\ast$, double $>$}.

\hypertarget{classvertex__lcfi_1_1VertexMass_afc959e2927bec7a4de7425518b7b988c}{\index{vertex\-\_\-lcfi\-::\-Vertex\-Mass@{vertex\-\_\-lcfi\-::\-Vertex\-Mass}!set\-Double\-Parameter@{set\-Double\-Parameter}}
\index{set\-Double\-Parameter@{set\-Double\-Parameter}!vertex_lcfi::VertexMass@{vertex\-\_\-lcfi\-::\-Vertex\-Mass}}
\paragraph[{set\-Double\-Parameter}]{\setlength{\rightskip}{0pt plus 5cm}void vertex\-\_\-lcfi\-::\-Vertex\-Mass\-::set\-Double\-Parameter (
\begin{DoxyParamCaption}
\item[{const string \&}]{Parameter, }
\item[{const double}]{Value}
\end{DoxyParamCaption}
)}}\label{classvertex__lcfi_1_1VertexMass_afc959e2927bec7a4de7425518b7b988c}


Set Double Parameter. 

Set a double parameter 
\begin{DoxyParams}{Parameters}
{\em Parameter} & String of parameter name \\
\hline
{\em Value} & double of parameter value \\
\hline
\end{DoxyParams}
\hypertarget{classvertex__lcfi_1_1VertexMass_ab0e2f41b50860e32e7f151b328a783ea}{\index{vertex\-\_\-lcfi\-::\-Vertex\-Mass@{vertex\-\_\-lcfi\-::\-Vertex\-Mass}!set\-Pointer\-Parameter@{set\-Pointer\-Parameter}}
\index{set\-Pointer\-Parameter@{set\-Pointer\-Parameter}!vertex_lcfi::VertexMass@{vertex\-\_\-lcfi\-::\-Vertex\-Mass}}
\paragraph[{set\-Pointer\-Parameter}]{\setlength{\rightskip}{0pt plus 5cm}void vertex\-\_\-lcfi\-::\-Vertex\-Mass\-::set\-Pointer\-Parameter (
\begin{DoxyParamCaption}
\item[{const string \&}]{Parameter, }
\item[{void $\ast$}]{Value}
\end{DoxyParamCaption}
)}}\label{classvertex__lcfi_1_1VertexMass_ab0e2f41b50860e32e7f151b328a783ea}


Set Pointer Parameter. 

Set a pointer parameter 
\begin{DoxyParams}{Parameters}
{\em Parameter} & String of parameter name \\
\hline
{\em Value} & pointer to void \\
\hline
\end{DoxyParams}
\hypertarget{classvertex__lcfi_1_1VertexMass_a1d750dd8b3b0d6cd14a4599e6751f0a3}{\index{vertex\-\_\-lcfi\-::\-Vertex\-Mass@{vertex\-\_\-lcfi\-::\-Vertex\-Mass}!set\-String\-Parameter@{set\-String\-Parameter}}
\index{set\-String\-Parameter@{set\-String\-Parameter}!vertex_lcfi::VertexMass@{vertex\-\_\-lcfi\-::\-Vertex\-Mass}}
\paragraph[{set\-String\-Parameter}]{\setlength{\rightskip}{0pt plus 5cm}void vertex\-\_\-lcfi\-::\-Vertex\-Mass\-::set\-String\-Parameter (
\begin{DoxyParamCaption}
\item[{const string \&}]{Parameter, }
\item[{const string \&}]{Value}
\end{DoxyParamCaption}
)}}\label{classvertex__lcfi_1_1VertexMass_a1d750dd8b3b0d6cd14a4599e6751f0a3}


Set String Parameter. 

Set a string parameter 
\begin{DoxyParams}{Parameters}
{\em Parameter} & String of parameter name \\
\hline
{\em Value} & String of parameter value \\
\hline
\end{DoxyParams}


The documentation for this class was generated from the following file\-:\begin{DoxyCompactItemize}
\item 
vertexmass.\-h\end{DoxyCompactItemize}
