LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
|
ClearShowersTool class. More...
#include "ClearShowersTool.h"
Public Types | |
typedef ThreeViewShowersAlgorithm::MatchingType::TensorType | TensorType |
typedef std::vector< TensorType::ElementList::const_iterator > | IteratorList |
Public Member Functions | |
ClearShowersTool () | |
Default constructor. More... | |
bool | Run (ThreeViewShowersAlgorithm *const pAlgorithm, TensorType &overlapTensor) |
Run the algorithm tool. More... | |
Static Public Member Functions | |
static bool | HasLargeDirectConnections (IteratorList::const_iterator iIter, const IteratorList &iteratorList) |
Whether a large shower-like element shares clusters with any other long elements. More... | |
static bool | IsLargerThanDirectConnections (IteratorList::const_iterator iIter, const TensorType::ElementList &elementList, const unsigned int minMatchedSamplingPointRatio, const float minXOverlapSpanRatio, const pandora::ClusterSet &usedClusters) |
Whether a large shower-like element is significantly larger that other elements with which it shares a cluster. More... | |
Private Member Functions | |
pandora::StatusCode | ReadSettings (const pandora::TiXmlHandle xmlHandle) |
void | FindClearShowers (const TensorType &overlapTensor, ProtoParticleVector &protoParticleVector) const |
Find clear shower matches, hidden by simple ambiguities in the tensor. More... | |
void | SelectLargeShowerElements (const TensorType::ElementList &elementList, const pandora::ClusterSet &usedClusters, IteratorList &iteratorList) const |
Select a list of large shower-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... | |
float | m_minXOverlapSpanRatio |
The min ratio between 1st and 2nd highest x-overlap spans for simple ambiguity resolution. More... | |
bool | m_visualize |
Visualize cluster split locations. More... | |
ClearShowersTool class.
Definition at line 19 of file ClearShowersTool.h.
|
inherited |
Definition at line 175 of file ThreeViewShowersAlgorithm.h.
|
inherited |
Definition at line 174 of file ThreeViewShowersAlgorithm.h.
lar_content::ClearShowersTool::ClearShowersTool | ( | ) |
Default constructor.
Definition at line 18 of file ClearShowersTool.cc.
|
private |
Find clear shower matches, hidden by simple ambiguities in the tensor.
overlapTensor | the overlap tensor |
protoParticleVector | to receive the list of proto particles |
Definition at line 91 of file ClearShowersTool.cc.
References lar_content::OverlapTensor< T >::GetConnectedElements(), lar_content::OverlapTensor< T >::GetSortedKeyClusters(), HasLargeDirectConnections(), IsLargerThanDirectConnections(), lar_content::ProtoParticle::m_clusterList, m_minMatchedSamplingPointRatio, m_minXOverlapSpanRatio, m_visualize, and SelectLargeShowerElements().
Referenced by Run().
|
static |
Whether a large shower-like element shares clusters with any other long elements.
iIter | specifies the large element under consideration |
iteratorList | list of iterators to other large elements |
Definition at line 30 of file ClearShowersTool.cc.
Referenced by FindClearShowers().
|
static |
Whether a large shower-like element is significantly larger that other elements with which it shares a cluster.
iIter | specifies the large 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 |
minMatchedSamplingPointRatio | the min ratio between 1st and 2nd highest x-overlap spans for simple ambiguity resolution |
usedClusters | the list of clusters already marked as to be added to a pfo |
Definition at line 47 of file ClearShowersTool.cc.
Referenced by FindClearShowers().
|
private |
Definition at line 180 of file ClearShowersTool.cc.
References m_minMatchedFraction, m_minMatchedSamplingPointRatio, m_minMatchedSamplingPoints, m_minXOverlapFraction, m_minXOverlapSpanRatio, and m_visualize.
|
virtual |
Run the algorithm tool.
pAlgorithm | address of the calling algorithm |
overlapTensor | the overlap tensor |
Implements lar_content::ShowerTensorTool.
Definition at line 77 of file ClearShowersTool.cc.
References lar_content::MatchingBaseAlgorithm::CreateThreeDParticles(), and FindClearShowers().
|
private |
Select a list of large shower-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 large shower-like elements |
Definition at line 140 of file ClearShowersTool.cc.
References m_minMatchedFraction, m_minMatchedSamplingPoints, m_minXOverlapFraction, and m_visualize.
Referenced by FindClearShowers().
|
private |
The min matched sampling point fraction for particle creation.
Definition at line 71 of file ClearShowersTool.h.
Referenced by ReadSettings(), and SelectLargeShowerElements().
|
private |
The min ratio between 1st and 2nd highest msps for simple ambiguity resolution.
Definition at line 74 of file ClearShowersTool.h.
Referenced by FindClearShowers(), and ReadSettings().
|
private |
The min number of matched sampling points for particle creation.
Definition at line 72 of file ClearShowersTool.h.
Referenced by ReadSettings(), and SelectLargeShowerElements().
|
private |
The min x overlap fraction (in each view) for particle creation.
Definition at line 73 of file ClearShowersTool.h.
Referenced by ReadSettings(), and SelectLargeShowerElements().
|
private |
The min ratio between 1st and 2nd highest x-overlap spans for simple ambiguity resolution.
Definition at line 75 of file ClearShowersTool.h.
Referenced by FindClearShowers(), and ReadSettings().
|
private |
Visualize cluster split locations.
Definition at line 76 of file ClearShowersTool.h.
Referenced by FindClearShowers(), ReadSettings(), and SelectLargeShowerElements().