\hypertarget{classvertex__lcfi_1_1ZVTOP_1_1CandidateVertex}{\subsection{vertex\-\_\-lcfi\-:\-:Z\-V\-T\-O\-P\-:\-:Candidate\-Vertex Class Reference}
\label{classvertex__lcfi_1_1ZVTOP_1_1CandidateVertex}\index{vertex\-\_\-lcfi\-::\-Z\-V\-T\-O\-P\-::\-Candidate\-Vertex@{vertex\-\_\-lcfi\-::\-Z\-V\-T\-O\-P\-::\-Candidate\-Vertex}}
}


A collection of \hyperlink{classvertex__lcfi_1_1TrackState}{Track\-State} objects with a fit and vertex function maximum.  




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

\subsubsection*{Public Types}
\begin{DoxyCompactItemize}
\item 
enum \hyperlink{classvertex__lcfi_1_1ZVTOP_1_1CandidateVertex_aa7af66fb2357c14996f17c9dcb3272cf}{e\-Resolve\-Type} 
\begin{DoxyCompactList}\small\item\em Type of resolution to perform -\/ vertex position or the nearest found maximum. \end{DoxyCompactList}\item 
typedef Vertex\-Fitter\-L\-S\-M \hyperlink{classvertex__lcfi_1_1ZVTOP_1_1CandidateVertex_a1545f34a52b3752571440ec27dd816ea}{Fallback\-Vertex\-Fitter}
\item 
typedef \hyperlink{classvertex__lcfi_1_1ZVTOP_1_1VertexResolverEqualSteps}{Vertex\-Resolver\-Equal\-Steps} \hyperlink{classvertex__lcfi_1_1ZVTOP_1_1CandidateVertex_a22c20c8905103f5e384f0ddf90e93561}{Fallback\-Vertex\-Resolver}
\item 
typedef \\*
\hyperlink{classvertex__lcfi_1_1ZVTOP_1_1VertexFuncMaxFinderClassicStepper}{Vertex\-Func\-Max\-Finder\-Classic\-Stepper} \hyperlink{classvertex__lcfi_1_1ZVTOP_1_1CandidateVertex_aca700d72ac547560afccf38cc2ed9465}{Fallback\-Vertex\-Func\-Max\-Finder}
\end{DoxyCompactItemize}
\subsubsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{classvertex__lcfi_1_1ZVTOP_1_1CandidateVertex_a990b1f2cef79ad1a14889febfd5c40d8}{Candidate\-Vertex} (const std\-::vector$<$ \hyperlink{classvertex__lcfi_1_1TrackState}{Track\-State} $\ast$ $>$ \&Tracks, \hyperlink{classvertex__lcfi_1_1ZVTOP_1_1VertexFunction}{Vertex\-Function} $\ast$\hyperlink{classvertex__lcfi_1_1ZVTOP_1_1VertexFunction}{Vertex\-Function}, \hyperlink{classvertex__lcfi_1_1ZVTOP_1_1VertexFitter}{Vertex\-Fitter} $\ast$Fitter=\-\_\-get\-Fallback\-Fitter(), \hyperlink{classvertex__lcfi_1_1ZVTOP_1_1VertexResolver}{Vertex\-Resolver} $\ast$Resolver=\-\_\-get\-Fallback\-Resolver(), \hyperlink{classvertex__lcfi_1_1ZVTOP_1_1VertexFuncMaxFinder}{Vertex\-Func\-Max\-Finder} $\ast$Max\-Finder=\-\_\-get\-Fallback\-Max\-Finder())
\begin{DoxyCompactList}\small\item\em Constuct with just \hyperlink{classvertex__lcfi_1_1Track}{Track} list and \hyperlink{classvertex__lcfi_1_1ZVTOP_1_1VertexFunction}{Vertex\-Function}. \end{DoxyCompactList}\item 
\hyperlink{classvertex__lcfi_1_1ZVTOP_1_1CandidateVertex_aab8eb377e9449e1f891bb572d3f33d1d}{Candidate\-Vertex} (const std\-::vector$<$ \hyperlink{classvertex__lcfi_1_1TrackState}{Track\-State} $\ast$ $>$ \&Tracks, \hyperlink{classvertex__lcfi_1_1ZVTOP_1_1InteractionPoint}{Interaction\-Point} $\ast$I\-P, \hyperlink{classvertex__lcfi_1_1ZVTOP_1_1VertexFunction}{Vertex\-Function} $\ast$\hyperlink{classvertex__lcfi_1_1ZVTOP_1_1VertexFunction}{Vertex\-Function}, \hyperlink{classvertex__lcfi_1_1ZVTOP_1_1VertexFitter}{Vertex\-Fitter} $\ast$Fitter=\-\_\-get\-Fallback\-Fitter(), \hyperlink{classvertex__lcfi_1_1ZVTOP_1_1VertexResolver}{Vertex\-Resolver} $\ast$Resolver=\-\_\-get\-Fallback\-Resolver(), \hyperlink{classvertex__lcfi_1_1ZVTOP_1_1VertexFuncMaxFinder}{Vertex\-Func\-Max\-Finder} $\ast$Max\-Finder=\-\_\-get\-Fallback\-Max\-Finder())
\begin{DoxyCompactList}\small\item\em Constuct with \hyperlink{classvertex__lcfi_1_1Track}{Track} list, \hyperlink{classvertex__lcfi_1_1ZVTOP_1_1InteractionPoint}{Interaction\-Point} and \hyperlink{classvertex__lcfi_1_1ZVTOP_1_1VertexFunction}{Vertex\-Function}. \end{DoxyCompactList}\item 
\hyperlink{classvertex__lcfi_1_1ZVTOP_1_1CandidateVertex_a38855d0cae2f6598df2565f0a093accb}{Candidate\-Vertex} (const \hyperlink{classvertex__lcfi_1_1util_1_1Vector3}{Vector3} \&Position, const Matrix3x3 \&Position\-Error, double Chi\-Squared\-Of\-Fit, std\-::map$<$ \hyperlink{classvertex__lcfi_1_1TrackState}{Track\-State} $\ast$, double $>$ Chi\-Squared\-Of\-Track, double Chi\-Squared\-Of\-I\-P)
\begin{DoxyCompactList}\small\item\em Construct a \hyperlink{classvertex__lcfi_1_1ZVTOP_1_1CandidateVertex}{Candidate\-Vertex} with fit information. \end{DoxyCompactList}\item 
\hyperlink{classvertex__lcfi_1_1ZVTOP_1_1CandidateVertex_ab9d26161ecd8ece0a48accc115914e27}{Candidate\-Vertex} (const std\-::vector$<$ \hyperlink{classvertex__lcfi_1_1ZVTOP_1_1CandidateVertex}{Candidate\-Vertex} $\ast$ $>$ \&Vertices, \hyperlink{classvertex__lcfi_1_1ZVTOP_1_1VertexFitter}{Vertex\-Fitter} $\ast$Fitter=\-\_\-get\-Fallback\-Fitter(), \hyperlink{classvertex__lcfi_1_1ZVTOP_1_1VertexResolver}{Vertex\-Resolver} $\ast$Resolver=\-\_\-get\-Fallback\-Resolver(), \hyperlink{classvertex__lcfi_1_1ZVTOP_1_1VertexFuncMaxFinder}{Vertex\-Func\-Max\-Finder} $\ast$Max\-Finder=\-\_\-get\-Fallback\-Max\-Finder())
\begin{DoxyCompactList}\small\item\em Construct a \hyperlink{classvertex__lcfi_1_1ZVTOP_1_1CandidateVertex}{Candidate\-Vertex} by merging other Candidate\-Vertices. \end{DoxyCompactList}\item 
\hyperlink{classvertex__lcfi_1_1ZVTOP_1_1CandidateVertex_aea0c90215338d1cf5a5fe21833a8cbf0}{$\sim$\-Candidate\-Vertex} ()
\begin{DoxyCompactList}\small\item\em Destructor. \end{DoxyCompactList}\item 
bool \hyperlink{classvertex__lcfi_1_1ZVTOP_1_1CandidateVertex_a3750a737220fa111910b949dd22757ff}{remove\-Track\-State} (\hyperlink{classvertex__lcfi_1_1TrackState}{Track\-State} $\ast$const Track\-To\-Remove)
\begin{DoxyCompactList}\small\item\em Remove the first reference to a \hyperlink{classvertex__lcfi_1_1TrackState}{Track\-State} from this vertices track list. \end{DoxyCompactList}\item 
bool \hyperlink{classvertex__lcfi_1_1ZVTOP_1_1CandidateVertex_aca7c5316dd149931d638e2cd54e1f795}{remove\-Track} (\hyperlink{classvertex__lcfi_1_1Track}{Track} $\ast$const Track\-To\-Remove)
\begin{DoxyCompactList}\small\item\em Remove the first \hyperlink{classvertex__lcfi_1_1TrackState}{Track\-State} from this vertices track list which has parent track Track\-To\-Remove. \end{DoxyCompactList}\item 
void \hyperlink{classvertex__lcfi_1_1ZVTOP_1_1CandidateVertex_af2998c3b1d13015de7d051a72463c77b}{add\-Track\-State} (\hyperlink{classvertex__lcfi_1_1TrackState}{Track\-State} $\ast$Track\-To\-Add)
\begin{DoxyCompactList}\small\item\em Add a \hyperlink{classvertex__lcfi_1_1TrackState}{Track\-State} to this vertex. \end{DoxyCompactList}\item 
bool \hyperlink{classvertex__lcfi_1_1ZVTOP_1_1CandidateVertex_ad4af8e62b42e57813c375be2ef8f40bb}{remove\-I\-P} ()
\begin{DoxyCompactList}\small\item\em Remove this vertices \hyperlink{classvertex__lcfi_1_1ZVTOP_1_1InteractionPoint}{Interaction\-Point}. \end{DoxyCompactList}\item 
void \hyperlink{classvertex__lcfi_1_1ZVTOP_1_1CandidateVertex_a42324251fbd9c10ea5dde90ea360c0ca}{set\-I\-P} (\hyperlink{classvertex__lcfi_1_1ZVTOP_1_1InteractionPoint}{Interaction\-Point} $\ast$I\-P)
\begin{DoxyCompactList}\small\item\em Add an \hyperlink{classvertex__lcfi_1_1ZVTOP_1_1InteractionPoint}{Interaction\-Point}. \end{DoxyCompactList}\item 
void \hyperlink{classvertex__lcfi_1_1ZVTOP_1_1CandidateVertex_a6bb56595c5ef7228aa4a00e7fd65c6ac}{merge\-Candidate\-Vertex} (const \hyperlink{classvertex__lcfi_1_1ZVTOP_1_1CandidateVertex}{Candidate\-Vertex} $\ast$Source\-Vertex)
\begin{DoxyCompactList}\small\item\em Merge another vertex into this one. \end{DoxyCompactList}\item 
void \hyperlink{classvertex__lcfi_1_1ZVTOP_1_1CandidateVertex_a95a0e5fbf27c1e2fe97e488325265c0e}{claim\-Tracks\-From} (const std\-::list$<$ \hyperlink{classvertex__lcfi_1_1ZVTOP_1_1CandidateVertex}{Candidate\-Vertex} $\ast$ $>$ \&Losing\-Vertices)
\begin{DoxyCompactList}\small\item\em Claim tracks and I\-P from another vertex. \end{DoxyCompactList}\item 
int \hyperlink{classvertex__lcfi_1_1ZVTOP_1_1CandidateVertex_af50243ef090622dbf56dbfef99f50b49}{trim\-By\-Prob} (const double Prob\-Threshold)
\begin{DoxyCompactList}\small\item\em Trim trackstates in order of decreasing chi squared until the vertex has a probabilty below that of the threshold. \end{DoxyCompactList}\item 
int \hyperlink{classvertex__lcfi_1_1ZVTOP_1_1CandidateVertex_a472a2af6ce3bad056b0e233b5bbc0acd}{trim\-By\-Chi2} (const double Chi2\-Threshold)
\begin{DoxyCompactList}\small\item\em Trim trackstates with chi squared contributions bigger than the threshold. \end{DoxyCompactList}\item 
int \hyperlink{classvertex__lcfi_1_1ZVTOP_1_1CandidateVertex_a0dd4501c334db979dac5beb6290ef0a0}{trim\-By\-Chi2} (const double Chi2\-Threshold, \hyperlink{classvertex__lcfi_1_1ZVTOP_1_1VertexFitter}{Vertex\-Fitter} $\ast$Fitter)
\begin{DoxyCompactList}\small\item\em Trim trackstates with chi squared contributions bigger than the threshold. \end{DoxyCompactList}\item 
void \hyperlink{classvertex__lcfi_1_1ZVTOP_1_1CandidateVertex_a477dcc63d8a7916da09ec824baf42660}{invalidate\-Fit} () const 
\begin{DoxyCompactList}\small\item\em Invalidate the fit so that the \hyperlink{classvertex__lcfi_1_1ZVTOP_1_1CandidateVertex_aaa26becf09f271b14363ecd8d14acf75}{refit()} is called when needed. \end{DoxyCompactList}\item 
void \hyperlink{classvertex__lcfi_1_1ZVTOP_1_1CandidateVertex_aaa26becf09f271b14363ecd8d14acf75}{refit} (bool Calculate\-Error=0) const 
\begin{DoxyCompactList}\small\item\em Refit the vertex. \end{DoxyCompactList}\item 
void \hyperlink{classvertex__lcfi_1_1ZVTOP_1_1CandidateVertex_a65d0aaafa95590ceb6052657a44f9edf}{refit} (\hyperlink{classvertex__lcfi_1_1ZVTOP_1_1VertexFitter}{Vertex\-Fitter} $\ast$Fitter, bool Calculate\-Error=0) const 
\begin{DoxyCompactList}\small\item\em Refit the vertex using the fitter specified. \end{DoxyCompactList}\item 
\hypertarget{classvertex__lcfi_1_1ZVTOP_1_1CandidateVertex_a18614b3d8958e4deddebe1d6ddd8cdc9}{void \hyperlink{classvertex__lcfi_1_1ZVTOP_1_1CandidateVertex_a18614b3d8958e4deddebe1d6ddd8cdc9}{invalidate\-Func\-Max} () const }\label{classvertex__lcfi_1_1ZVTOP_1_1CandidateVertex_a18614b3d8958e4deddebe1d6ddd8cdc9}

