8#ifndef LAR_CLUSTER_ASSOCIATION_H
9#define LAR_CLUSTER_ASSOCIATION_H 1
164 m_upstreamMergePoint(upstreamMergePoint),
165 m_upstreamMergeDirection(upstreamMergeDirection),
166 m_downstreamMergePoint(downstreamMergePoint),
167 m_downstreamMergeDirection(downstreamMergeDirection),
168 m_connectingLineDirection(0.f, 0.f, 0.f)
258 ClusterAssociation(upstreamMergePoint, upstreamMergeDirection, downstreamMergePoint, downstreamMergeDirection),
259 m_pUpstreamCluster(pUpstreamCluster),
260 m_pDownstreamCluster(pDownstreamCluster)
Header file for the cluster helper class.
ClusterAssociation class.
const pandora::CartesianVector GetDownstreamMergeDirection() const
Returns the cluster direction at the downstream merge point.
pandora::CartesianVector m_downstreamMergeDirection
The downstream cluster direction at the downstream merge point (points in the direction of the upstre...
pandora::CartesianVector m_downstreamMergePoint
The downstream cluster point to be used in the merging process.
ClusterAssociation()
Default constructor.
const pandora::CartesianVector GetConnectingLineDirection() const
Returns the unit vector of the line connecting the upstream and downstream merge points (upstream -> ...
void SetDownstreamMergePoint(const pandora::CartesianVector &downstreamMergePoint)
Set the downstream merge point.
pandora::CartesianVector m_upstreamMergeDirection
The upstream cluster direction at the upstream merge point (points in the direction of the downstream...
void SetUpstreamMergePoint(const pandora::CartesianVector &upstreamMergePoint)
Set the upstream merge point.
bool operator==(const ClusterAssociation &clusterAssociation) const
void UpdateConnectingLine()
Update the connecting line.
pandora::CartesianVector m_connectingLineDirection
The unit vector of the line connecting the upstream and downstream merge points (upstream -> downstre...
pandora::CartesianVector m_upstreamMergePoint
The upstream cluster point to be used in the merging process.
const pandora::CartesianVector GetUpstreamMergePoint() const
Returns the upstream cluster merge point.
const pandora::CartesianVector GetDownstreamMergePoint() const
Returns the downstream cluster merge point.
bool operator<(const ClusterAssociation &clusterAssociation) const
const pandora::CartesianVector GetUpstreamMergeDirection() const
Returns the cluster direction at the upstream merge point.
ClusterPairAssociation class.
const pandora::Cluster * GetUpstreamCluster() const
Returns the address of the upstream cluster.
const pandora::Cluster * m_pUpstreamCluster
The address of the upstream cluster.
ClusterPairAssociation()
Default constructor.
const pandora::Cluster * GetDownstreamCluster() const
Returns the address of the downstream cluster.
const pandora::Cluster * m_pDownstreamCluster
The address of the downstream cluster.
static bool SortCoordinatesByPosition(const pandora::CartesianVector &lhs, const pandora::CartesianVector &rhs)
Sort cartesian vectors by their position (use Z, followed by X, followed by Y)
float GetX() const
Get the cartesian x coordinate.
CartesianVector GetUnitVector() const
Get a unit vector in the direction of the cartesian vector.
float GetZ() const
Get the cartesian z coordinate.