\hypertarget{classvertex__lcfi_1_1TwoTrackPid}{\subsection{vertex\-\_\-lcfi\-:\-:Two\-Track\-Pid Class Reference}
\label{classvertex__lcfi_1_1TwoTrackPid}\index{vertex\-\_\-lcfi\-::\-Two\-Track\-Pid@{vertex\-\_\-lcfi\-::\-Two\-Track\-Pid}}
}


Simple two track P\-I\-D for gamma and Ks.  




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



Inheritance diagram for vertex\-\_\-lcfi\-:\-:Two\-Track\-Pid\-:


Collaboration diagram for vertex\-\_\-lcfi\-:\-:Two\-Track\-Pid\-:
\subsubsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
string \hyperlink{classvertex__lcfi_1_1TwoTrackPid_a1d6c46e4bfa8add0dc66dc38766b773c}{name} () const 
\begin{DoxyCompactList}\small\item\em Name. \end{DoxyCompactList}\item 
std\-::vector$<$ string $>$ \hyperlink{classvertex__lcfi_1_1TwoTrackPid_a8998c44ca8f7a35330432979861bbd6d}{parameter\-Names} () const 
\begin{DoxyCompactList}\small\item\em Parameter Names. \end{DoxyCompactList}\item 
std\-::vector$<$ string $>$ \hyperlink{classvertex__lcfi_1_1TwoTrackPid_a64d351fa0a9ed0293ae19e87ba35efdb}{parameter\-Values} () const 
\begin{DoxyCompactList}\small\item\em Parameter Values. \end{DoxyCompactList}\item 
void \hyperlink{classvertex__lcfi_1_1TwoTrackPid_a69adc270038b283b685e89df44a13cfa}{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_1TwoTrackPid_ad11609331e56d1fa5e5befc8fc947d6b}{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_1TwoTrackPid_a527e2a37b95fbd157d9884f9baf900bf}{set\-Pointer\-Parameter} (const string \&Parameter, void $\ast$Value)
\begin{DoxyCompactList}\small\item\em Set Pointer Parameter. \end{DoxyCompactList}\item 
std\-::map$<$ Pid\-Cut\-Type, \\*
std\-::vector$<$ \hyperlink{classvertex__lcfi_1_1Track}{Track} $\ast$ $>$ $>$ \hyperlink{classvertex__lcfi_1_1TwoTrackPid_a2ea74d061f395603740f217c385d3e88}{calculate\-For} (\hyperlink{classvertex__lcfi_1_1Jet}{Jet} $\ast$My\-Jet) const 
\begin{DoxyCompactList}\small\item\em Run the algorithm on a \hyperlink{classvertex__lcfi_1_1Jet}{Jet}. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsubsection{Detailed Description}
Simple two track P\-I\-D for gamma and Ks. 

This algorithm calulates the mass of all combinations of \hyperlink{classvertex__lcfi_1_1Track}{Track} pairs with opposite charges. If the tracks mass is consistent with the processes gamma -\/$>$ee or Ks -\/$>$ pi+pi-\/ the tracks are flagged and a pointer is inserted into the map under the correct key (either gamma or Ks) The parameters of this algorithm are\-: 
\begin{DoxyParams}{Parameters}
{\em Max\-Gamma\-Mass} & upper limit on the photon mass \\
\hline
{\em Min\-Ks\-Mass} & lower limit on the Ks mass \\
\hline
{\em Max\-Ks\-Mass} & upper limit on the Ks mass \\
\hline
{\em Chi2\-Cut} & cut on the Chi squared for the two tracks beinig in the same vertex. \\
\hline
{\em R\-Phi\-Cut} & cut on the maximum R\-Phi of the vertex that the tracks form. \\
\hline
{\em Significance\-Cut} & cut on the minimum rphi significance of the tracks with respect to the I\-P.\\
\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_1TwoTrackPid_a2ea74d061f395603740f217c385d3e88}{\index{vertex\-\_\-lcfi\-::\-Two\-Track\-Pid@{vertex\-\_\-lcfi\-::\-Two\-Track\-Pid}!calculate\-For@{calculate\-For}}
\index{calculate\-For@{calculate\-For}!vertex_lcfi::TwoTrackPid@{vertex\-\_\-lcfi\-::\-Two\-Track\-Pid}}
\paragraph[{calculate\-For}]{\setlength{\rightskip}{0pt plus 5cm}std\-::map$<$Pid\-Cut\-Type, std\-::vector$<${\bf Track}$\ast$$>$ $>$ vertex\-\_\-lcfi\-::\-Two\-Track\-Pid\-::calculate\-For (
\begin{DoxyParamCaption}
\item[{{\bf Jet} $\ast$}]{My\-Jet}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily [virtual]}}}\label{classvertex__lcfi_1_1TwoTrackPid_a2ea74d061f395603740f217c385d3e88}


Run the algorithm on a \hyperlink{classvertex__lcfi_1_1Jet}{Jet}. 

Calculates whether two tracks are consistent with the hypothesis of gamma-\/$>$ ee or with the hypothesis gamma-\/$>$pi pi . In case the tracks are consisten with either of these hypothesis the algorithm puts a pointer to these tracks into the correct key of the resulting map. 
\begin{DoxyParams}{Parameters}
{\em \hyperlink{classvertex__lcfi_1_1Jet}{Jet}} & Pointer to \hyperlink{classvertex__lcfi_1_1Jet}{Jet} to be analysed \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
map containing two keys Gamma and Ks which hold the tracks that satisfy these criteria. 
\end{DoxyReturn}


Implements \hyperlink{classvertex__lcfi_1_1Algo_a95a0f611f2ab925663b6f819b7d0f8c8}{vertex\-\_\-lcfi\-::\-Algo$<$ Jet $\ast$, std\-::map$<$ Pid\-Cut\-Type, std\-::vector$<$ vertex\-\_\-lcfi\-::\-Track $\ast$ $>$ $>$ $>$}.

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


Name. 

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


Implements \hyperlink{classvertex__lcfi_1_1Algo_a8dc63ee2a511bf2809979a862167d0d6}{vertex\-\_\-lcfi\-::\-Algo$<$ Jet $\ast$, std\-::map$<$ Pid\-Cut\-Type, std\-::vector$<$ vertex\-\_\-lcfi\-::\-Track $\ast$ $>$ $>$ $>$}.

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


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$<$ Jet $\ast$, std\-::map$<$ Pid\-Cut\-Type, std\-::vector$<$ vertex\-\_\-lcfi\-::\-Track $\ast$ $>$ $>$ $>$}.

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


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$<$ Jet $\ast$, std\-::map$<$ Pid\-Cut\-Type, std\-::vector$<$ vertex\-\_\-lcfi\-::\-Track $\ast$ $>$ $>$ $>$}.

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


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


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


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