\begin{DoxyCompactList}\small\item\em Invalidate the found vertex function maximum so that \hyperlink{classvertex__lcfi_1_1ZVTOP_1_1CandidateVertex_aaa661fe07ee74a0adf27f5d2ade29d9d}{find\-Vertex\-Func\-Max()} is called when needed. \end{DoxyCompactList}\item 
bool \hyperlink{classvertex__lcfi_1_1ZVTOP_1_1CandidateVertex_aaa661fe07ee74a0adf27f5d2ade29d9d}{find\-Vertex\-Func\-Max} () const 
\begin{DoxyCompactList}\small\item\em Find the local vertex function maximum. \end{DoxyCompactList}\item 
bool \hyperlink{classvertex__lcfi_1_1ZVTOP_1_1CandidateVertex_a08302d75ea111e006df6194a83f3a434}{is\-Resolved\-From} (\hyperlink{classvertex__lcfi_1_1ZVTOP_1_1CandidateVertex}{Candidate\-Vertex} $\ast$const \hyperlink{classvertex__lcfi_1_1Vertex}{Vertex}, const double Threshold, \hyperlink{classvertex__lcfi_1_1ZVTOP_1_1CandidateVertex_aa7af66fb2357c14996f17c9dcb3272cf}{e\-Resolve\-Type} Type) const 
\begin{DoxyCompactList}\small\item\em Resolve two vertices with this vertices resolver. \end{DoxyCompactList}\item 
bool \hyperlink{classvertex__lcfi_1_1ZVTOP_1_1CandidateVertex_a64b9afb89731b9996af9c3d7ed88e3cc}{is\-Resolved\-From} (\hyperlink{classvertex__lcfi_1_1ZVTOP_1_1CandidateVertex}{Candidate\-Vertex} $\ast$const \hyperlink{classvertex__lcfi_1_1Vertex}{Vertex}, const double Threshold, \hyperlink{classvertex__lcfi_1_1ZVTOP_1_1CandidateVertex_aa7af66fb2357c14996f17c9dcb3272cf}{e\-Resolve\-Type} Type, \hyperlink{classvertex__lcfi_1_1ZVTOP_1_1VertexResolver}{Vertex\-Resolver} $\ast$Resolver) const 
\begin{DoxyCompactList}\small\item\em Resolve two vertices with a specified resolver. \end{DoxyCompactList}\item 
const std\-::vector$<$ \hyperlink{classvertex__lcfi_1_1TrackState}{Track\-State} $\ast$ $>$ \& \hyperlink{classvertex__lcfi_1_1ZVTOP_1_1CandidateVertex_aca0a36c1c0346881060dc879f8ec1f81}{track\-State\-List} () const 
\begin{DoxyCompactList}\small\item\em Return the Track\-States in this \hyperlink{classvertex__lcfi_1_1Vertex}{Vertex}. \end{DoxyCompactList}\item 
bool \hyperlink{classvertex__lcfi_1_1ZVTOP_1_1CandidateVertex_a433cf5b933e0645769ad5e42f0b03d53}{has\-Track} (\hyperlink{classvertex__lcfi_1_1Track}{Track} $\ast$\hyperlink{classvertex__lcfi_1_1Track}{Track}) const 
\begin{DoxyCompactList}\small\item\em Return if this \hyperlink{classvertex__lcfi_1_1Vertex}{Vertex} contains the passed track. \end{DoxyCompactList}\item 
\hypertarget{classvertex__lcfi_1_1ZVTOP_1_1CandidateVertex_a6ad661a25fcddad90a049f4659223bd2}{\hyperlink{classvertex__lcfi_1_1ZVTOP_1_1InteractionPoint}{Interaction\-Point} $\ast$ \hyperlink{classvertex__lcfi_1_1ZVTOP_1_1CandidateVertex_a6ad661a25fcddad90a049f4659223bd2}{interaction\-Point} () const }\label{classvertex__lcfi_1_1ZVTOP_1_1CandidateVertex_a6ad661a25fcddad90a049f4659223bd2}

\begin{DoxyCompactList}\small\item\em Return the \hyperlink{classvertex__lcfi_1_1ZVTOP_1_1InteractionPoint}{Interaction\-Point} in this \hyperlink{classvertex__lcfi_1_1Vertex}{Vertex}. \end{DoxyCompactList}\item 
const \hyperlink{classvertex__lcfi_1_1util_1_1Vector3}{Vector3} \& \hyperlink{classvertex__lcfi_1_1ZVTOP_1_1CandidateVertex_aebd6a62a04c8bab83ec94cbd5c242a73}{position} () const 
\begin{DoxyCompactList}\small\item\em Return the fitted position of this \hyperlink{classvertex__lcfi_1_1Vertex}{Vertex}. \end{DoxyCompactList}\item 
const Matrix3x3 \& \hyperlink{classvertex__lcfi_1_1ZVTOP_1_1CandidateVertex_acdc909399b6d577b3cd9ece4804f3fb7}{position\-Error} () const 
\begin{DoxyCompactList}\small\item\em Return the fitted position error matrix of this \hyperlink{classvertex__lcfi_1_1Vertex}{Vertex}. \end{DoxyCompactList}\item 
double \hyperlink{classvertex__lcfi_1_1ZVTOP_1_1CandidateVertex_a0bce2615cddc2a6cc140010f6f8e6d22}{distance\-To} (const \hyperlink{classvertex__lcfi_1_1util_1_1Vector3}{Vector3} \&Point) const 
\begin{DoxyCompactList}\small\item\em Return the distance from this \hyperlink{classvertex__lcfi_1_1Vertex}{Vertex} to a point. \end{DoxyCompactList}\item 
double \hyperlink{classvertex__lcfi_1_1ZVTOP_1_1CandidateVertex_a8e29a8729c9cea7d1751cd5e081b8b17}{distance\-To} (const \hyperlink{classvertex__lcfi_1_1ZVTOP_1_1CandidateVertex}{Candidate\-Vertex} $\ast$const \hyperlink{classvertex__lcfi_1_1Vertex}{Vertex}) const 
\begin{DoxyCompactList}\small\item\em Return the distance from this \hyperlink{classvertex__lcfi_1_1Vertex}{Vertex} to another \hyperlink{classvertex__lcfi_1_1Vertex}{Vertex}. \end{DoxyCompactList}\item 
double \hyperlink{classvertex__lcfi_1_1ZVTOP_1_1CandidateVertex_ad31c5b8b584849a9beada2828fc18323}{vertex\-Func\-Max\-Value} () const 
\begin{DoxyCompactList}\small\item\em Return the value of the vertex function at this vertexes local maximum. \end{DoxyCompactList}\item 
const \hyperlink{classvertex__lcfi_1_1util_1_1Vector3}{Vector3} \& \hyperlink{classvertex__lcfi_1_1ZVTOP_1_1CandidateVertex_a27857e5d9d029203777cdd7119115cd7}{vertex\-Func\-Max\-Position} () const 
\begin{DoxyCompactList}\small\item\em Return the position of this vertexes local maximum. \end{DoxyCompactList}\item 
double \hyperlink{classvertex__lcfi_1_1ZVTOP_1_1CandidateVertex_a7b6c36a0cc46f3f1efe568fcf45a9c9d}{vertex\-Func\-Value} () const 
\begin{DoxyCompactList}\small\item\em Return the value of the vertex function at the vertices position. \end{DoxyCompactList}\item 
double \hyperlink{classvertex__lcfi_1_1ZVTOP_1_1CandidateVertex_a20388ef63d7e3769004280c6b5f70bea}{chi\-Squared\-Of\-Track} (\hyperlink{classvertex__lcfi_1_1TrackState}{Track\-State} $\ast$\hyperlink{classvertex__lcfi_1_1Track}{Track}) const 
\begin{DoxyCompactList}\small\item\em Return the chi squared contribution of a trackstate in this vertex. \end{DoxyCompactList}\item 
double \hyperlink{classvertex__lcfi_1_1ZVTOP_1_1CandidateVertex_a275b46b361c8dd6addc36ed7f0e192c4}{chi\-Squared\-Of\-I\-P} () const 
\begin{DoxyCompactList}\small\item\em Return the chi squared contribution of the I\-P if this vertex has one. \end{DoxyCompactList}\item 
const std\-::map$<$ \hyperlink{classvertex__lcfi_1_1TrackState}{Track\-State} \\*
$\ast$, double $>$ \& \hyperlink{classvertex__lcfi_1_1ZVTOP_1_1CandidateVertex_af298e1c1a9b5ea0099fcfbc2a0e66eec}{chi\-Squared\-Of\-All\-Tracks} () const 
\begin{DoxyCompactList}\small\item\em Return the chi squared contribution of all the trackstates in this vertex. \end{DoxyCompactList}\item 
double \hyperlink{classvertex__lcfi_1_1ZVTOP_1_1CandidateVertex_af166efa1fda457a7b3d990a420abfad6}{chi\-Squared\-Of\-Fit} () const 
\begin{DoxyCompactList}\small\item\em Return the chi squared of the fit. \end{DoxyCompactList}\item 
double \hyperlink{classvertex__lcfi_1_1ZVTOP_1_1CandidateVertex_af6e2bf146c2772543fd442c6c49c89c8}{max\-Chi\-Squared\-Of\-Track\-I\-P} () const 
\begin{DoxyCompactList}\small\item\em Return the chi squared contribution of the \hyperlink{classvertex__lcfi_1_1Track}{Track} or I\-P with the highest chi square contribution. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsubsection{Detailed Description}
A collection of \hyperlink{classvertex__lcfi_1_1TrackState}{Track\-State} objects with a fit and vertex function maximum. 

This class is a list of Track\-States (and possibly an \hyperlink{classvertex__lcfi_1_1ZVTOP_1_1InteractionPoint}{Interaction\-Point}) that are fit to a common spatial point, and which are optionally related to a maximum in the vertex function. Three external algorithm classes are used, \hyperlink{classvertex__lcfi_1_1ZVTOP_1_1VertexFitter}{Vertex\-Fitter},\hyperlink{classvertex__lcfi_1_1ZVTOP_1_1VertexResolver}{Vertex\-Resolver} and \hyperlink{classvertex__lcfi_1_1ZVTOP_1_1VertexFuncMaxFinder}{Vertex\-Func\-Max\-Finder}. The perticular instance of these algorithms to be used by each candidate vertex is specified at construction, the constuctor defaults to fallback algorithms if none are specified. \par
 In order to minimise the number of times a vertex is fitted, this only happens when needed. When a candidate vertex is created or its track content changed a flag is set (\-\_\-\-Fit\-Is\-Valid) to 0, a function such as \hyperlink{classvertex__lcfi_1_1ZVTOP_1_1CandidateVertex_aebd6a62a04c8bab83ec94cbd5c242a73}{position()} will check the status of this flag and fit the vertex if needed, so that a fit only occurs if the track content changed {\itshape and} the fit is needed. The vertex function maximum works in a similar way, except it is not currently invalidated on a change of track content as classic \hyperlink{namespacevertex__lcfi_1_1ZVTOP}{Z\-V\-T\-O\-P} does not require this. \par
 The per-\/instance algorithms can be overridden as the functions that use them are overloaded with a version that takes a pointer to the algorithm class. For example calling is\-Resolved\-From(\-Vertex, Threshold, Resolver) rather than is\-Resolved\-From(\-Vertex,\-Threshold). For fitting and max finding this is slightly complicated by the caching system mentioned above. For example to use a different fitter than that specified at constuction to get the position of the vertex, one must call refit(\-Fitter) and then \hyperlink{classvertex__lcfi_1_1ZVTOP_1_1CandidateVertex_aebd6a62a04c8bab83ec94cbd5c242a73}{position()}.

