LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
|
Edge is an object containing the results of a Principal Components Analysis of a group of space points. More...
#include "Edge.h"
Public Types | |
using | ID_t = unsigned int |
Type to represent recob::Edge IDs. More... | |
using | SpacePointID_t = recob::SpacePoint::ID_t |
Type to represent recob::SpacePoint IDs. More... | |
Public Member Functions | |
Edge ()=default | |
Default constructor (all invalid IDs). More... | |
Edge (const double length, SpacePointID_t firstPointID, SpacePointID_t secondPointID, ID_t id=InvalidID) | |
Constructor: assigns all values. More... | |
Edge (SpacePoint const &firstPoint, SpacePoint const &secondPoint, ID_t id=InvalidID) | |
Constructor: uses the specified spacepoints. More... | |
Access | |
double | Length () const |
Returns the length of this edge [cm]. More... | |
SpacePointID_t | FirstPointID () const |
Returns the ID of the SpacePoint this edge emanates from. More... | |
SpacePointID_t | SecondPointID () const |
Returns the ID of the SpacePoint this edge ends on. More... | |
ID_t | ID () const |
Returns the ID of this edge. More... | |
Static Public Attributes | |
static constexpr ID_t | InvalidID = std::numeric_limits<ID_t>::max() |
Special value for an invalid edge ID. More... | |
Private Attributes | |
double | fLength = 0.0 |
Length of this Edge [cm]. More... | |
SpacePointID_t | fFirstPointID = recob::SpacePoint::InvalidID |
ID of the SpacePoint edge emanates from. More... | |
SpacePointID_t | fSecondPointID = recob::SpacePoint::InvalidID |
ID of the SpacePoint edge ends on. More... | |
ID_t | fID = InvalidID |
Edge ID. More... | |
Edge is an object containing the results of a Principal Components Analysis of a group of space points.
The edge contains references to an emanating space point (FirstPointID()
) and to an ending one (SecondPointID()
). For convenience, it also stores the distance between those points.
To look up for a referenced space point, the easiest way is to start from a sorted list of space points (recob::SpacePoint
sorts by ID value):
using recob::Edge::ID_t = unsigned int |
Type to represent recob::Edge
IDs.
Type to represent recob::SpacePoint
IDs.
|
default |
Default constructor (all invalid IDs).
recob::Edge::Edge | ( | const double | length, |
SpacePointID_t | firstPointID, | ||
SpacePointID_t | secondPointID, | ||
ID_t | id = InvalidID |
||
) |
Constructor: assigns all values.
length | the length of the edge [cm] |
firstPointID | ID of the emanating space point |
secondPointID | ID of the ending space point |
id | _(default: InvalidID ) ID of this edge |
Definition at line 35 of file Edge.cxx.
recob::Edge::Edge | ( | SpacePoint const & | firstPoint, |
SpacePoint const & | secondPoint, | ||
ID_t | id = InvalidID |
||
) |
Constructor: uses the specified spacepoints.
firstPoint | the emanating space point |
secondPoint | the ending space point |
id | _(default: InvalidID ) ID of this edge |
Definition at line 43 of file Edge.cxx.
|
inline |
Returns the ID of the SpacePoint this edge emanates from.
Definition at line 102 of file Edge.h.
References fFirstPointID.
Referenced by recob::operator<<().
|
inline |
Returns the ID of this edge.
Definition at line 108 of file Edge.h.
References fID.
Referenced by recob::operator<(), and recob::operator<<().
|
inline |
Returns the length of this edge [cm].
Definition at line 99 of file Edge.h.
References fLength.
Referenced by recob::operator<<().
|
inline |
Returns the ID of the SpacePoint this edge ends on.
Definition at line 105 of file Edge.h.
References fSecondPointID.
Referenced by recob::operator<<().
|
private |
ID of the SpacePoint edge emanates from.
Definition at line 116 of file Edge.h.
Referenced by FirstPointID().
|
private |
|
private |
ID of the SpacePoint edge ends on.
Definition at line 118 of file Edge.h.
Referenced by SecondPointID().