LArSoft
v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
|
ThreeDKinkBaseTool class. More...
#include "ThreeDKinkBaseTool.h"
Classes | |
class | Modification |
Modification class. More... | |
Public Types | |
typedef ThreeDTransverseTracksAlgorithm::TensorType | TensorType |
typedef std::vector< TensorType::ElementList::const_iterator > | IteratorList |
Public Member Functions | |
ThreeDKinkBaseTool (const unsigned int nCommonClusters) | |
Constructor. More... | |
virtual | ~ThreeDKinkBaseTool () |
Destructor. More... | |
bool | Run (ThreeDTransverseTracksAlgorithm *const pAlgorithm, TensorType &overlapTensor) |
Run the algorithm tool. More... | |
Protected Types | |
typedef std::vector< Modification > | ModificationList |
Protected Member Functions | |
virtual bool | PassesElementCuts (TensorType::ElementList::const_iterator eIter, const pandora::ClusterSet &usedClusters) const |
Whether a provided (iterator to a) tensor element passes the selection cuts for overshoot identification. More... | |
virtual void | GetIteratorListModifications (ThreeDTransverseTracksAlgorithm *const pAlgorithm, const IteratorList &iteratorList, ModificationList &modificationList) const =0 |
Get modification objects for a specific elements of the tensor, identifying required splits and merges for clusters. More... | |
float | GetXSamplingPoint (const pandora::CartesianVector &splitPosition1, const bool isForwardInX, const TwoDSlidingFitResult &fitResult1, const TwoDSlidingFitResult &fitResult2, const TwoDSlidingFitResult &fitResult3) const |
Get a sampling point in x that is common to sliding linear fit objects in three views. More... | |
pandora::StatusCode | ReadSettings (const pandora::TiXmlHandle xmlHandle) |
Static Protected Member Functions | |
static bool | IsALowestInX (const LArPointingCluster &pointingClusterA, const LArPointingCluster &pointingClusterB) |
Whether pointing cluster labelled A extends to lowest x positions (as opposed to that labelled B) More... | |
Protected Attributes | |
unsigned int | m_nCommonClusters |
The number of common clusters. More... | |
bool | m_majorityRulesMode |
Whether to run in majority rules mode (always split overshoots, always merge undershoots) More... | |
float | m_minMatchedFraction |
The min matched sampling point fraction for use as a key tensor element. More... | |
unsigned int | m_minMatchedSamplingPoints |
The min number of matched sampling points for use as a key tensor element. More... | |
float | m_minLongitudinalImpactParameter |
The min longitudinal impact parameter for connecting accompanying clusters. More... | |
int | m_nLayersForKinkSearch |
The number of sliding fit layers to step in the kink search. More... | |
float | m_additionalXStepForKinkSearch |
An additional (safety) step to tack-on when choosing x sampling points. More... | |
Private Member Functions | |
void | GetModifications (ThreeDTransverseTracksAlgorithm *const pAlgorithm, const TensorType &overlapTensor, ModificationList &modificationList) const |
Get modification objects, identifying required splits and merges for clusters. More... | |
void | SelectTensorElements (TensorType::ElementList::const_iterator eIter, const TensorType::ElementList &elementList, const pandora::ClusterSet &usedClusters, IteratorList &iteratorList) const |
Select elements representing possible components of interest due to overshoots or undershoots in clustering. More... | |
bool | ApplyChanges (ThreeDTransverseTracksAlgorithm *const pAlgorithm, const ModificationList &modificationList) const |
Apply the changes cached in a modification list and update the tensor accordingly. More... | |
ThreeDKinkBaseTool class.
Definition at line 21 of file ThreeDKinkBaseTool.h.
|
inherited |
Definition at line 128 of file ThreeDTransverseTracksAlgorithm.h.
|
protected |
Definition at line 50 of file ThreeDKinkBaseTool.h.
|
inherited |
Definition at line 127 of file ThreeDTransverseTracksAlgorithm.h.
lar_content::ThreeDKinkBaseTool::ThreeDKinkBaseTool | ( | const unsigned int | nCommonClusters | ) |
Constructor.
nCommonClusters | the number of common clusters to select |
Definition at line 22 of file ThreeDKinkBaseTool.cc.
References m_nCommonClusters.
|
virtual |
|
private |
Apply the changes cached in a modification list and update the tensor accordingly.
pAlgorithm | address of the calling algorithm |
modificationList | the modification list |
Definition at line 187 of file ThreeDKinkBaseTool.cc.
References lar_content::ThreeDBaseAlgorithm< T >::MakeClusterMerges(), lar_content::ThreeDTracksBaseAlgorithm< T >::MakeClusterSplits(), and lar_content::LArClusterHelper::SortByNHits().
Referenced by Run().
|
protectedpure virtual |
Get modification objects for a specific elements of the tensor, identifying required splits and merges for clusters.
pAlgorithm | address of the calling algorithm |
iteratorList | list of iterators to relevant tensor elements |
modificationList | to be populated with modifications |
Implemented in lar_content::OvershootTracksTool, and lar_content::UndershootTracksTool.
Referenced by GetModifications().
|
private |
Get modification objects, identifying required splits and merges for clusters.
pAlgorithm | address of the calling algorithm |
overlapTensor | the overlap tensor |
modificationList | to be populated with modifications |
Definition at line 140 of file ThreeDKinkBaseTool.cc.
References lar_content::OverlapTensor< T >::GetConnectedElements(), GetIteratorListModifications(), lar_content::OverlapTensor< T >::GetSortedKeyClusters(), PassesElementCuts(), and SelectTensorElements().
Referenced by Run().
|
protected |
Get a sampling point in x that is common to sliding linear fit objects in three views.
splitPosition1 | the split position in view 1 |
isForwardInX | whether to work forwards (or backwards) in x |
fitResult1 | the sliding fit result in view 1 |
fitResult2 | the sliding fit result in view 2 |
fitResult3 | the sliding fit result in view 3 |
Definition at line 59 of file ThreeDKinkBaseTool.cc.
References f, lar_content::TwoDSlidingFitResult::GetGlobalFitPosition(), lar_content::TwoDSlidingFitResult::GetL(), lar_content::TwoDSlidingFitResult::GetLayer(), lar_content::TwoDSlidingFitResult::GetLocalPosition(), lar_content::TwoDSlidingFitResult::GetMaxLayer(), lar_content::TwoDSlidingFitResult::GetMinAndMaxX(), lar_content::TwoDSlidingFitResult::GetMinLayer(), m_additionalXStepForKinkSearch, m_nLayersForKinkSearch, max, and min.
Referenced by lar_content::UndershootTracksTool::IsThreeDKink(), and lar_content::OvershootTracksTool::IsThreeDKink().
|
staticprotected |
Whether pointing cluster labelled A extends to lowest x positions (as opposed to that labelled B)
pointingClusterA | pointing cluster A |
pointingClusterB | pointing cluster B |
Definition at line 107 of file ThreeDKinkBaseTool.cc.
References lar_content::LArPointingCluster::GetInnerVertex(), lar_content::LArPointingCluster::GetOuterVertex(), and lar_content::LArPointingCluster::Vertex::GetPosition().
Referenced by lar_content::UndershootTracksTool::GetIteratorListModifications(), and lar_content::OvershootTracksTool::GetIteratorListModifications().
|
protectedvirtual |
Whether a provided (iterator to a) tensor element passes the selection cuts for overshoot identification.
eIter | the iterator to the tensor element |
usedClusters | the list of used clusters |
Definition at line 43 of file ThreeDKinkBaseTool.cc.
References m_minMatchedFraction, and m_minMatchedSamplingPoints.
Referenced by GetModifications(), and SelectTensorElements().
|
protected |
Definition at line 274 of file ThreeDKinkBaseTool.cc.
References m_additionalXStepForKinkSearch, m_majorityRulesMode, m_minLongitudinalImpactParameter, m_minMatchedFraction, m_minMatchedSamplingPoints, and m_nLayersForKinkSearch.
Referenced by lar_content::UndershootTracksTool::ReadSettings(), and lar_content::OvershootTracksTool::ReadSettings().
|
virtual |
Run the algorithm tool.
pAlgorithm | address of the calling algorithm |
overlapTensor | the overlap tensor |
Implements lar_content::TransverseTensorTool.
Definition at line 126 of file ThreeDKinkBaseTool.cc.
References ApplyChanges(), and GetModifications().
|
private |
Select elements representing possible components of interest due to overshoots or undershoots in clustering.
eIter | iterator to a candidate element |
elementList | the provided element list |
usedClusters | the list of used clusters |
iteratorList | to receive a list of iterators to relevant elements |
Definition at line 234 of file ThreeDKinkBaseTool.cc.
References m_nCommonClusters, and PassesElementCuts().
Referenced by GetModifications().
|
protected |
An additional (safety) step to tack-on when choosing x sampling points.
Definition at line 100 of file ThreeDKinkBaseTool.h.
Referenced by GetXSamplingPoint(), and ReadSettings().
|
protected |
Whether to run in majority rules mode (always split overshoots, always merge undershoots)
Definition at line 95 of file ThreeDKinkBaseTool.h.
Referenced by lar_content::UndershootTracksTool::GetIteratorListModifications(), lar_content::OvershootTracksTool::GetIteratorListModifications(), and ReadSettings().
|
protected |
The min longitudinal impact parameter for connecting accompanying clusters.
Definition at line 98 of file ThreeDKinkBaseTool.h.
Referenced by lar_content::UndershootTracksTool::GetIteratorListModifications(), lar_content::OvershootTracksTool::PassesVertexCuts(), and ReadSettings().
|
protected |
The min matched sampling point fraction for use as a key tensor element.
Definition at line 96 of file ThreeDKinkBaseTool.h.
Referenced by PassesElementCuts(), and ReadSettings().
|
protected |
The min number of matched sampling points for use as a key tensor element.
Definition at line 97 of file ThreeDKinkBaseTool.h.
Referenced by PassesElementCuts(), and ReadSettings().
|
protected |
The number of common clusters.
Definition at line 94 of file ThreeDKinkBaseTool.h.
Referenced by SelectTensorElements(), and ThreeDKinkBaseTool().
|
protected |
The number of sliding fit layers to step in the kink search.
Definition at line 99 of file ThreeDKinkBaseTool.h.
Referenced by GetXSamplingPoint(), and ReadSettings().