LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
|
ClusterAssociation class. More...
#include "ClusterAssociation.h"
Public Member Functions | |
ClusterAssociation () | |
Default constructor. More... | |
ClusterAssociation (const pandora::CartesianVector &upstreamMergePoint, const pandora::CartesianVector &upstreamMergeDirection, const pandora::CartesianVector &downstreamMergePoint, const pandora::CartesianVector &downstreamMergeDirection) | |
Constructor. More... | |
const pandora::CartesianVector | GetUpstreamMergePoint () const |
Returns the upstream cluster merge point. More... | |
const pandora::CartesianVector | GetUpstreamMergeDirection () const |
Returns the cluster direction at the upstream merge point. More... | |
const pandora::CartesianVector | GetDownstreamMergePoint () const |
Returns the downstream cluster merge point. More... | |
const pandora::CartesianVector | GetDownstreamMergeDirection () const |
Returns the cluster direction at the downstream merge point. More... | |
const pandora::CartesianVector | GetConnectingLineDirection () const |
Returns the unit vector of the line connecting the upstream and downstream merge points (upstream -> downstream) More... | |
void | SetUpstreamMergePoint (const pandora::CartesianVector &upstreamMergePoint) |
Set the upstream merge point. More... | |
void | SetDownstreamMergePoint (const pandora::CartesianVector &downstreamMergePoint) |
Set the downstream merge point. More... | |
bool | operator== (const ClusterAssociation &clusterAssociation) const |
bool | operator< (const ClusterAssociation &clusterAssociation) const |
Protected Member Functions | |
void | UpdateConnectingLine () |
Update the connecting line. More... | |
Protected Attributes | |
pandora::CartesianVector | m_upstreamMergePoint |
The upstream cluster point to be used in the merging process. More... | |
pandora::CartesianVector | m_upstreamMergeDirection |
The upstream cluster direction at the upstream merge point (points in the direction of the downstream cluster) More... | |
pandora::CartesianVector | m_downstreamMergePoint |
The downstream cluster point to be used in the merging process. More... | |
pandora::CartesianVector | m_downstreamMergeDirection |
The downstream cluster direction at the downstream merge point (points in the direction of the upstream cluster) More... | |
pandora::CartesianVector | m_connectingLineDirection |
The unit vector of the line connecting the upstream and downstream merge points (upstream -> downstream) More... | |
ClusterAssociation class.
Definition at line 18 of file ClusterAssociation.h.
|
inline |
Default constructor.
Definition at line 151 of file ClusterAssociation.h.
|
inline |
Constructor.
upstreamMergePoint | the upstream merge point |
upstreamMergeDirection | the cluster direction at the upstream merge point |
downstreamMergePoint | the downstream merge point |
downstreamMergeDirection | the cluster direction at the downstream merge point |
Definition at line 162 of file ClusterAssociation.h.
References m_connectingLineDirection, m_downstreamMergePoint, and m_upstreamMergePoint.
|
inline |
Returns the unit vector of the line connecting the upstream and downstream merge points (upstream -> downstream)
Definition at line 222 of file ClusterAssociation.h.
References m_connectingLineDirection.
Referenced by lar_content::TrackRefinementBaseAlgorithm::AddHitsToMainTrack(), lar_content::TrackRefinementBaseAlgorithm::AreExtrapolatedHitsGood(), lar_content::TrackRefinementBaseAlgorithm::GetTrackSegmentBoundaries(), and lar_content::TrackRefinementBaseAlgorithm::IsTrackContinuous().
|
inline |
Returns the cluster direction at the downstream merge point.
Definition at line 215 of file ClusterAssociation.h.
References m_downstreamMergeDirection.
Referenced by operator==().
|
inline |
Returns the downstream cluster merge point.
Definition at line 208 of file ClusterAssociation.h.
References m_downstreamMergePoint.
Referenced by lar_content::TrackMergeRefinementAlgorithm::AreExtrapolatedHitsNearBoundaries(), lar_content::TrackMergeRefinementAlgorithm::CreateMainTrack(), lar_content::TrackRefinementBaseAlgorithm::GetTrackSegmentBoundaries(), operator==(), and lar_content::TrackMergeRefinementAlgorithm::Run().
|
inline |
Returns the cluster direction at the upstream merge point.
Definition at line 201 of file ClusterAssociation.h.
References m_upstreamMergeDirection.
Referenced by operator==().
|
inline |
Returns the upstream cluster merge point.
Definition at line 194 of file ClusterAssociation.h.
References m_upstreamMergePoint.
Referenced by lar_content::TrackRefinementBaseAlgorithm::AddHitsToMainTrack(), lar_content::TrackRefinementBaseAlgorithm::AreExtrapolatedHitsGood(), lar_content::TrackMergeRefinementAlgorithm::AreExtrapolatedHitsNearBoundaries(), lar_content::TrackMergeRefinementAlgorithm::CreateMainTrack(), lar_content::TrackRefinementBaseAlgorithm::GetTrackSegmentBoundaries(), lar_content::TrackRefinementBaseAlgorithm::IsTrackContinuous(), operator<(), operator==(), and lar_content::TrackMergeRefinementAlgorithm::Run().
|
inline |
Definition at line 187 of file ClusterAssociation.h.
References GetUpstreamMergePoint(), m_upstreamMergePoint, and lar_content::LArClusterHelper::SortCoordinatesByPosition().
|
inline |
Definition at line 177 of file ClusterAssociation.h.
References GetDownstreamMergeDirection(), GetDownstreamMergePoint(), GetUpstreamMergeDirection(), GetUpstreamMergePoint(), m_downstreamMergeDirection, m_downstreamMergePoint, m_upstreamMergeDirection, and m_upstreamMergePoint.
|
inline |
Set the downstream merge point.
downstreamMergePoint | the new downstream merge point |
Definition at line 237 of file ClusterAssociation.h.
References m_downstreamMergePoint, and UpdateConnectingLine().
|
inline |
Set the upstream merge point.
upstreamMergePoint | the new upstream merge point |
Definition at line 229 of file ClusterAssociation.h.
References m_upstreamMergePoint, and UpdateConnectingLine().
|
inlineprotected |
Update the connecting line.
Definition at line 245 of file ClusterAssociation.h.
References m_connectingLineDirection, m_downstreamMergePoint, and m_upstreamMergePoint.
Referenced by SetDownstreamMergePoint(), and SetUpstreamMergePoint().
|
protected |
The unit vector of the line connecting the upstream and downstream merge points (upstream -> downstream)
Definition at line 99 of file ClusterAssociation.h.
Referenced by ClusterAssociation(), GetConnectingLineDirection(), and UpdateConnectingLine().
|
protected |
The downstream cluster direction at the downstream merge point (points in the direction of the upstream cluster)
Definition at line 98 of file ClusterAssociation.h.
Referenced by GetDownstreamMergeDirection(), and operator==().
|
protected |
The downstream cluster point to be used in the merging process.
Definition at line 97 of file ClusterAssociation.h.
Referenced by ClusterAssociation(), GetDownstreamMergePoint(), operator==(), SetDownstreamMergePoint(), and UpdateConnectingLine().
|
protected |
The upstream cluster direction at the upstream merge point (points in the direction of the downstream cluster)
Definition at line 96 of file ClusterAssociation.h.
Referenced by GetUpstreamMergeDirection(), and operator==().
|
protected |
The upstream cluster point to be used in the merging process.
Definition at line 95 of file ClusterAssociation.h.
Referenced by ClusterAssociation(), GetUpstreamMergePoint(), operator<(), operator==(), SetUpstreamMergePoint(), and UpdateConnectingLine().