\begin{DoxyAuthor}{Author}
Ben Jeffery (\href{mailto:b.jeffery1@physics.ox.ac.uk}{\tt b.\-jeffery1@physics.\-ox.\-ac.\-uk}) 
\end{DoxyAuthor}
\begin{DoxyVersion}{Version}
0.\-1 
\end{DoxyVersion}
\begin{DoxyDate}{Date}
20/09/05 
\end{DoxyDate}


\subsubsection{Member Typedef Documentation}
\hypertarget{classvertex__lcfi_1_1ZVTOP_1_1CandidateVertex_a1545f34a52b3752571440ec27dd816ea}{\index{vertex\-\_\-lcfi\-::\-Z\-V\-T\-O\-P\-::\-Candidate\-Vertex@{vertex\-\_\-lcfi\-::\-Z\-V\-T\-O\-P\-::\-Candidate\-Vertex}!Fallback\-Vertex\-Fitter@{Fallback\-Vertex\-Fitter}}
\index{Fallback\-Vertex\-Fitter@{Fallback\-Vertex\-Fitter}!vertex_lcfi::ZVTOP::CandidateVertex@{vertex\-\_\-lcfi\-::\-Z\-V\-T\-O\-P\-::\-Candidate\-Vertex}}
\paragraph[{Fallback\-Vertex\-Fitter}]{\setlength{\rightskip}{0pt plus 5cm}typedef Vertex\-Fitter\-L\-S\-M {\bf vertex\-\_\-lcfi\-::\-Z\-V\-T\-O\-P\-::\-Candidate\-Vertex\-::\-Fallback\-Vertex\-Fitter}}}\label{classvertex__lcfi_1_1ZVTOP_1_1CandidateVertex_a1545f34a52b3752571440ec27dd816ea}
This typedef determines the \hyperlink{classvertex__lcfi_1_1ZVTOP_1_1VertexFitter}{Vertex\-Fitter} used if none is specified in the \hyperlink{classvertex__lcfi_1_1ZVTOP_1_1CandidateVertex}{Candidate\-Vertex} constuctor. If changed you may need to change the includes in the cpp file \hypertarget{classvertex__lcfi_1_1ZVTOP_1_1CandidateVertex_aca700d72ac547560afccf38cc2ed9465}{\index{vertex\-\_\-lcfi\-::\-Z\-V\-T\-O\-P\-::\-Candidate\-Vertex@{vertex\-\_\-lcfi\-::\-Z\-V\-T\-O\-P\-::\-Candidate\-Vertex}!Fallback\-Vertex\-Func\-Max\-Finder@{Fallback\-Vertex\-Func\-Max\-Finder}}
\index{Fallback\-Vertex\-Func\-Max\-Finder@{Fallback\-Vertex\-Func\-Max\-Finder}!vertex_lcfi::ZVTOP::CandidateVertex@{vertex\-\_\-lcfi\-::\-Z\-V\-T\-O\-P\-::\-Candidate\-Vertex}}
\paragraph[{Fallback\-Vertex\-Func\-Max\-Finder}]{\setlength{\rightskip}{0pt plus 5cm}typedef {\bf Vertex\-Func\-Max\-Finder\-Classic\-Stepper} {\bf vertex\-\_\-lcfi\-::\-Z\-V\-T\-O\-P\-::\-Candidate\-Vertex\-::\-Fallback\-Vertex\-Func\-Max\-Finder}}}\label{classvertex__lcfi_1_1ZVTOP_1_1CandidateVertex_aca700d72ac547560afccf38cc2ed9465}
This typedef determines the \hyperlink{classvertex__lcfi_1_1ZVTOP_1_1VertexFuncMaxFinder}{Vertex\-Func\-Max\-Finder} used if none is specified in the \hyperlink{classvertex__lcfi_1_1ZVTOP_1_1CandidateVertex}{Candidate\-Vertex} constuctor. If changed you may need to change the includes in the cpp file \hypertarget{classvertex__lcfi_1_1ZVTOP_1_1CandidateVertex_a22c20c8905103f5e384f0ddf90e93561}{\index{vertex\-\_\-lcfi\-::\-Z\-V\-T\-O\-P\-::\-Candidate\-Vertex@{vertex\-\_\-lcfi\-::\-Z\-V\-T\-O\-P\-::\-Candidate\-Vertex}!Fallback\-Vertex\-Resolver@{Fallback\-Vertex\-Resolver}}
\index{Fallback\-Vertex\-Resolver@{Fallback\-Vertex\-Resolver}!vertex_lcfi::ZVTOP::CandidateVertex@{vertex\-\_\-lcfi\-::\-Z\-V\-T\-O\-P\-::\-Candidate\-Vertex}}
\paragraph[{Fallback\-Vertex\-Resolver}]{\setlength{\rightskip}{0pt plus 5cm}typedef {\bf Vertex\-Resolver\-Equal\-Steps} {\bf vertex\-\_\-lcfi\-::\-Z\-V\-T\-O\-P\-::\-Candidate\-Vertex\-::\-Fallback\-Vertex\-Resolver}}}\label{classvertex__lcfi_1_1ZVTOP_1_1CandidateVertex_a22c20c8905103f5e384f0ddf90e93561}
This typedef determines the \hyperlink{classvertex__lcfi_1_1ZVTOP_1_1VertexResolver}{Vertex\-Resolver} used if none is specified in the \hyperlink{classvertex__lcfi_1_1ZVTOP_1_1CandidateVertex}{Candidate\-Vertex} constuctor. If changed you may need to change the includes in the cpp file 

\subsubsection{Constructor \& Destructor Documentation}
\hypertarget{classvertex__lcfi_1_1ZVTOP_1_1CandidateVertex_a990b1f2cef79ad1a14889febfd5c40d8}{\index{vertex\-\_\-lcfi\-::\-Z\-V\-T\-O\-P\-::\-Candidate\-Vertex@{vertex\-\_\-lcfi\-::\-Z\-V\-T\-O\-P\-::\-Candidate\-Vertex}!Candidate\-Vertex@{Candidate\-Vertex}}
\index{Candidate\-Vertex@{Candidate\-Vertex}!vertex_lcfi::ZVTOP::CandidateVertex@{vertex\-\_\-lcfi\-::\-Z\-V\-T\-O\-P\-::\-Candidate\-Vertex}}
\paragraph[{Candidate\-Vertex}]{\setlength{\rightskip}{0pt plus 5cm}vertex\-\_\-lcfi\-::\-Z\-V\-T\-O\-P\-::\-Candidate\-Vertex\-::\-Candidate\-Vertex (
\begin{DoxyParamCaption}
\item[{const std\-::vector$<$ {\bf Track\-State} $\ast$ $>$ \&}]{Tracks, }
\item[{{\bf Vertex\-Function} $\ast$}]{Vertex\-Function, }
\item[{{\bf Vertex\-Fitter} $\ast$}]{Fitter = {\ttfamily \-\_\-getFallbackFitter()}, }
\item[{{\bf Vertex\-Resolver} $\ast$}]{Resolver = {\ttfamily \-\_\-getFallbackResolver()}, }
\item[{{\bf Vertex\-Func\-Max\-Finder} $\ast$}]{Max\-Finder = {\ttfamily \-\_\-getFallbackMaxFinder()}}
\end{DoxyParamCaption}
)}}\label{classvertex__lcfi_1_1ZVTOP_1_1CandidateVertex_a990b1f2cef79ad1a14889febfd5c40d8}


Constuct with just \hyperlink{classvertex__lcfi_1_1Track}{Track} list and \hyperlink{classvertex__lcfi_1_1ZVTOP_1_1VertexFunction}{Vertex\-Function}. 

Creates a \hyperlink{classvertex__lcfi_1_1ZVTOP_1_1CandidateVertex}{Candidate\-Vertex} from a set of \hyperlink{classvertex__lcfi_1_1TrackState}{Track\-State} objects, a \hyperlink{classvertex__lcfi_1_1ZVTOP_1_1VertexFunction}{Vertex\-Function} but no \hyperlink{classvertex__lcfi_1_1ZVTOP_1_1InteractionPoint}{Interaction\-Point}. As no fit or \hyperlink{classvertex__lcfi_1_1ZVTOP_1_1VertexFunction}{Vertex\-Function} maximum is specifed at constuction the flags for these are set to invalid so that they are worked out when needed. Note defaults for fitter, resolver and max finder. 
\begin{DoxyParams}{Parameters}
{\em Tracks} & A vector of pointers to the \hyperlink{classvertex__lcfi_1_1TrackState}{Track\-State} objects that form this \hyperlink{classvertex__lcfi_1_1ZVTOP_1_1CandidateVertex}{Candidate\-Vertex}. The same \hyperlink{classvertex__lcfi_1_1TrackState}{Track\-State} can be given to multiple \hyperlink{classvertex__lcfi_1_1ZVTOP_1_1CandidateVertex}{Candidate\-Vertex} objects, but this is may not desierable as the \hyperlink{classvertex__lcfi_1_1TrackState}{Track\-State} would then be swum back and forth between the vertices. \\
\hline
{\em \hyperlink{classvertex__lcfi_1_1ZVTOP_1_1VertexFunction}{Vertex\-Function}} & Pointer to the function which is explored for the nearest maxima to the fit vertex. \\
\hline
{\em Fitter} & Pointer to the \hyperlink{classvertex__lcfi_1_1ZVTOP_1_1VertexFitter}{Vertex\-Fitter} that the vertex uses to fit itself. Defaults to the typedef Fallback\-Vertex\-Fitter. \\
\hline
{\em Resolver} & Pointer to the \hyperlink{classvertex__lcfi_1_1ZVTOP_1_1VertexResolver}{Vertex\-Resolver} that the vertex uses to resolve itself from others. Defaults to the typedef Fallback\-Vertex\-Resolver. \\
\hline
{\em Max\-Finder} & Pointer to the \hyperlink{classvertex__lcfi_1_1ZVTOP_1_1VertexFuncMaxFinder}{Vertex\-Func\-Max\-Finder} that the vertex uses to find the nearest \hyperlink{classvertex__lcfi_1_1ZVTOP_1_1VertexFunction}{Vertex\-Function} maximum. Defaults to the typedef Fallback\-Vertex\-Func\-Max\-Finder. \\
\hline
\end{DoxyParams}
\hypertarget{classvertex__lcfi_1_1ZVTOP_1_1CandidateVertex_aab8eb377e9449e1f891bb572d3f33d1d}{\index{vertex\-\_\-lcfi\-::\-Z\-V\-T\-O\-P\-::\-Candidate\-Vertex@{vertex\-\_\-lcfi\-::\-Z\-V\-T\-O\-P\-::\-Candidate\-Vertex}!Candidate\-Vertex@{Candidate\-Vertex}}
\index{Candidate\-Vertex@{Candidate\-Vertex}!vertex_lcfi::ZVTOP::CandidateVertex@{vertex\-\_\-lcfi\-::\-Z\-V\-T\-O\-P\-::\-Candidate\-Vertex}}
\paragraph[{Candidate\-Vertex}]{\setlength{\rightskip}{0pt plus 5cm}vertex\-\_\-lcfi\-::\-Z\-V\-T\-O\-P\-::\-Candidate\-Vertex\-::\-Candidate\-Vertex (
\begin{DoxyParamCaption}
\item[{const std\-::vector$<$ {\bf Track\-State} $\ast$ $>$ \&}]{Tracks, }
\item[{{\bf Interaction\-Point} $\ast$}]{I\-P, }
\item[{{\bf Vertex\-Function} $\ast$}]{Vertex\-Function, }
\item[{{\bf Vertex\-Fitter} $\ast$}]{Fitter = {\ttfamily \-\_\-getFallbackFitter()}, }
\item[{{\bf Vertex\-Resolver} $\ast$}]{Resolver = {\ttfamily \-\_\-getFallbackResolver()}, }
\item[{{\bf Vertex\-Func\-Max\-Finder} $\ast$}]{Max\-Finder = {\ttfamily \-\_\-getFallbackMaxFinder()}}
\end{DoxyParamCaption}
)}}\label{classvertex__lcfi_1_1ZVTOP_1_1CandidateVertex_aab8eb377e9449e1f891bb572d3f33d1d}


