\hypertarget{classvertex__lcfi_1_1TrackAttach}{\subsection{vertex\-\_\-lcfi\-:\-:Track\-Attach Class Reference}
\label{classvertex__lcfi_1_1TrackAttach}\index{vertex\-\_\-lcfi\-::\-Track\-Attach@{vertex\-\_\-lcfi\-::\-Track\-Attach}}
}


\hyperlink{classvertex__lcfi_1_1Track}{Track} attachment algorithm. Calculates the seed vertex and the Tracks attached to it.  




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



Inheritance diagram for vertex\-\_\-lcfi\-:\-:Track\-Attach\-:


Collaboration diagram for vertex\-\_\-lcfi\-:\-:Track\-Attach\-:
\subsubsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
string \hyperlink{classvertex__lcfi_1_1TrackAttach_a265cbccf3b95c646e211f9f8f905c6d6}{name} () const 
\begin{DoxyCompactList}\small\item\em Name. \end{DoxyCompactList}\item 
std\-::vector$<$ string $>$ \hyperlink{classvertex__lcfi_1_1TrackAttach_ae8f43dac5d6608e3aea8cae7df65575c}{parameter\-Names} () const 
\begin{DoxyCompactList}\small\item\em Parameter Names. \end{DoxyCompactList}\item 
std\-::vector$<$ string $>$ \hyperlink{classvertex__lcfi_1_1TrackAttach_a9a0a4f8ffab24277beaf687d5bc6b759}{parameter\-Values} () const 
\begin{DoxyCompactList}\small\item\em Parameter Values. \end{DoxyCompactList}\item 
void \hyperlink{classvertex__lcfi_1_1TrackAttach_adc1fb244c7aab47712954b5b0347bc2a}{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_1TrackAttach_a29d3de0ab2faac213e37098c9add93d9}{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_1TrackAttach_a3ebd7d1162f3cd1f29475865476a33ed}{set\-Pointer\-Parameter} (const string \&Parameter, void $\ast$Value)
\begin{DoxyCompactList}\small\item\em Set Pointer Parameter. \end{DoxyCompactList}\item 
\hyperlink{classvertex__lcfi_1_1DecayChain}{Decay\-Chain} $\ast$ \hyperlink{classvertex__lcfi_1_1TrackAttach_a9af074cb7a0924ff72c8b9cb35e2fa8e}{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{Detailed Description}
\hyperlink{classvertex__lcfi_1_1Track}{Track} attachment algorithm. Calculates the seed vertex and the Tracks attached to it. 

The algorithm firstly chooses the seed vertex, defined as the secondary vertex furthest from the I\-P and then decides which Tracks to attach to this vertex. This algorithm was originally devised to recover tracks from 1-\/prong decays that are not assigned to any \hyperlink{classvertex__lcfi_1_1ZVRES}{Z\-V\-R\-E\-S} vertex, but may contribute to variables one wishes to reconstruct, such as the mass of the decaying heavy flavour particle in a jet. The algorithm returns a \hyperlink{classvertex__lcfi_1_1DecayChain}{vertex\-\_\-lcfi\-::\-Decay\-Chain} with Tracks attached to the seed vertex and all other Tracks removed. The algorithm has the following input parameters\-: 
\begin{DoxyParams}{Parameters}
{\em Add\-All\-Tracks\-From\-Secondary} & determines whether to include or exclude inner vertices. \\
\hline
{\em Lo\-D\-Cutmin} & cut on the minimum L/\-D of the track to be attached to the seed vertex \\
\hline
{\em Lo\-D\-Cutmax} & cut on the maximum L/\-D of the track to be attached to the seed vertex \\
\hline
{\em Closeapproach\-Cut} & cut on the maximum of the distance of closest approach of a \hyperlink{classvertex__lcfi_1_1Track}{Track} wrt the seed axis \\
\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_1TrackAttach_a9af074cb7a0924ff72c8b9cb35e2fa8e}{\index{vertex\-\_\-lcfi\-::\-Track\-Attach@{vertex\-\_\-lcfi\-::\-Track\-Attach}!calculate\-For@{calculate\-For}}
\index{calculate\-For@{calculate\-For}!vertex_lcfi::TrackAttach@{vertex\-\_\-lcfi\-::\-Track\-Attach}}
\paragraph[{calculate\-For}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Decay\-Chain}$\ast$ vertex\-\_\-lcfi\-::\-Track\-Attach\-::calculate\-For (
\begin{DoxyParamCaption}
\item[{{\bf Decay\-Chain} $\ast$}]{My\-Decay\-Chain}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily [virtual]}}}\label{classvertex__lcfi_1_1TrackAttach_a9af074cb7a0924ff72c8b9cb35e2fa8e}


Run the algorithm on a jet. 

Calculate the Seed vertex with its attached Tracks. It puts these into a Decay Chain object which is then readable to other lcfi classes. This decay chain does not hold any other Tracks but the ones in the seed vertex (including the attached tracks). 
\begin{DoxyParams}{Parameters}
{\em Pointer} & to the \hyperlink{classvertex__lcfi_1_1DecayChain}{Decay\-Chain} to be analysed \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
Pointer to \hyperlink{classvertex__lcfi_1_1DecayChain}{Decay\-Chain} of algorithm result 
\end{DoxyReturn}


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

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


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$, Decay\-Chain $\ast$ $>$}.

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


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$, Decay\-Chain $\ast$ $>$}.

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


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$, Decay\-Chain $\ast$ $>$}.

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


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_1TrackAttach_a3ebd7d1162f3cd1f29475865476a33ed}{\index{vertex\-\_\-lcfi\-::\-Track\-Attach@{vertex\-\_\-lcfi\-::\-Track\-Attach}!set\-Pointer\-Parameter@{set\-Pointer\-Parameter}}
\index{set\-Pointer\-Parameter@{set\-Pointer\-Parameter}!vertex_lcfi::TrackAttach@{vertex\-\_\-lcfi\-::\-Track\-Attach}}
\paragraph[{set\-Pointer\-Parameter}]{\setlength{\rightskip}{0pt plus 5cm}void vertex\-\_\-lcfi\-::\-Track\-Attach\-::set\-Pointer\-Parameter (
\begin{DoxyParamCaption}
\item[{const string \&}]{Parameter, }
\item[{void $\ast$}]{Value}
\end{DoxyParamCaption}
)}}\label{classvertex__lcfi_1_1TrackAttach_a3ebd7d1162f3cd1f29475865476a33ed}


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_1TrackAttach_adc1fb244c7aab47712954b5b0347bc2a}{\index{vertex\-\_\-lcfi\-::\-Track\-Attach@{vertex\-\_\-lcfi\-::\-Track\-Attach}!set\-String\-Parameter@{set\-String\-Parameter}}
\index{set\-String\-Parameter@{set\-String\-Parameter}!vertex_lcfi::TrackAttach@{vertex\-\_\-lcfi\-::\-Track\-Attach}}
\paragraph[{set\-String\-Parameter}]{\setlength{\rightskip}{0pt plus 5cm}void vertex\-\_\-lcfi\-::\-Track\-Attach\-::set\-String\-Parameter (
\begin{DoxyParamCaption}
\item[{const string \&}]{Parameter, }
\item[{const string \&}]{Value}
\end{DoxyParamCaption}
)}}\label{classvertex__lcfi_1_1TrackAttach_adc1fb244c7aab47712954b5b0347bc2a}


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 
trackattach.\-h\end{DoxyCompactItemize}
