10 #ifndef LARDATAOBJ_RECOBASE_EDGE_H 11 #define LARDATAOBJ_RECOBASE_EDGE_H 145 {
return a.
ID() < b.
ID(); }
148 {
return e.
ID() < id; }
151 {
return id < e.
ID(); }
157 #endif // LARDATAOBJ_RECOBASE_EDGE_H Reconstruction base classes.
bool operator<(Cluster const &a, Cluster const &b)
int ID_t
type of spacepoint ID
static constexpr ID_t InvalidID
Special value for an invalid edge ID.
double Length() const
Returns the length of this edge [cm].
SpacePointID_t FirstPointID() const
Returns the ID of the SpacePoint this edge emanates from.
unsigned int ID_t
Type to represent recob::Edge IDs.
static constexpr ID_t InvalidID
Special value for an invalid ID.
double fLength
Length of this Edge [cm].
static int max(int a, int b)
SpacePointID_t fSecondPointID
ID of the SpacePoint edge ends on.
SpacePointID_t fFirstPointID
ID of the SpacePoint edge emanates from.
Edge()=default
Default constructor (all invalid IDs).
ID_t ID() const
Returns the ID of this edge.
std::ostream & operator<<(std::ostream &o, Cluster const &c)
Edge is an object containing the results of a Principal Components Analysis of a group of space point...
recob::SpacePoint::ID_t SpacePointID_t
Type to represent recob::SpacePoint IDs.
SpacePointID_t SecondPointID() const
Returns the ID of the SpacePoint this edge ends on.