LArSoft
v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
|
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 | ( | ) |
Default constructor, initializes status to Invalid, and data members to default or kBogus values.
Definition at line 17 of file Vertex.cxx.
References chi2_, id_, Invalid, util::kBogusD, util::kBogusI, ndof_, and status_.
|
explicit |
Legacy constructor, preserved to avoid breaking code. Please try to use the new constructor.
Definition at line 26 of file Vertex.cxx.
References chi2_, util::kBogusD, util::kBogusI, ndof_, pos_, status_, and Valid.
|
inline |
Constructor initializing all data members.
Definition at line 56 of file Vertex.h.
|
inline |
Definition at line 64 of file Vertex.h.
References chi2_.
Referenced by trkf::VertexWrapper::addTrackAndUpdateVertex(), and RecoProxyUsageExample::analyze().
|
inline |
Definition at line 68 of file Vertex.h.
References chi2_, util::kBogusD, and ndof_.
|
inline |
Return vertex 3D covariance (be careful, the matrix may have rank=2).
Definition at line 62 of file Vertex.h.
References cov_.
Referenced by trkf::VertexWrapper::covariance().
|
inline |
Return vertex id.
Definition at line 99 of file Vertex.h.
References id_.
Referenced by evd::RecoBaseDrawer::DrawTrackVertexAssns2D(), isValidCovariance(), shower::TCShowerAlg::makeShowers(), and lar_pandora::LArPandoraEventDump::PrintVertex().
|
inline |
Definition at line 72 of file Vertex.h.
References status_, and Valid.
Referenced by trkf::VertexWrapper::isValid().
|
inline |
Definition at line 73 of file Vertex.h.
References ID(), status_, ValidWithCovariance, and XYZ().
|
inline |
Definition at line 66 of file Vertex.h.
References ndof_.
Referenced by trkf::VertexWrapper::addTrackAndUpdateVertex().
|
inline |
Return vertex 3D position.
Definition at line 60 of file Vertex.h.
References pos_.
Referenced by RecoProxyUsageExample::analyze(), comparePFP(), shower::TCShowerAlg::makeShowers(), trkf::VertexWrapper::position(), and lar_pandora::LArPandoraEventDump::PrintVertex().
|
inline |
Set vertex id.
Definition at line 82 of file Vertex.h.
References id_, operator<, and operator<<.
Referenced by trkf::VertexWrapper::setVertexId().
|
inline |
Definition at line 71 of file Vertex.h.
References status_.
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 37 of file Vertex.cxx.
References pos_.
Referenced by lar_pandora::PFParticleAnalysis::analyze(), lar_pandora::PFParticleMonitoring::analyze(), cluster::ClusterAna::analyze(), pfpf::PFPAna::analyze(), evd::RecoBaseDrawer::DrawTrackVertexAssns2D(), shower::EMShowerAlg::FindInitialTrackHits(), isValidCovariance(), shower::EMShowerAlg::MakeShower(), recob::operator<(), shower::EMShowerAlg::OrderShowerHits(), event::EventMaker::produce(), and shower::EMShower::produce().
Definition at line 62 of file Vertex.cxx.
Referenced by setID().
|
friend |
Definition at line 49 of file Vertex.cxx.
Referenced by setID().
|
private |
|
private |
|
private |
|
private |
|
private |
Vertex 3D position.
Definition at line 89 of file Vertex.h.
Referenced by recob::operator<<(), position(), Vertex(), and XYZ().
|
private |
Vertex status, as define in Vertex::Status enum.
Definition at line 93 of file Vertex.h.
Referenced by isValid(), isValidCovariance(), status(), and Vertex().