LArSoft
v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
|
LongTracksTool class. More...
#include "LongTracksTool.h"
Public Types | |
typedef ThreeDTransverseTracksAlgorithm::TensorType | TensorType |
typedef std::vector< TensorType::ElementList::const_iterator > | IteratorList |
Public Member Functions | |
LongTracksTool () | |
Default constructor. More... | |
bool | Run (ThreeDTransverseTracksAlgorithm *const pAlgorithm, TensorType &overlapTensor) |
Run the algorithm tool. More... | |
Static Public Member Functions | |
static bool | HasLongDirectConnections (IteratorList::const_iterator iIter, const IteratorList &iteratorList) |
Whether a long element shares clusters with any other long elements. More... | |
static bool | IsLongerThanDirectConnections (IteratorList::const_iterator iIter, const TensorType::ElementList &elementList, const unsigned int minMatchedSamplingPointRatio, const pandora::ClusterSet &usedClusters) |
Whether a long element is significantly longer that other elements with which it shares a cluster. More... | |
Private Member Functions | |
pandora::StatusCode | ReadSettings (const pandora::TiXmlHandle xmlHandle) |
void | FindLongTracks (const TensorType &overlapTensor, ProtoParticleVector &protoParticleVector) const |
Find long tracks, hidden by simple ambiguities in the tensor. More... | |
void | SelectLongElements (const TensorType::ElementList &elementList, const pandora::ClusterSet &usedClusters, IteratorList &iteratorList) const |
Select a list of long track-like elements from a set of connected tensor elements. More... | |
Private Attributes | |
float | m_minMatchedFraction |
The min matched sampling point fraction for particle creation. More... | |
unsigned int | m_minMatchedSamplingPoints |
The min number of matched sampling points for particle creation. More... | |
float | m_minXOverlapFraction |
The min x overlap fraction (in each view) for particle creation. More... | |
unsigned int | m_minMatchedSamplingPointRatio |
The min ratio between 1st and 2nd highest msps for simple ambiguity resolution. More... | |
LongTracksTool class.
Definition at line 19 of file LongTracksTool.h.
|
inherited |
Definition at line 128 of file ThreeDTransverseTracksAlgorithm.h.
|
inherited |
Definition at line 127 of file ThreeDTransverseTracksAlgorithm.h.
lar_content::LongTracksTool::LongTracksTool | ( | ) |
Default constructor.
Definition at line 18 of file LongTracksTool.cc.
|
private |
Find long tracks, hidden by simple ambiguities in the tensor.
overlapTensor | the overlap tensor |
protoParticleVector | to receive the list of proto particles |
Definition at line 83 of file LongTracksTool.cc.
References lar_content::OverlapTensor< T >::GetConnectedElements(), lar_content::OverlapTensor< T >::GetSortedKeyClusters(), HasLongDirectConnections(), IsLongerThanDirectConnections(), lar_content::ProtoParticle::m_clusterListU, lar_content::ProtoParticle::m_clusterListV, lar_content::ProtoParticle::m_clusterListW, m_minMatchedSamplingPointRatio, and SelectLongElements().
Referenced by Run().
|
static |
Whether a long element shares clusters with any other long elements.
iIter | specifies the long element under consideration |
iteratorList | list of iterators to other long elements |
Definition at line 28 of file LongTracksTool.cc.
Referenced by FindLongTracks(), lar_content::TracksCrossingGapsTool::FindTracks(), lar_content::TrackSplittingTool::FindTracks(), and lar_content::MissingTrackSegmentTool::FindTracks().
|
static |
Whether a long element is significantly longer that other elements with which it shares a cluster.
iIter | specifies the long element under consideration |
elementList | the full list of connected tensor elements |
minMatchedSamplingPointRatio | the min ratio between 1st and 2nd highest msps for simple ambiguity resolution |
usedClusters | the list of clusters already marked as to be added to a pfo |
Definition at line 44 of file LongTracksTool.cc.
Referenced by FindLongTracks(), lar_content::TracksCrossingGapsTool::FindTracks(), lar_content::TrackSplittingTool::FindTracks(), and lar_content::MissingTrackSegmentTool::FindTracks().
|
private |
Definition at line 152 of file LongTracksTool.cc.
References m_minMatchedFraction, m_minMatchedSamplingPointRatio, m_minMatchedSamplingPoints, and m_minXOverlapFraction.
|
virtual |
Run the algorithm tool.
pAlgorithm | address of the calling algorithm |
overlapTensor | the overlap tensor |
Implements lar_content::TransverseTensorTool.
Definition at line 69 of file LongTracksTool.cc.
References lar_content::ThreeDBaseAlgorithm< T >::CreateThreeDParticles(), and FindLongTracks().
|
private |
Select a list of long track-like elements from a set of connected tensor elements.
elementList | the full list of connected tensor elements |
usedClusters | the list of clusters already marked as to be added to a pfo |
iteratorList | to receive a list of iterators to long track-like elements |
Definition at line 125 of file LongTracksTool.cc.
References m_minMatchedFraction, m_minMatchedSamplingPoints, and m_minXOverlapFraction.
Referenced by FindLongTracks().
|
private |
The min matched sampling point fraction for particle creation.
Definition at line 71 of file LongTracksTool.h.
Referenced by ReadSettings(), and SelectLongElements().
|
private |
The min ratio between 1st and 2nd highest msps for simple ambiguity resolution.
Definition at line 74 of file LongTracksTool.h.
Referenced by FindLongTracks(), and ReadSettings().
|
private |
The min number of matched sampling points for particle creation.
Definition at line 72 of file LongTracksTool.h.
Referenced by ReadSettings(), and SelectLongElements().
|
private |
The min x overlap fraction (in each view) for particle creation.
Definition at line 73 of file LongTracksTool.h.
Referenced by ReadSettings(), and SelectLongElements().