LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
|
UndershootTracksTool class. More...
#include "UndershootTracksTool.h"
Classes | |
class | Particle |
Particle class. More... | |
Public Types | |
typedef ThreeViewTransverseTracksAlgorithm::MatchingType::TensorType | TensorType |
typedef std::vector< TensorType::ElementList::const_iterator > | IteratorList |
Public Member Functions | |
UndershootTracksTool () | |
Default constructor. More... | |
bool | Run (ThreeViewTransverseTracksAlgorithm *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... | |
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... | |
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 | GetIteratorListModifications (ThreeViewTransverseTracksAlgorithm *const pAlgorithm, const IteratorList &iteratorList, ModificationList &modificationList) const |
Get modification objects for a specific elements of the tensor, identifying required splits and merges for clusters. More... | |
pandora::StatusCode | ReadSettings (const pandora::TiXmlHandle xmlHandle) |
bool | IsThreeDKink (ThreeViewTransverseTracksAlgorithm *const pAlgorithm, const Particle &particle, const pandora::CartesianVector &splitPosition, const bool isALowestInX) const |
Whether the provided particle is consistent with being a kink, when examined in three dimensions at the provided split position. More... | |
Private Attributes | |
bool | m_splitMode |
Whether to run in cluster splitting mode, as opposed to cluster merging mode. More... | |
float | m_maxTransverseImpactParameter |
The maximum transverse impact parameter for connecting broken clusters. More... | |
float | m_minImpactParameterCosTheta |
The minimum cos theta (angle between vertex directions) for connecting broken clusters. More... | |
float | m_cosThetaCutForKinkSearch |
The cos theta cut used for the kink search in three dimensions. More... | |
UndershootTracksTool class.
Definition at line 19 of file UndershootTracksTool.h.
|
inherited |
Definition at line 131 of file ThreeViewTransverseTracksAlgorithm.h.
|
protectedinherited |
Definition at line 50 of file ThreeDKinkBaseTool.h.
|
inherited |
Definition at line 130 of file ThreeViewTransverseTracksAlgorithm.h.
lar_content::UndershootTracksTool::UndershootTracksTool | ( | ) |
Default constructor.
Definition at line 24 of file UndershootTracksTool.cc.
|
privatevirtual |
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 |
Implements lar_content::ThreeDKinkBaseTool.
Definition at line 35 of file UndershootTracksTool.cc.
References f, lar_content::NViewTrackMatchingAlgorithm< T >::GetCachedSlidingFitResult(), lar_content::LArPointingClusterHelper::GetClosestVertices(), lar_content::LArPointingClusterHelper::GetImpactParameters(), lar_content::ThreeDKinkBaseTool::IsALowestInX(), IsThreeDKink(), lar_content::ThreeDKinkBaseTool::Modification::m_affectedClusters, lar_content::ThreeDKinkBaseTool::Modification::m_clusterMergeMap, lar_content::ThreeDKinkBaseTool::m_majorityRulesMode, m_maxTransverseImpactParameter, m_minImpactParameterCosTheta, lar_content::ThreeDKinkBaseTool::m_minLongitudinalImpactParameter, lar_content::UndershootTracksTool::Particle::m_pClusterA, lar_content::UndershootTracksTool::Particle::m_pClusterB, lar_content::UndershootTracksTool::Particle::m_pCommonCluster1, lar_content::UndershootTracksTool::Particle::m_pCommonCluster2, m_splitMode, and lar_content::ThreeDKinkBaseTool::Modification::m_splitPositionMap.
|
protectedinherited |
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(), lar_content::ThreeDKinkBaseTool::m_additionalXStepForKinkSearch, and lar_content::ThreeDKinkBaseTool::m_nLayersForKinkSearch.
Referenced by IsThreeDKink(), and lar_content::OvershootTracksTool::IsThreeDKink().
|
staticprotectedinherited |
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 GetIteratorListModifications(), and lar_content::OvershootTracksTool::GetIteratorListModifications().
|
private |
Whether the provided particle is consistent with being a kink, when examined in three dimensions at the provided split position.
pAlgorithm | the calling algorithm |
particle | the particle |
splitPosition | the candidate split position |
isALowestInX | whether cluster associated with tensor element a extends to lowest x positions |
Definition at line 129 of file UndershootTracksTool.cc.
References f, lar_content::NViewTrackMatchingAlgorithm< T >::GetCachedSlidingFitResult(), lar_content::LArClusterHelper::GetClusterHitType(), lar_content::ThreeDKinkBaseTool::GetXSamplingPoint(), m_cosThetaCutForKinkSearch, lar_content::UndershootTracksTool::Particle::m_pClusterA, lar_content::UndershootTracksTool::Particle::m_pClusterB, lar_content::UndershootTracksTool::Particle::m_pCommonCluster1, lar_content::UndershootTracksTool::Particle::m_pCommonCluster2, and lar_content::LArGeometryHelper::MergeThreePositions3D().
Referenced by GetIteratorListModifications().
|
protectedvirtualinherited |
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 lar_content::ThreeDKinkBaseTool::m_minMatchedFraction, and lar_content::ThreeDKinkBaseTool::m_minMatchedSamplingPoints.
Referenced by lar_content::ThreeDKinkBaseTool::GetModifications(), and lar_content::ThreeDKinkBaseTool::SelectTensorElements().
|
private |
Definition at line 213 of file UndershootTracksTool.cc.
References m_cosThetaCutForKinkSearch, m_maxTransverseImpactParameter, m_minImpactParameterCosTheta, m_splitMode, and lar_content::ThreeDKinkBaseTool::ReadSettings().
|
virtualinherited |
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 lar_content::ThreeDKinkBaseTool::ApplyChanges(), and lar_content::ThreeDKinkBaseTool::GetModifications().
|
protectedinherited |
An additional (safety) step to tack-on when choosing x sampling points.
Definition at line 100 of file ThreeDKinkBaseTool.h.
Referenced by lar_content::ThreeDKinkBaseTool::GetXSamplingPoint(), and lar_content::ThreeDKinkBaseTool::ReadSettings().
|
private |
The cos theta cut used for the kink search in three dimensions.
Definition at line 68 of file UndershootTracksTool.h.
Referenced by IsThreeDKink(), and ReadSettings().
|
protectedinherited |
Whether to run in majority rules mode (always split overshoots, always merge undershoots)
Definition at line 95 of file ThreeDKinkBaseTool.h.
Referenced by GetIteratorListModifications(), lar_content::OvershootTracksTool::GetIteratorListModifications(), and lar_content::ThreeDKinkBaseTool::ReadSettings().
|
private |
The maximum transverse impact parameter for connecting broken clusters.
Definition at line 66 of file UndershootTracksTool.h.
Referenced by GetIteratorListModifications(), and ReadSettings().
|
private |
The minimum cos theta (angle between vertex directions) for connecting broken clusters.
Definition at line 67 of file UndershootTracksTool.h.
Referenced by GetIteratorListModifications(), and ReadSettings().
|
protectedinherited |
The min longitudinal impact parameter for connecting accompanying clusters.
Definition at line 98 of file ThreeDKinkBaseTool.h.
Referenced by GetIteratorListModifications(), lar_content::OvershootTracksTool::PassesVertexCuts(), and lar_content::ThreeDKinkBaseTool::ReadSettings().
|
protectedinherited |
The min matched sampling point fraction for use as a key tensor element.
Definition at line 96 of file ThreeDKinkBaseTool.h.
Referenced by lar_content::ThreeDKinkBaseTool::PassesElementCuts(), and lar_content::ThreeDKinkBaseTool::ReadSettings().
|
protectedinherited |
The min number of matched sampling points for use as a key tensor element.
Definition at line 97 of file ThreeDKinkBaseTool.h.
Referenced by lar_content::ThreeDKinkBaseTool::PassesElementCuts(), and lar_content::ThreeDKinkBaseTool::ReadSettings().
|
protectedinherited |
The number of common clusters.
Definition at line 94 of file ThreeDKinkBaseTool.h.
Referenced by lar_content::ThreeDKinkBaseTool::SelectTensorElements(), and lar_content::ThreeDKinkBaseTool::ThreeDKinkBaseTool().
|
protectedinherited |
The number of sliding fit layers to step in the kink search.
Definition at line 99 of file ThreeDKinkBaseTool.h.
Referenced by lar_content::ThreeDKinkBaseTool::GetXSamplingPoint(), and lar_content::ThreeDKinkBaseTool::ReadSettings().
|
private |
Whether to run in cluster splitting mode, as opposed to cluster merging mode.
Definition at line 65 of file UndershootTracksTool.h.
Referenced by GetIteratorListModifications(), and ReadSettings().