Constuct with \hyperlink{classvertex__lcfi_1_1Track}{Track} list, \hyperlink{classvertex__lcfi_1_1ZVTOP_1_1InteractionPoint}{Interaction\-Point} and \hyperlink{classvertex__lcfi_1_1ZVTOP_1_1VertexFunction}{Vertex\-Function}. 

Creates a \hyperlink{classvertex__lcfi_1_1ZVTOP_1_1CandidateVertex}{Candidate\-Vertex} from a set of \hyperlink{classvertex__lcfi_1_1TrackState}{Track\-State} objects, a \hyperlink{classvertex__lcfi_1_1ZVTOP_1_1VertexFunction}{Vertex\-Function} and an \hyperlink{classvertex__lcfi_1_1ZVTOP_1_1InteractionPoint}{Interaction\-Point}. As no fit or \hyperlink{classvertex__lcfi_1_1ZVTOP_1_1VertexFunction}{Vertex\-Function} maximum is specifed at constuction the flags for these are set to invalid so that they are worked out when needed. Note defaults for fitter, resolver and max finder. 
\begin{DoxyParams}{Parameters}
{\em Tracks} & A vector of pointers to the \hyperlink{classvertex__lcfi_1_1TrackState}{Track\-State} objects that form this \hyperlink{classvertex__lcfi_1_1ZVTOP_1_1CandidateVertex}{Candidate\-Vertex}. The same \hyperlink{classvertex__lcfi_1_1TrackState}{Track\-State} can be given to multiple \hyperlink{classvertex__lcfi_1_1ZVTOP_1_1CandidateVertex}{Candidate\-Vertex} objects, but this is may not desierable as the \hyperlink{classvertex__lcfi_1_1TrackState}{Track\-State} would then be swum back and forth between the vertices. \\
\hline
{\em I\-P} & A pointer to the \hyperlink{classvertex__lcfi_1_1ZVTOP_1_1InteractionPoint}{Interaction\-Point} associated with the vertex \\
\hline
{\em \hyperlink{classvertex__lcfi_1_1ZVTOP_1_1VertexFunction}{Vertex\-Function}} & Pointer to the function which is explored for the nearest maxima to the fit vertex. \\
\hline
{\em Fitter} & Pointer to the \hyperlink{classvertex__lcfi_1_1ZVTOP_1_1VertexFitter}{Vertex\-Fitter} that the vertex uses to fit itself. Defaults to the typedef Fallback\-Vertex\-Fitter. \\
\hline
{\em Resolver} & Pointer to the \hyperlink{classvertex__lcfi_1_1ZVTOP_1_1VertexResolver}{Vertex\-Resolver} that the vertex uses to resolve itself from others. Defaults to the typedef Fallback\-Vertex\-Resolver. \\
\hline
{\em Max\-Finder} & Pointer to the \hyperlink{classvertex__lcfi_1_1ZVTOP_1_1VertexFuncMaxFinder}{Vertex\-Func\-Max\-Finder} that the vertex uses to find the nearest \hyperlink{classvertex__lcfi_1_1ZVTOP_1_1VertexFunction}{Vertex\-Function} maximum. Defaults to the typedef Fallback\-Vertex\-Func\-Max\-Finder. \\
\hline
\end{DoxyParams}
\hypertarget{classvertex__lcfi_1_1ZVTOP_1_1CandidateVertex_a38855d0cae2f6598df2565f0a093accb}{\index{vertex\-\_\-lcfi\-::\-Z\-V\-T\-O\-P\-::\-Candidate\-Vertex@{vertex\-\_\-lcfi\-::\-Z\-V\-T\-O\-P\-::\-Candidate\-Vertex}!Candidate\-Vertex@{Candidate\-Vertex}}
\index{Candidate\-Vertex@{Candidate\-Vertex}!vertex_lcfi::ZVTOP::CandidateVertex@{vertex\-\_\-lcfi\-::\-Z\-V\-T\-O\-P\-::\-Candidate\-Vertex}}
\paragraph[{Candidate\-Vertex}]{\setlength{\rightskip}{0pt plus 5cm}vertex\-\_\-lcfi\-::\-Z\-V\-T\-O\-P\-::\-Candidate\-Vertex\-::\-Candidate\-Vertex (
\begin{DoxyParamCaption}
\item[{const {\bf Vector3} \&}]{Position, }
\item[{const Matrix3x3 \&}]{Position\-Error, }
\item[{double}]{Chi\-Squared\-Of\-Fit, }
\item[{std\-::map$<$ {\bf Track\-State} $\ast$, double $>$}]{Chi\-Squared\-Of\-Track, }
\item[{double}]{Chi\-Squared\-Of\-I\-P}
\end{DoxyParamCaption}
)}}\label{classvertex__lcfi_1_1ZVTOP_1_1CandidateVertex_a38855d0cae2f6598df2565f0a093accb}


Construct a \hyperlink{classvertex__lcfi_1_1ZVTOP_1_1CandidateVertex}{Candidate\-Vertex} with fit information. 

Creates a \hyperlink{classvertex__lcfi_1_1ZVTOP_1_1CandidateVertex}{Candidate\-Vertex} that contains fit information and in which the fit flag is set valid. 
\begin{DoxyParams}{Parameters}
{\em Position} & Position of the fitted vertex \\
\hline
{\em Position\-Error} & Error\-Matrix of the fitted vertex \\
\hline
{\em Chi\-Squared\-Of\-Fit} & Chi Squared of total fit \\
\hline
{\em Chi\-Squared\-Of\-Track} & A std\-::map of track chi squareds indexed by trackstate pointer \\
\hline
{\em Chi\-Squared\-Of\-I\-P} & Chi squared contribution of I\-P object (if any) \\
\hline
\end{DoxyParams}
\hypertarget{classvertex__lcfi_1_1ZVTOP_1_1CandidateVertex_ab9d26161ecd8ece0a48accc115914e27}{\index{vertex\-\_\-lcfi\-::\-Z\-V\-T\-O\-P\-::\-Candidate\-Vertex@{vertex\-\_\-lcfi\-::\-Z\-V\-T\-O\-P\-::\-Candidate\-Vertex}!Candidate\-Vertex@{Candidate\-Vertex}}
\index{Candidate\-Vertex@{Candidate\-Vertex}!vertex_lcfi::ZVTOP::CandidateVertex@{vertex\-\_\-lcfi\-::\-Z\-V\-T\-O\-P\-::\-Candidate\-Vertex}}
\paragraph[{Candidate\-Vertex}]{\setlength{\rightskip}{0pt plus 5cm}vertex\-\_\-lcfi\-::\-Z\-V\-T\-O\-P\-::\-Candidate\-Vertex\-::\-Candidate\-Vertex (
\begin{DoxyParamCaption}
\item[{const std\-::vector$<$ {\bf Candidate\-Vertex} $\ast$ $>$ \&}]{Vertices, }
\item[{{\bf Vertex\-Fitter} $\ast$}]{Fitter = {\ttfamily \-\_\-getFallbackFitter()}, }
\item[{{\bf Vertex\-Resolver} $\ast$}]{Resolver = {\ttfamily \-\_\-getFallbackResolver()}, }
\item[{{\bf Vertex\-Func\-Max\-Finder} $\ast$}]{Max\-Finder = {\ttfamily \-\_\-getFallbackMaxFinder()}}
\end{DoxyParamCaption}
)}}\label{classvertex__lcfi_1_1ZVTOP_1_1CandidateVertex_ab9d26161ecd8ece0a48accc115914e27}


Construct a \hyperlink{classvertex__lcfi_1_1ZVTOP_1_1CandidateVertex}{Candidate\-Vertex} by merging other Candidate\-Vertices. 

Creates a \hyperlink{classvertex__lcfi_1_1ZVTOP_1_1CandidateVertex}{Candidate\-Vertex} by merging the tracks and I\-P from a collection of C\-V's track duplicates are removed by checking if Track\-States have the same parent, if there is more than one I\-P object the I\-P from the last vertex in the list is used. If the list is empty you get an empty vertex! Ignores vertex functions. 
\begin{DoxyParams}{Parameters}
{\em Vertices} & Position of the fitted vertex \\
\hline
{\em Fitter} & Pointer to the \hyperlink{classvertex__lcfi_1_1ZVTOP_1_1VertexFitter}{Vertex\-Fitter} that the vertex uses to fit itself. Defaults to the typedef Fallback\-Vertex\-Fitter. \\
\hline
{\em Resolver} & Pointer to the \hyperlink{classvertex__lcfi_1_1ZVTOP_1_1VertexResolver}{Vertex\-Resolver} that the vertex uses to resolve itself from others. Defaults to the typedef Fallback\-Vertex\-Resolver. \\
\hline
{\em Max\-Finder} & Pointer to the \hyperlink{classvertex__lcfi_1_1ZVTOP_1_1VertexFuncMaxFinder}{Vertex\-Func\-Max\-Finder} that the vertex uses to find the nearest \hyperlink{classvertex__lcfi_1_1ZVTOP_1_1VertexFunction}{Vertex\-Function} maximum. Defaults to the typedef Fallback\-Vertex\-Func\-Max\-Finder. \\
\hline
\end{DoxyParams}
\hypertarget{classvertex__lcfi_1_1ZVTOP_1_1CandidateVertex_aea0c90215338d1cf5a5fe21833a8cbf0}{\index{vertex\-\_\-lcfi\-::\-Z\-V\-T\-O\-P\-::\-Candidate\-Vertex@{vertex\-\_\-lcfi\-::\-Z\-V\-T\-O\-P\-::\-Candidate\-Vertex}!$\sim$\-Candidate\-Vertex@{$\sim$\-Candidate\-Vertex}}
\index{$\sim$\-Candidate\-Vertex@{$\sim$\-Candidate\-Vertex}!vertex_lcfi::ZVTOP::CandidateVertex@{vertex\-\_\-lcfi\-::\-Z\-V\-T\-O\-P\-::\-Candidate\-Vertex}}
\paragraph[{$\sim$\-Candidate\-Vertex}]{\setlength{\rightskip}{0pt plus 5cm}vertex\-\_\-lcfi\-::\-Z\-V\-T\-O\-P\-::\-Candidate\-Vertex\-::$\sim$\-Candidate\-Vertex (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}}}\label{classvertex__lcfi_1_1ZVTOP_1_1CandidateVertex_aea0c90215338d1cf5a5fe21833a8cbf0}


Destructor. 

Does not delete any objects passed at construction. 

\subsubsection{Member Function Documentation}
\hypertarget{classvertex__lcfi_1_1ZVTOP_1_1CandidateVertex_af2998c3b1d13015de7d051a72463c77b}{\index{vertex\-\_\-lcfi\-::\-Z\-V\-T\-O\-P\-::\-Candidate\-Vertex@{vertex\-\_\-lcfi\-::\-Z\-V\-T\-O\-P\-::\-Candidate\-Vertex}!add\-Track\-State@{add\-Track\-State}}
\index{add\-Track\-State@{add\-Track\-State}!vertex_lcfi::ZVTOP::CandidateVertex@{vertex\-\_\-lcfi\-::\-Z\-V\-T\-O\-P\-::\-Candidate\-Vertex}}
\paragraph[{add\-Track\-State}]{\setlength{\rightskip}{0pt plus 5cm}void vertex\-\_\-lcfi\-::\-Z\-V\-T\-O\-P\-::\-Candidate\-Vertex\-::add\-Track\-State (
\begin{DoxyParamCaption}
\item[{{\bf Track\-State} $\ast$}]{Track\-To\-Add}
\end{DoxyParamCaption}
)}}\label{classvertex__lcfi_1_1ZVTOP_1_1CandidateVertex_af2998c3b1d13015de7d051a72463c77b}


Add a \hyperlink{classvertex__lcfi_1_1TrackState}{Track\-State} to this vertex. 

