Definition of vertex object for LArSoft. More...
#include <Vertex.h>
Public Types | |
enum | Status { Invalid, Valid, ValidWithCovariance } |
using | Point_t = tracking::Point_t |
using | SMatrixSym33 = tracking::SMatrixSym33 |
using | SMatrixSym22 = tracking::SMatrixSym22 |
using | SVector3 = tracking::SVector3 |
using | SVector2 = tracking::SVector2 |
Public Member Functions | |
Vertex () | |
Default constructor, initializes status to Invalid, and data members to default or kBogus values. More... | |
Vertex (double *xyz, int id=util::kBogusI) | |
Legacy constructor, preserved to avoid breaking code. Please try to use the new constructor. More... | |
Vertex (const Point_t &pos, const SMatrixSym33 &cov, double chi2, int ndof, int id=util::kBogusI) | |
Constructor initializing all data members. More... | |
const Point_t & | position () const |
Return vertex 3D position. More... | |
const SMatrixSym33 & | covariance () const |
Return vertex 3D covariance (be careful, the matrix may have rank=2). More... | |
double | chi2 () const |
int | ndof () const |
double | chi2PerNdof () const |
Status | status () const |
bool | isValid () const |
bool | isValidCovariance () const |
void | XYZ (double *xyz) const |
Legacy method to access vertex position, preserved to avoid breaking code. Please try to use Vertex::position(). More... | |
int | ID () const |
Return vertex id. More... | |
void | setID (int newID) |
Set vertex id. More... | |
Private Attributes | |
Point_t | pos_ |
Vertex 3D position. More... | |
SMatrixSym33 | cov_ |
Vertex covariance matrix 3x3. More... | |
double | chi2_ |
Vertex fit chi2. More... | |
int | ndof_ |
Vertex fit degrees of freedom. More... | |
Status | status_ |
Vertex status, as define in Vertex::Status enum. More... | |
int | id_ |
id number for vertex More... | |
Friends | |
bool | operator< (const Vertex &a, const Vertex &b) |
std::ostream & | operator<< (std::ostream &o, const Vertex &a) |
Definition of vertex object for LArSoft.
Vertex object, containing 3D position, position covariance (also in 3D, but the matrix rank may be = 2), vertex fit chi2 and number of degrees of freedom, plus a vertex status and a vertex id. The vertex object may be associated (via art Assn) to the recob::Track objects used in the vertex fit, possibly with a meta data, see recob::VertexAssnMeta.
Status of the vertex. Here the convention is that when adding new enum values all invalid go before 'Invalid', all valid go after 'Valid', and all valid with covariance go after 'ValidWithCovariance'
Enumerator | |
---|---|
Invalid | |
Valid | |
ValidWithCovariance |
recob::Vertex::Vertex | ( | void | ) |
Default constructor, initializes status to Invalid, and data members to default or kBogus values.
Definition at line 16 of file Vertex.cxx.
|
explicit |
Legacy constructor, preserved to avoid breaking code. Please try to use the new constructor.
Definition at line 25 of file Vertex.cxx.
|
inline |
Constructor initializing all data members.
Definition at line 56 of file Vertex.h.
|
inline |
Definition at line 68 of file Vertex.h.
|
inline |
|
inline |
Definition at line 72 of file Vertex.h.
|
inline |
Definition at line 73 of file Vertex.h.
|
inline |
|
inline |
|
inline |
Definition at line 71 of file Vertex.h.
void recob::Vertex::XYZ | ( | double * | xyz | ) | const |
Legacy method to access vertex position, preserved to avoid breaking code. Please try to use Vertex::position().
Definition at line 36 of file Vertex.cxx.
Definition at line 61 of file Vertex.cxx.
|
friend |
Definition at line 48 of file Vertex.cxx.
|
private |
|
private |
|
private |
Vertex status, as define in Vertex::Status enum.