Adds the \hyperlink{classvertex__lcfi_1_1TrackState}{Track\-State} to this Vertices track list, and invalidates the fit via \hyperlink{classvertex__lcfi_1_1ZVTOP_1_1CandidateVertex_a477dcc63d8a7916da09ec824baf42660}{invalidate\-Fit()}. 
\begin{DoxyParams}{Parameters}
{\em Track\-To\-Add} & Pointer to the \hyperlink{classvertex__lcfi_1_1TrackState}{Track\-State} to add. \\
\hline
\end{DoxyParams}
\hypertarget{classvertex__lcfi_1_1ZVTOP_1_1CandidateVertex_af298e1c1a9b5ea0099fcfbc2a0e66eec}{\index{vertex\-\_\-lcfi\-::\-Z\-V\-T\-O\-P\-::\-Candidate\-Vertex@{vertex\-\_\-lcfi\-::\-Z\-V\-T\-O\-P\-::\-Candidate\-Vertex}!chi\-Squared\-Of\-All\-Tracks@{chi\-Squared\-Of\-All\-Tracks}}
\index{chi\-Squared\-Of\-All\-Tracks@{chi\-Squared\-Of\-All\-Tracks}!vertex_lcfi::ZVTOP::CandidateVertex@{vertex\-\_\-lcfi\-::\-Z\-V\-T\-O\-P\-::\-Candidate\-Vertex}}
\paragraph[{chi\-Squared\-Of\-All\-Tracks}]{\setlength{\rightskip}{0pt plus 5cm}const std\-::map$<${\bf Track\-State}$\ast$, double$>$\& vertex\-\_\-lcfi\-::\-Z\-V\-T\-O\-P\-::\-Candidate\-Vertex\-::chi\-Squared\-Of\-All\-Tracks (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const}}\label{classvertex__lcfi_1_1ZVTOP_1_1CandidateVertex_af298e1c1a9b5ea0099fcfbc2a0e66eec}


Return the chi squared contribution of all the trackstates in this vertex. 

Note this may cause the vertex to be fit if needed. \begin{DoxyReturn}{Returns}
A std\-::map of chi squared vlaues with \hyperlink{classvertex__lcfi_1_1TrackState}{Track\-State} pointers as the key 
\end{DoxyReturn}
\hypertarget{classvertex__lcfi_1_1ZVTOP_1_1CandidateVertex_af166efa1fda457a7b3d990a420abfad6}{\index{vertex\-\_\-lcfi\-::\-Z\-V\-T\-O\-P\-::\-Candidate\-Vertex@{vertex\-\_\-lcfi\-::\-Z\-V\-T\-O\-P\-::\-Candidate\-Vertex}!chi\-Squared\-Of\-Fit@{chi\-Squared\-Of\-Fit}}
\index{chi\-Squared\-Of\-Fit@{chi\-Squared\-Of\-Fit}!vertex_lcfi::ZVTOP::CandidateVertex@{vertex\-\_\-lcfi\-::\-Z\-V\-T\-O\-P\-::\-Candidate\-Vertex}}
\paragraph[{chi\-Squared\-Of\-Fit}]{\setlength{\rightskip}{0pt plus 5cm}double vertex\-\_\-lcfi\-::\-Z\-V\-T\-O\-P\-::\-Candidate\-Vertex\-::chi\-Squared\-Of\-Fit (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const}}\label{classvertex__lcfi_1_1ZVTOP_1_1CandidateVertex_af166efa1fda457a7b3d990a420abfad6}


Return the chi squared of the fit. 

Note this may cause the vertex to be fit if needed. \begin{DoxyReturn}{Returns}
The chi squared value. 
\end{DoxyReturn}
\hypertarget{classvertex__lcfi_1_1ZVTOP_1_1CandidateVertex_a275b46b361c8dd6addc36ed7f0e192c4}{\index{vertex\-\_\-lcfi\-::\-Z\-V\-T\-O\-P\-::\-Candidate\-Vertex@{vertex\-\_\-lcfi\-::\-Z\-V\-T\-O\-P\-::\-Candidate\-Vertex}!chi\-Squared\-Of\-I\-P@{chi\-Squared\-Of\-I\-P}}
\index{chi\-Squared\-Of\-I\-P@{chi\-Squared\-Of\-I\-P}!vertex_lcfi::ZVTOP::CandidateVertex@{vertex\-\_\-lcfi\-::\-Z\-V\-T\-O\-P\-::\-Candidate\-Vertex}}
\paragraph[{chi\-Squared\-Of\-I\-P}]{\setlength{\rightskip}{0pt plus 5cm}double vertex\-\_\-lcfi\-::\-Z\-V\-T\-O\-P\-::\-Candidate\-Vertex\-::chi\-Squared\-Of\-I\-P (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const}}\label{classvertex__lcfi_1_1ZVTOP_1_1CandidateVertex_a275b46b361c8dd6addc36ed7f0e192c4}


Return the chi squared contribution of the I\-P if this vertex has one. 

Note this may cause the vertex to be fit if needed. \begin{DoxyReturn}{Returns}
Chi squared of the ip if this vertex has one zero otherwise 
\end{DoxyReturn}
\hypertarget{classvertex__lcfi_1_1ZVTOP_1_1CandidateVertex_a20388ef63d7e3769004280c6b5f70bea}{\index{vertex\-\_\-lcfi\-::\-Z\-V\-T\-O\-P\-::\-Candidate\-Vertex@{vertex\-\_\-lcfi\-::\-Z\-V\-T\-O\-P\-::\-Candidate\-Vertex}!chi\-Squared\-Of\-Track@{chi\-Squared\-Of\-Track}}
\index{chi\-Squared\-Of\-Track@{chi\-Squared\-Of\-Track}!vertex_lcfi::ZVTOP::CandidateVertex@{vertex\-\_\-lcfi\-::\-Z\-V\-T\-O\-P\-::\-Candidate\-Vertex}}
\paragraph[{chi\-Squared\-Of\-Track}]{\setlength{\rightskip}{0pt plus 5cm}double vertex\-\_\-lcfi\-::\-Z\-V\-T\-O\-P\-::\-Candidate\-Vertex\-::chi\-Squared\-Of\-Track (
\begin{DoxyParamCaption}
\item[{{\bf Track\-State} $\ast$}]{Track}
\end{DoxyParamCaption}
) const}}\label{classvertex__lcfi_1_1ZVTOP_1_1CandidateVertex_a20388ef63d7e3769004280c6b5f70bea}


Return the chi squared contribution of a trackstate in this vertex. 

If the trackstate is found its chi squared is returned. Note this may cause the vertex to be fit if needed. \begin{DoxyReturn}{Returns}
The chi squared of the track if found, -\/1 otherwise. 
\end{DoxyReturn}
\hypertarget{classvertex__lcfi_1_1ZVTOP_1_1CandidateVertex_a95a0e5fbf27c1e2fe97e488325265c0e}{\index{vertex\-\_\-lcfi\-::\-Z\-V\-T\-O\-P\-::\-Candidate\-Vertex@{vertex\-\_\-lcfi\-::\-Z\-V\-T\-O\-P\-::\-Candidate\-Vertex}!claim\-Tracks\-From@{claim\-Tracks\-From}}
\index{claim\-Tracks\-From@{claim\-Tracks\-From}!vertex_lcfi::ZVTOP::CandidateVertex@{vertex\-\_\-lcfi\-::\-Z\-V\-T\-O\-P\-::\-Candidate\-Vertex}}
\paragraph[{claim\-Tracks\-From}]{\setlength{\rightskip}{0pt plus 5cm}void vertex\-\_\-lcfi\-::\-Z\-V\-T\-O\-P\-::\-Candidate\-Vertex\-::claim\-Tracks\-From (
\begin{DoxyParamCaption}
\item[{const std\-::list$<$ {\bf Candidate\-Vertex} $\ast$ $>$ \&}]{Losing\-Vertices}
\end{DoxyParamCaption}
)}}\label{classvertex__lcfi_1_1ZVTOP_1_1CandidateVertex_a95a0e5fbf27c1e2fe97e488325265c0e}


Claim tracks and I\-P from another vertex. 

Message all the vertices in the list Losing\-Vertices to remove trackstates that have the same parent as the trackstates in this vertex. The fits of the losing vertices are automatically invalidated as we call \hyperlink{classvertex__lcfi_1_1ZVTOP_1_1CandidateVertex_aca7c5316dd149931d638e2cd54e1f795}{remove\-Track()}. Also removes the I\-P from losing vertices if we have it 
\begin{DoxyParams}{Parameters}
{\em Losing\-Vertices} & A vector of pointers to the vertices that lose the tracks we have. \\
\hline
\end{DoxyParams}
\hypertarget{classvertex__lcfi_1_1ZVTOP_1_1CandidateVertex_a0bce2615cddc2a6cc140010f6f8e6d22}{\index{vertex\-\_\-lcfi\-::\-Z\-V\-T\-O\-P\-::\-Candidate\-Vertex@{vertex\-\_\-lcfi\-::\-Z\-V\-T\-O\-P\-::\-Candidate\-Vertex}!distance\-To@{distance\-To}}
\index{distance\-To@{distance\-To}!vertex_lcfi::ZVTOP::CandidateVertex@{vertex\-\_\-lcfi\-::\-Z\-V\-T\-O\-P\-::\-Candidate\-Vertex}}
\paragraph[{distance\-To}]{\setlength{\rightskip}{0pt plus 5cm}double vertex\-\_\-lcfi\-::\-Z\-V\-T\-O\-P\-::\-Candidate\-Vertex\-::distance\-To (
\begin{DoxyParamCaption}
\item[{const {\bf Vector3} \&}]{Point}
\end{DoxyParamCaption}
) const}}\label{classvertex__lcfi_1_1ZVTOP_1_1CandidateVertex_a0bce2615cddc2a6cc140010f6f8e6d22}


Return the distance from this \hyperlink{classvertex__lcfi_1_1Vertex}{Vertex} to a point. 

Note this may lead to this vertex being refit as \hyperlink{classvertex__lcfi_1_1ZVTOP_1_1CandidateVertex_aebd6a62a04c8bab83ec94cbd5c242a73}{position()} is called. 
\begin{DoxyParams}{Parameters}
{\em Point} & Vector3 of point. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
Distance to point. 
\end{DoxyReturn}
\hypertarget{classvertex__lcfi_1_1ZVTOP_1_1CandidateVertex_a8e29a8729c9cea7d1751cd5e081b8b17}{\index{vertex\-\_\-lcfi\-::\-Z\-V\-T\-O\-P\-::\-Candidate\-Vertex@{vertex\-\_\-lcfi\-::\-Z\-V\-T\-O\-P\-::\-Candidate\-Vertex}!distance\-To@{distance\-To}}
\index{distance\-To@{distance\-To}!vertex_lcfi::ZVTOP::CandidateVertex@{vertex\-\_\-lcfi\-::\-Z\-V\-T\-O\-P\-::\-Candidate\-Vertex}}
\paragraph[{distance\-To}]{\setlength{\rightskip}{0pt plus 5cm}double vertex\-\_\-lcfi\-::\-Z\-V\-T\-O\-P\-::\-Candidate\-Vertex\-::distance\-To (
\begin{DoxyParamCaption}
\item[{const {\bf Candidate\-Vertex} $\ast$const}]{Vertex}
\end{DoxyParamCaption}
) const}}\label{classvertex__lcfi_1_1ZVTOP_1_1CandidateVertex_a8e29a8729c9cea7d1751cd5e081b8b17}


Return the distance from this \hyperlink{classvertex__lcfi_1_1Vertex}{Vertex} to another \hyperlink{classvertex__lcfi_1_1Vertex}{Vertex}. 

Note this may lead to either vertex being refit as \hyperlink{classvertex__lcfi_1_1ZVTOP_1_1CandidateVertex_aebd6a62a04c8bab83ec94cbd5c242a73}{position()} is called. 
\begin{DoxyParams}{Parameters}
{\em \hyperlink{classvertex__lcfi_1_1Vertex}{Vertex}} & to measure distance to. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
Distance to \hyperlink{classvertex__lcfi_1_1Vertex}{Vertex}. 
\end{DoxyReturn}
\hypertarget{classvertex__lcfi_1_1ZVTOP_1_1CandidateVertex_aaa661fe07ee74a0adf27f5d2ade29d9d}{\index{vertex\-\_\-lcfi\-::\-Z\-V\-T\-O\-P\-::\-Candidate\-Vertex@{vertex\-\_\-lcfi\-::\-Z\-V\-T\-O\-P\-::\-Candidate\-Vertex}!find\-Vertex\-Func\-Max@{find\-Vertex\-Func\-Max}}
\index{find\-Vertex\-Func\-Max@{find\-Vertex\-Func\-Max}!vertex_lcfi::ZVTOP::CandidateVertex@{vertex\-\_\-lcfi\-::\-Z\-V\-T\-O\-P\-::\-Candidate\-Vertex}}
\paragraph[{find\-Vertex\-Func\-Max}]{\setlength{\rightskip}{0pt plus 5cm}bool vertex\-\_\-lcfi\-::\-Z\-V\-T\-O\-P\-::\-Candidate\-Vertex\-::find\-Vertex\-Func\-Max (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const}}\label{classvertex__lcfi_1_1ZVTOP_1_1CandidateVertex_aaa661fe07ee74a0adf27f5d2ade29d9d}


Find the local vertex function maximum. 

Find the nearest vertex function maximum using the vertexes \-\_\-\-Max\-Finder, using the fitted position of this vertex as the inital guess. Note this may lead to this vertex being refit as \hyperlink{classvertex__lcfi_1_1ZVTOP_1_1CandidateVertex_aebd6a62a04c8bab83ec94cbd5c242a73}{position()} is called. \hypertarget{classvertex__lcfi_1_1ZVTOP_1_1CandidateVertex_a433cf5b933e0645769ad5e42f0b03d53}{\index{vertex\-\_\-lcfi\-::\-Z\-V\-T\-O\-P\-::\-Candidate\-Vertex@{vertex\-\_\-lcfi\-::\-Z\-V\-T\-O\-P\-::\-Candidate\-Vertex}!has\-Track@{has\-Track}}
\index{has\-Track@{has\-Track}!vertex_lcfi::ZVTOP::CandidateVertex@{vertex\-\_\-lcfi\-::\-Z\-V\-T\-O\-P\-::\-Candidate\-Vertex}}
\paragraph[{has\-Track}]{\setlength{\rightskip}{0pt plus 5cm}bool vertex\-\_\-lcfi\-::\-Z\-V\-T\-O\-P\-::\-Candidate\-Vertex\-::has\-Track (
\begin{DoxyParamCaption}
\item[{{\bf Track} $\ast$}]{Track}
\end{DoxyParamCaption}
) const}}\label{classvertex__lcfi_1_1ZVTOP_1_1CandidateVertex_a433cf5b933e0645769ad5e42f0b03d53}


Return if this \hyperlink{classvertex__lcfi_1_1Vertex}{Vertex} contains the passed track. 


\begin{DoxyParams}{Parameters}
{\em \hyperlink{classvertex__lcfi_1_1Track}{Track}} & Pointer to the query track \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
true if this vertex has a trackstate with this \hyperlink{classvertex__lcfi_1_1Track}{Track} as parent 
\end{DoxyReturn}
\hypertarget{classvertex__lcfi_1_1ZVTOP_1_1CandidateVertex_a477dcc63d8a7916da09ec824baf42660}{\index{vertex\-\_\-lcfi\-::\-Z\-V\-T\-O\-P\-::\-Candidate\-Vertex@{vertex\-\_\-lcfi\-::\-Z\-V\-T\-O\-P\-::\-Candidate\-Vertex}!invalidate\-Fit@{invalidate\-Fit}}
\index{invalidate\-Fit@{invalidate\-Fit}!vertex_lcfi::ZVTOP::CandidateVertex@{vertex\-\_\-lcfi\-::\-Z\-V\-T\-O\-P\-::\-Candidate\-Vertex}}
\paragraph[{invalidate\-Fit}]{\setlength{\rightskip}{0pt plus 5cm}void vertex\-\_\-lcfi\-::\-Z\-V\-T\-O\-P\-::\-Candidate\-Vertex\-::invalidate\-Fit (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const}}\label{classvertex__lcfi_1_1ZVTOP_1_1CandidateVertex_a477dcc63d8a7916da09ec824baf42660}


Invalidate the fit so that the \hyperlink{classvertex__lcfi_1_1ZVTOP_1_1CandidateVertex_aaa26becf09f271b14363ecd8d14acf75}{refit()} is called when needed. 

Called by any function that modifies the vertex so that it is refit before being used again. \par
Note\-: Currently does not invalidate the \hyperlink{classvertex__lcfi_1_1Vertex}{Vertex} Function Maximum as this stays constant through a Vertices life for classic \hyperlink{namespacevertex__lcfi_1_1ZVTOP}{Z\-V\-T\-O\-P}  Invalidation of \hyperlink{classvertex__lcfi_1_1Vertex}{Vertex} Func Max should be a parameter \hypertarget{classvertex__lcfi_1_1ZVTOP_1_1CandidateVertex_a08302d75ea111e006df6194a83f3a434}{\index{vertex\-\_\-lcfi\-::\-Z\-V\-T\-O\-P\-::\-Candidate\-Vertex@{vertex\-\_\-lcfi\-::\-Z\-V\-T\-O\-P\-::\-Candidate\-Vertex}!is\-Resolved\-From@{is\-Resolved\-From}}
\index{is\-Resolved\-From@{is\-Resolved\-From}!vertex_lcfi::ZVTOP::CandidateVertex@{vertex\-\_\-lcfi\-::\-Z\-V\-T\-O\-P\-::\-Candidate\-Vertex}}
\paragraph[{is\-Resolved\-From}]{\setlength{\rightskip}{0pt plus 5cm}bool vertex\-\_\-lcfi\-::\-Z\-V\-T\-O\-P\-::\-Candidate\-Vertex\-::is\-Resolved\-From (
\begin{DoxyParamCaption}
\item[{{\bf Candidate\-Vertex} $\ast$const}]{Vertex, }
\item[{const double}]{Threshold, }
\item[{{\bf e\-Resolve\-Type}}]{Type}
\end{DoxyParamCaption}
) const}}\label{classvertex__lcfi_1_1ZVTOP_1_1CandidateVertex_a08302d75ea111e006df6194a83f3a434}


Resolve two vertices with this vertices resolver. 

Uses the \hyperlink{classvertex__lcfi_1_1ZVTOP_1_1VertexResolver}{Vertex\-Resolver} stored in \-\_\-\-Resolver to resolve this vertex and the one specified. 
\begin{DoxyParams}{Parameters}
{\em \hyperlink{classvertex__lcfi_1_1Vertex}{Vertex}} & \hyperlink{classvertex__lcfi_1_1Vertex}{Vertex} to resolve this one with. \\
\hline
{\em Threshold} & Threshold for resolution, see \hyperlink{classvertex__lcfi_1_1ZVTOP_1_1VertexResolverEqualSteps}{Vertex\-Resolver\-Equal\-Steps} for default resolver. \\
\hline
{\em Type} & Point to use for resolution, either Fitted\-Position or Nearest\-Maximum \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
1 if the vertices are resolved, 0 otherwise. 
\end{DoxyReturn}
\hypertarget{classvertex__lcfi_1_1ZVTOP_1_1CandidateVertex_a64b9afb89731b9996af9c3d7ed88e3cc}{\index{vertex\-\_\-lcfi\-::\-Z\-V\-T\-O\-P\-::\-Candidate\-Vertex@{vertex\-\_\-lcfi\-::\-Z\-V\-T\-O\-P\-::\-Candidate\-Vertex}!is\-Resolved\-From@{is\-Resolved\-From}}
\index{is\-Resolved\-From@{is\-Resolved\-From}!vertex_lcfi::ZVTOP::CandidateVertex@{vertex\-\_\-lcfi\-::\-Z\-V\-T\-O\-P\-::\-Candidate\-Vertex}}
\paragraph[{is\-Resolved\-From}]{\setlength{\rightskip}{0pt plus 5cm}bool vertex\-\_\-lcfi\-::\-Z\-V\-T\-O\-P\-::\-Candidate\-Vertex\-::is\-Resolved\-From (
\begin{DoxyParamCaption}
\item[{{\bf Candidate\-Vertex} $\ast$const}]{Vertex, }
\item[{const double}]{Threshold, }
\item[{{\bf e\-Resolve\-Type}}]{Type, }
\item[{{\bf Vertex\-Resolver} $\ast$}]{Resolver}
\end{DoxyParamCaption}
) const}}\label{classvertex__lcfi_1_1ZVTOP_1_1CandidateVertex_a64b9afb89731b9996af9c3d7ed88e3cc}


Resolve two vertices with a specified resolver. 

Uses the \hyperlink{classvertex__lcfi_1_1ZVTOP_1_1VertexResolver}{Vertex\-Resolver} specified to resolve this vertex and the one specified. 
\begin{DoxyParams}{Parameters}
{\em \hyperlink{classvertex__lcfi_1_1Vertex}{Vertex}} & \hyperlink{classvertex__lcfi_1_1Vertex}{Vertex} to resolve this one with. \\
\hline
{\em Threshold} & Threshold for resolution, implementation depends on resolver. \\
\hline
{\em Type} & Point to use for resolution, either Fitted\-Position or Nearest\-Maximum \\
\hline
{\em Resolver} & Pointer to \hyperlink{classvertex__lcfi_1_1ZVTOP_1_1VertexResolver}{Vertex\-Resolver} to use. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
1 if the vertices are resolved, 0 otherwise. 
\end{DoxyReturn}
\hypertarget{classvertex__lcfi_1_1ZVTOP_1_1CandidateVertex_af6e2bf146c2772543fd442c6c49c89c8}{\index{vertex\-\_\-lcfi\-::\-Z\-V\-T\-O\-P\-::\-Candidate\-Vertex@{vertex\-\_\-lcfi\-::\-Z\-V\-T\-O\-P\-::\-Candidate\-Vertex}!max\-Chi\-Squared\-Of\-Track\-I\-P@{max\-Chi\-Squared\-Of\-Track\-I\-P}}
\index{max\-Chi\-Squared\-Of\-Track\-I\-P@{max\-Chi\-Squared\-Of\-Track\-I\-P}!vertex_lcfi::ZVTOP::CandidateVertex@{vertex\-\_\-lcfi\-::\-Z\-V\-T\-O\-P\-::\-Candidate\-Vertex}}
\paragraph[{max\-Chi\-Squared\-Of\-Track\-I\-P}]{\setlength{\rightskip}{0pt plus 5cm}double vertex\-\_\-lcfi\-::\-Z\-V\-T\-O\-P\-::\-Candidate\-Vertex\-::max\-Chi\-Squared\-Of\-Track\-I\-P (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const}}\label{classvertex__lcfi_1_1ZVTOP_1_1CandidateVertex_af6e2bf146c2772543fd442c6c49c89c8}


Return the chi squared contribution of the \hyperlink{classvertex__lcfi_1_1Track}{Track} or I\-P with the highest chi square contribution. 

Note this may cause the vertex to be fit if needed. \begin{DoxyReturn}{Returns}
The chi squared contibution. 
\end{DoxyReturn}
\hypertarget{classvertex__lcfi_1_1ZVTOP_1_1CandidateVertex_a6bb56595c5ef7228aa4a00e7fd65c6ac}{\index{vertex\-\_\-lcfi\-::\-Z\-V\-T\-O\-P\-::\-Candidate\-Vertex@{vertex\-\_\-lcfi\-::\-Z\-V\-T\-O\-P\-::\-Candidate\-Vertex}!merge\-Candidate\-Vertex@{merge\-Candidate\-Vertex}}
\index{merge\-Candidate\-Vertex@{merge\-Candidate\-Vertex}!vertex_lcfi::ZVTOP::CandidateVertex@{vertex\-\_\-lcfi\-::\-Z\-V\-T\-O\-P\-::\-Candidate\-Vertex}}
\paragraph[{merge\-Candidate\-Vertex}]{\setlength{\rightskip}{0pt plus 5cm}void vertex\-\_\-lcfi\-::\-Z\-V\-T\-O\-P\-::\-Candidate\-Vertex\-::merge\-Candidate\-Vertex (
\begin{DoxyParamCaption}
\item[{const {\bf Candidate\-Vertex} $\ast$}]{Source\-Vertex}
\end{DoxyParamCaption}
)}}\label{classvertex__lcfi_1_1ZVTOP_1_1CandidateVertex_a6bb56595c5ef7228aa4a00e7fd65c6ac}


Merge another vertex into this one. 

Adds all the trackstates and the I\-P if held from Source\-Vertex to this vertices trackstate list, after removing any trackstates which have the same parent to avoid duplicates. The fit is automatically invalidated as this function calls \hyperlink{classvertex__lcfi_1_1ZVTOP_1_1CandidateVertex_af2998c3b1d13015de7d051a72463c77b}{add\-Track\-State()} If the vertex function maximum of the source vertex is bigger than this vertices, then it is also copied to this vertex. \par
Source\-Vertex remains unchanged. 
\begin{DoxyParams}{Parameters}
{\em Source\-Vertex} & The vertex to be merged into this one. \\
\hline
\end{DoxyParams}
\hypertarget{classvertex__lcfi_1_1ZVTOP_1_1CandidateVertex_aebd6a62a04c8bab83ec94cbd5c242a73}{\index{vertex\-\_\-lcfi\-::\-Z\-V\-T\-O\-P\-::\-Candidate\-Vertex@{vertex\-\_\-lcfi\-::\-Z\-V\-T\-O\-P\-::\-Candidate\-Vertex}!position@{position}}
\index{position@{position}!vertex_lcfi::ZVTOP::CandidateVertex@{vertex\-\_\-lcfi\-::\-Z\-V\-T\-O\-P\-::\-Candidate\-Vertex}}
\paragraph[{position}]{\setlength{\rightskip}{0pt plus 5cm}const {\bf Vector3}\& vertex\-\_\-lcfi\-::\-Z\-V\-T\-O\-P\-::\-Candidate\-Vertex\-::position (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const}}\label{classvertex__lcfi_1_1ZVTOP_1_1CandidateVertex_aebd6a62a04c8bab83ec94cbd5c242a73}


Return the fitted position of this \hyperlink{classvertex__lcfi_1_1Vertex}{Vertex}. 

If the fit of this vertex is invalid it is refit and then the position returned. \begin{DoxyReturn}{Returns}
A Vector3 of the fitted position. 
\end{DoxyReturn}
\hypertarget{classvertex__lcfi_1_1ZVTOP_1_1CandidateVertex_acdc909399b6d577b3cd9ece4804f3fb7}{\index{vertex\-\_\-lcfi\-::\-Z\-V\-T\-O\-P\-::\-Candidate\-Vertex@{vertex\-\_\-lcfi\-::\-Z\-V\-T\-O\-P\-::\-Candidate\-Vertex}!position\-Error@{position\-Error}}
\index{position\-Error@{position\-Error}!vertex_lcfi::ZVTOP::CandidateVertex@{vertex\-\_\-lcfi\-::\-Z\-V\-T\-O\-P\-::\-Candidate\-Vertex}}
\paragraph[{position\-Error}]{\setlength{\rightskip}{0pt plus 5cm}const Matrix3x3\& vertex\-\_\-lcfi\-::\-Z\-V\-T\-O\-P\-::\-Candidate\-Vertex\-::position\-Error (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const}}\label{classvertex__lcfi_1_1ZVTOP_1_1CandidateVertex_acdc909399b6d577b3cd9ece4804f3fb7}


Return the fitted position error matrix of this \hyperlink{classvertex__lcfi_1_1Vertex}{Vertex}. 

If the fit of this vertex is invalid it is refit using \hyperlink{classvertex__lcfi_1_1ZVTOP_1_1CandidateVertex_aaa26becf09f271b14363ecd8d14acf75}{refit()} and then the position error returned. \begin{DoxyReturn}{Returns}
A Matrix3x3 of the fitted position error. 
\end{DoxyReturn}
\hypertarget{classvertex__lcfi_1_1ZVTOP_1_1CandidateVertex_aaa26becf09f271b14363ecd8d14acf75}{\index{vertex\-\_\-lcfi\-::\-Z\-V\-T\-O\-P\-::\-Candidate\-Vertex@{vertex\-\_\-lcfi\-::\-Z\-V\-T\-O\-P\-::\-Candidate\-Vertex}!refit@{refit}}
\index{refit@{refit}!vertex_lcfi::ZVTOP::CandidateVertex@{vertex\-\_\-lcfi\-::\-Z\-V\-T\-O\-P\-::\-Candidate\-Vertex}}
\paragraph[{refit}]{\setlength{\rightskip}{0pt plus 5cm}void vertex\-\_\-lcfi\-::\-Z\-V\-T\-O\-P\-::\-Candidate\-Vertex\-::refit (
\begin{DoxyParamCaption}
\item[{bool}]{Calculate\-Error = {\ttfamily 0}}
\end{DoxyParamCaption}
) const}}\label{classvertex__lcfi_1_1ZVTOP_1_1CandidateVertex_aaa26becf09f271b14363ecd8d14acf75}


Refit the vertex. 

Used by methods that need fit information such as \hyperlink{classvertex__lcfi_1_1ZVTOP_1_1CandidateVertex_aebd6a62a04c8bab83ec94cbd5c242a73}{position()} if the fit is flagged as invalid. 
\begin{DoxyParams}{Parameters}
{\em Calculate\-Error} & If true the vertex error is calculated -\/ a time saving device \\
\hline
\end{DoxyParams}
\hypertarget{classvertex__lcfi_1_1ZVTOP_1_1CandidateVertex_a65d0aaafa95590ceb6052657a44f9edf}{\index{vertex\-\_\-lcfi\-::\-Z\-V\-T\-O\-P\-::\-Candidate\-Vertex@{vertex\-\_\-lcfi\-::\-Z\-V\-T\-O\-P\-::\-Candidate\-Vertex}!refit@{refit}}
\index{refit@{refit}!vertex_lcfi::ZVTOP::CandidateVertex@{vertex\-\_\-lcfi\-::\-Z\-V\-T\-O\-P\-::\-Candidate\-Vertex}}
\paragraph[{refit}]{\setlength{\rightskip}{0pt plus 5cm}void vertex\-\_\-lcfi\-::\-Z\-V\-T\-O\-P\-::\-Candidate\-Vertex\-::refit (
\begin{DoxyParamCaption}
\item[{{\bf Vertex\-Fitter} $\ast$}]{Fitter, }
\item[{bool}]{Calculate\-Error = {\ttfamily 0}}
\end{DoxyParamCaption}
) const}}\label{classvertex__lcfi_1_1ZVTOP_1_1CandidateVertex_a65d0aaafa95590ceb6052657a44f9edf}


Refit the vertex using the fitter specified. 

Fits the vertex with the one specified and flags the fit as valid. 
\begin{DoxyParams}{Parameters}
{\em Fitter} & Fitter to use. \\
\hline
{\em Calculate\-Error} & If true the vertex error is calculated -\/ a time saving device \\
\hline
\end{DoxyParams}
\hypertarget{classvertex__lcfi_1_1ZVTOP_1_1CandidateVertex_ad4af8e62b42e57813c375be2ef8f40bb}{\index{vertex\-\_\-lcfi\-::\-Z\-V\-T\-O\-P\-::\-Candidate\-Vertex@{vertex\-\_\-lcfi\-::\-Z\-V\-T\-O\-P\-::\-Candidate\-Vertex}!remove\-I\-P@{remove\-I\-P}}
\index{remove\-I\-P@{remove\-I\-P}!vertex_lcfi::ZVTOP::CandidateVertex@{vertex\-\_\-lcfi\-::\-Z\-V\-T\-O\-P\-::\-Candidate\-Vertex}}
\paragraph[{remove\-I\-P}]{\setlength{\rightskip}{0pt plus 5cm}bool vertex\-\_\-lcfi\-::\-Z\-V\-T\-O\-P\-::\-Candidate\-Vertex\-::remove\-I\-P (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{classvertex__lcfi_1_1ZVTOP_1_1CandidateVertex_ad4af8e62b42e57813c375be2ef8f40bb}


Remove this vertices \hyperlink{classvertex__lcfi_1_1ZVTOP_1_1InteractionPoint}{Interaction\-Point}. 

If this vertex had a pointer to an I\-P it is removed, and the fit invalidated via \hyperlink{classvertex__lcfi_1_1ZVTOP_1_1CandidateVertex_a477dcc63d8a7916da09ec824baf42660}{invalidate\-Fit()}. \begin{DoxyReturn}{Returns}
1 if this vertex had an I\-P; 0 otherwise. 
\end{DoxyReturn}
\hypertarget{classvertex__lcfi_1_1ZVTOP_1_1CandidateVertex_aca7c5316dd149931d638e2cd54e1f795}{\index{vertex\-\_\-lcfi\-::\-Z\-V\-T\-O\-P\-::\-Candidate\-Vertex@{vertex\-\_\-lcfi\-::\-Z\-V\-T\-O\-P\-::\-Candidate\-Vertex}!remove\-Track@{remove\-Track}}
\index{remove\-Track@{remove\-Track}!vertex_lcfi::ZVTOP::CandidateVertex@{vertex\-\_\-lcfi\-::\-Z\-V\-T\-O\-P\-::\-Candidate\-Vertex}}
\paragraph[{remove\-Track}]{\setlength{\rightskip}{0pt plus 5cm}bool vertex\-\_\-lcfi\-::\-Z\-V\-T\-O\-P\-::\-Candidate\-Vertex\-::remove\-Track (
\begin{DoxyParamCaption}
\item[{{\bf Track} $\ast$const}]{Track\-To\-Remove}
\end{DoxyParamCaption}
)}}\label{classvertex__lcfi_1_1ZVTOP_1_1CandidateVertex_aca7c5316dd149931d638e2cd54e1f795}


Remove the first \hyperlink{classvertex__lcfi_1_1TrackState}{Track\-State} from this vertices track list which has parent track Track\-To\-Remove. 

This vertices \hyperlink{classvertex__lcfi_1_1TrackState}{Track\-State} list is searched for the first \hyperlink{classvertex__lcfi_1_1TrackState}{Track\-State} that has Track\-To\-Remove as its Parent\-Track. If found it is removed and the fit invalidated via \hyperlink{classvertex__lcfi_1_1ZVTOP_1_1CandidateVertex_a477dcc63d8a7916da09ec824baf42660}{invalidate\-Fit()}. 
\begin{DoxyParams}{Parameters}
{\em Track\-To\-Remove} & Pointer to the \hyperlink{classvertex__lcfi_1_1TrackState}{Track\-State} to remove. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
1 if a track was removed; 0 otherwise. 
\end{DoxyReturn}
\hypertarget{classvertex__lcfi_1_1ZVTOP_1_1CandidateVertex_a3750a737220fa111910b949dd22757ff}{\index{vertex\-\_\-lcfi\-::\-Z\-V\-T\-O\-P\-::\-Candidate\-Vertex@{vertex\-\_\-lcfi\-::\-Z\-V\-T\-O\-P\-::\-Candidate\-Vertex}!remove\-Track\-State@{remove\-Track\-State}}
\index{remove\-Track\-State@{remove\-Track\-State}!vertex_lcfi::ZVTOP::CandidateVertex@{vertex\-\_\-lcfi\-::\-Z\-V\-T\-O\-P\-::\-Candidate\-Vertex}}
\paragraph[{remove\-Track\-State}]{\setlength{\rightskip}{0pt plus 5cm}bool vertex\-\_\-lcfi\-::\-Z\-V\-T\-O\-P\-::\-Candidate\-Vertex\-::remove\-Track\-State (
\begin{DoxyParamCaption}
\item[{{\bf Track\-State} $\ast$const}]{Track\-To\-Remove}
\end{DoxyParamCaption}
)}}\label{classvertex__lcfi_1_1ZVTOP_1_1CandidateVertex_a3750a737220fa111910b949dd22757ff}


Remove the first reference to a \hyperlink{classvertex__lcfi_1_1TrackState}{Track\-State} from this vertices track list. 

This vertices \hyperlink{classvertex__lcfi_1_1TrackState}{Track\-State} list is searched for the first reference to Track\-To\-Remove. If found it is removed and the fit invalidated via \hyperlink{classvertex__lcfi_1_1ZVTOP_1_1CandidateVertex_a477dcc63d8a7916da09ec824baf42660}{invalidate\-Fit()}. 
\begin{DoxyParams}{Parameters}
{\em Track\-To\-Remove} & Pointer to the \hyperlink{classvertex__lcfi_1_1TrackState}{Track\-State} to remove. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
1 if a \hyperlink{classvertex__lcfi_1_1TrackState}{Track\-State} was removed; 0 otherwise. 
\end{DoxyReturn}
\hypertarget{classvertex__lcfi_1_1ZVTOP_1_1CandidateVertex_a42324251fbd9c10ea5dde90ea360c0ca}{\index{vertex\-\_\-lcfi\-::\-Z\-V\-T\-O\-P\-::\-Candidate\-Vertex@{vertex\-\_\-lcfi\-::\-Z\-V\-T\-O\-P\-::\-Candidate\-Vertex}!set\-I\-P@{set\-I\-P}}
\index{set\-I\-P@{set\-I\-P}!vertex_lcfi::ZVTOP::CandidateVertex@{vertex\-\_\-lcfi\-::\-Z\-V\-T\-O\-P\-::\-Candidate\-Vertex}}
\paragraph[{set\-I\-P}]{\setlength{\rightskip}{0pt plus 5cm}void vertex\-\_\-lcfi\-::\-Z\-V\-T\-O\-P\-::\-Candidate\-Vertex\-::set\-I\-P (
\begin{DoxyParamCaption}
\item[{{\bf Interaction\-Point} $\ast$}]{I\-P}
\end{DoxyParamCaption}
)}}\label{classvertex__lcfi_1_1ZVTOP_1_1CandidateVertex_a42324251fbd9c10ea5dde90ea360c0ca}


Add an \hyperlink{classvertex__lcfi_1_1ZVTOP_1_1InteractionPoint}{Interaction\-Point}. 

Sets the I\-P of this vertex, replacing the current one, if any. The fit is then invalidated via \hyperlink{classvertex__lcfi_1_1ZVTOP_1_1CandidateVertex_a477dcc63d8a7916da09ec824baf42660}{invalidate\-Fit()}. 
\begin{DoxyParams}{Parameters}
{\em I\-P} & Pointer to the \hyperlink{classvertex__lcfi_1_1ZVTOP_1_1InteractionPoint}{Interaction\-Point} to set. \\
\hline
\end{DoxyParams}
\hypertarget{classvertex__lcfi_1_1ZVTOP_1_1CandidateVertex_aca0a36c1c0346881060dc879f8ec1f81}{\index{vertex\-\_\-lcfi\-::\-Z\-V\-T\-O\-P\-::\-Candidate\-Vertex@{vertex\-\_\-lcfi\-::\-Z\-V\-T\-O\-P\-::\-Candidate\-Vertex}!track\-State\-List@{track\-State\-List}}
\index{track\-State\-List@{track\-State\-List}!vertex_lcfi::ZVTOP::CandidateVertex@{vertex\-\_\-lcfi\-::\-Z\-V\-T\-O\-P\-::\-Candidate\-Vertex}}
\paragraph[{track\-State\-List}]{\setlength{\rightskip}{0pt plus 5cm}const std\-::vector$<${\bf Track\-State}$\ast$$>$\& vertex\-\_\-lcfi\-::\-Z\-V\-T\-O\-P\-::\-Candidate\-Vertex\-::track\-State\-List (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily [inline]}}}\label{classvertex__lcfi_1_1ZVTOP_1_1CandidateVertex_aca0a36c1c0346881060dc879f8ec1f81}


Return the Track\-States in this \hyperlink{classvertex__lcfi_1_1Vertex}{Vertex}. 

\begin{DoxyReturn}{Returns}
A Vector of pointers to the Track\-States in the vertex 
\end{DoxyReturn}
\hypertarget{classvertex__lcfi_1_1ZVTOP_1_1CandidateVertex_a472a2af6ce3bad056b0e233b5bbc0acd}{\index{vertex\-\_\-lcfi\-::\-Z\-V\-T\-O\-P\-::\-Candidate\-Vertex@{vertex\-\_\-lcfi\-::\-Z\-V\-T\-O\-P\-::\-Candidate\-Vertex}!trim\-By\-Chi2@{trim\-By\-Chi2}}
\index{trim\-By\-Chi2@{trim\-By\-Chi2}!vertex_lcfi::ZVTOP::CandidateVertex@{vertex\-\_\-lcfi\-::\-Z\-V\-T\-O\-P\-::\-Candidate\-Vertex}}
\paragraph[{trim\-By\-Chi2}]{\setlength{\rightskip}{0pt plus 5cm}int vertex\-\_\-lcfi\-::\-Z\-V\-T\-O\-P\-::\-Candidate\-Vertex\-::trim\-By\-Chi2 (
\begin{DoxyParamCaption}
\item[{const double}]{Chi2\-Threshold}
\end{DoxyParamCaption}
)}}\label{classvertex__lcfi_1_1ZVTOP_1_1CandidateVertex_a472a2af6ce3bad056b0e233b5bbc0acd}


Trim trackstates with chi squared contributions bigger than the threshold. 

Using the fitter of this vertex (specified at constuction or default) the trackstate with the highest chi squared is removed if it is above threshold. If one was removed then refit and check again, repeating until threshold is reached or we only have one track left.. Does not effect the I\-P held by this vertex if any. 
\begin{DoxyParams}{Parameters}
{\em Chi2\-Threshold} & Threshold for removal. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
Number of trackstates removed. 
\end{DoxyReturn}
\hypertarget{classvertex__lcfi_1_1ZVTOP_1_1CandidateVertex_a0dd4501c334db979dac5beb6290ef0a0}{\index{vertex\-\_\-lcfi\-::\-Z\-V\-T\-O\-P\-::\-Candidate\-Vertex@{vertex\-\_\-lcfi\-::\-Z\-V\-T\-O\-P\-::\-Candidate\-Vertex}!trim\-By\-Chi2@{trim\-By\-Chi2}}
\index{trim\-By\-Chi2@{trim\-By\-Chi2}!vertex_lcfi::ZVTOP::CandidateVertex@{vertex\-\_\-lcfi\-::\-Z\-V\-T\-O\-P\-::\-Candidate\-Vertex}}
\paragraph[{trim\-By\-Chi2}]{\setlength{\rightskip}{0pt plus 5cm}int vertex\-\_\-lcfi\-::\-Z\-V\-T\-O\-P\-::\-Candidate\-Vertex\-::trim\-By\-Chi2 (
\begin{DoxyParamCaption}
\item[{const double}]{Chi2\-Threshold, }
\item[{{\bf Vertex\-Fitter} $\ast$}]{Fitter}
\end{DoxyParamCaption}
)}}\label{classvertex__lcfi_1_1ZVTOP_1_1CandidateVertex_a0dd4501c334db979dac5beb6290ef0a0}


Trim trackstates with chi squared contributions bigger than the threshold. 

Using the fitter specified, the trackstate with the highest chi squared is removed if it is above threshold. If one was removed then refit and check again, repeating until one is not removed. Does not effect the I\-P held by this vertex if any. 
\begin{DoxyParams}{Parameters}
{\em Chi2\-Threshold} & Threshold for removal. \\
\hline
{\em Fitter} & \hyperlink{classvertex__lcfi_1_1ZVTOP_1_1VertexFitter}{Vertex\-Fitter} to use \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
Number of trackstates removed. 
\end{DoxyReturn}
\hypertarget{classvertex__lcfi_1_1ZVTOP_1_1CandidateVertex_af50243ef090622dbf56dbfef99f50b49}{\index{vertex\-\_\-lcfi\-::\-Z\-V\-T\-O\-P\-::\-Candidate\-Vertex@{vertex\-\_\-lcfi\-::\-Z\-V\-T\-O\-P\-::\-Candidate\-Vertex}!trim\-By\-Prob@{trim\-By\-Prob}}
\index{trim\-By\-Prob@{trim\-By\-Prob}!vertex_lcfi::ZVTOP::CandidateVertex@{vertex\-\_\-lcfi\-::\-Z\-V\-T\-O\-P\-::\-Candidate\-Vertex}}
\paragraph[{trim\-By\-Prob}]{\setlength{\rightskip}{0pt plus 5cm}int vertex\-\_\-lcfi\-::\-Z\-V\-T\-O\-P\-::\-Candidate\-Vertex\-::trim\-By\-Prob (
\begin{DoxyParamCaption}
\item[{const double}]{Prob\-Threshold}
\end{DoxyParamCaption}
)}}\label{classvertex__lcfi_1_1ZVTOP_1_1CandidateVertex_af50243ef090622dbf56dbfef99f50b49}


Trim trackstates in order of decreasing chi squared until the vertex has a probabilty below that of the threshold. 

Using the fitter of this vertex (specified at constuction or default) the trackstate with the highest chi squared is removed if it is below threshold. If one was removed then refit and check again, repeating until we have reached thresold. 
\begin{DoxyParams}{Parameters}
{\em Prob\-Threshold} & Threshold for removal. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
Number of trackstates removed. 
\end{DoxyReturn}
\hypertarget{classvertex__lcfi_1_1ZVTOP_1_1CandidateVertex_a27857e5d9d029203777cdd7119115cd7}{\index{vertex\-\_\-lcfi\-::\-Z\-V\-T\-O\-P\-::\-Candidate\-Vertex@{vertex\-\_\-lcfi\-::\-Z\-V\-T\-O\-P\-::\-Candidate\-Vertex}!vertex\-Func\-Max\-Position@{vertex\-Func\-Max\-Position}}
\index{vertex\-Func\-Max\-Position@{vertex\-Func\-Max\-Position}!vertex_lcfi::ZVTOP::CandidateVertex@{vertex\-\_\-lcfi\-::\-Z\-V\-T\-O\-P\-::\-Candidate\-Vertex}}
\paragraph[{vertex\-Func\-Max\-Position}]{\setlength{\rightskip}{0pt plus 5cm}const {\bf Vector3}\& vertex\-\_\-lcfi\-::\-Z\-V\-T\-O\-P\-::\-Candidate\-Vertex\-::vertex\-Func\-Max\-Position (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const}}\label{classvertex__lcfi_1_1ZVTOP_1_1CandidateVertex_a27857e5d9d029203777cdd7119115cd7}


Return the position of this vertexes local maximum. 

If the position of this vertex is invalid it is refound using \hyperlink{classvertex__lcfi_1_1ZVTOP_1_1CandidateVertex_aaa661fe07ee74a0adf27f5d2ade29d9d}{find\-Vertex\-Func\-Max()} and then returned. \begin{DoxyReturn}{Returns}
The maximum's position. 
\end{DoxyReturn}
\hypertarget{classvertex__lcfi_1_1ZVTOP_1_1CandidateVertex_ad31c5b8b584849a9beada2828fc18323}{\index{vertex\-\_\-lcfi\-::\-Z\-V\-T\-O\-P\-::\-Candidate\-Vertex@{vertex\-\_\-lcfi\-::\-Z\-V\-T\-O\-P\-::\-Candidate\-Vertex}!vertex\-Func\-Max\-Value@{vertex\-Func\-Max\-Value}}
\index{vertex\-Func\-Max\-Value@{vertex\-Func\-Max\-Value}!vertex_lcfi::ZVTOP::CandidateVertex@{vertex\-\_\-lcfi\-::\-Z\-V\-T\-O\-P\-::\-Candidate\-Vertex}}
\paragraph[{vertex\-Func\-Max\-Value}]{\setlength{\rightskip}{0pt plus 5cm}double vertex\-\_\-lcfi\-::\-Z\-V\-T\-O\-P\-::\-Candidate\-Vertex\-::vertex\-Func\-Max\-Value (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const}}\label{classvertex__lcfi_1_1ZVTOP_1_1CandidateVertex_ad31c5b8b584849a9beada2828fc18323}


Return the value of the vertex function at this vertexes local maximum. 

If the maximum of this vertex is invalid it is refound using \hyperlink{classvertex__lcfi_1_1ZVTOP_1_1CandidateVertex_aaa661fe07ee74a0adf27f5d2ade29d9d}{find\-Vertex\-Func\-Max()} and then the value returned. \begin{DoxyReturn}{Returns}
The maximum's value. 
\end{DoxyReturn}
\hypertarget{classvertex__lcfi_1_1ZVTOP_1_1CandidateVertex_a7b6c36a0cc46f3f1efe568fcf45a9c9d}{\index{vertex\-\_\-lcfi\-::\-Z\-V\-T\-O\-P\-::\-Candidate\-Vertex@{vertex\-\_\-lcfi\-::\-Z\-V\-T\-O\-P\-::\-Candidate\-Vertex}!vertex\-Func\-Value@{vertex\-Func\-Value}}
\index{vertex\-Func\-Value@{vertex\-Func\-Value}!vertex_lcfi::ZVTOP::CandidateVertex@{vertex\-\_\-lcfi\-::\-Z\-V\-T\-O\-P\-::\-Candidate\-Vertex}}
\paragraph[{vertex\-Func\-Value}]{\setlength{\rightskip}{0pt plus 5cm}double vertex\-\_\-lcfi\-::\-Z\-V\-T\-O\-P\-::\-Candidate\-Vertex\-::vertex\-Func\-Value (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const}}\label{classvertex__lcfi_1_1ZVTOP_1_1CandidateVertex_a7b6c36a0cc46f3f1efe568fcf45a9c9d}


Return the value of the vertex function at the vertices position. 

Note that this return the value at the fitted position, not the nearest maximum \begin{DoxyReturn}{Returns}
The vertex function valuer 
\end{DoxyReturn}


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