![]() |
LArSoft
v10_06_00
Liquid Argon Software toolkit - https://larsoft.org/
|
LArHitWidthHelper class. More...
#include "LArHitWidthHelper.h"
Classes | |
| class | ClusterParameters |
| ClusterParameters class. More... | |
| class | ConstituentHit |
| ConstituentHit class. More... | |
| class | SortByHigherXExtrema |
| SortByHigherExtrema class. More... | |
Public Types | |
| typedef std::vector< ConstituentHit > | ConstituentHitVector |
| typedef std::unordered_map< const pandora::Cluster *, const ClusterParameters > | ClusterToParametersMap |
Static Public Member Functions | |
| static const ClusterParameters & | GetClusterParameters (const pandora::Cluster *const pCluster, const ClusterToParametersMap &clusterToParametersMap) |
| Return the cluster parameters of a given cluster, exception thrown if not found in map [cluster -> cluster parameter] or if map is empty. More... | |
| static unsigned int | GetNProposedConstituentHits (const pandora::Cluster *const pCluster, const float maxConstituentHitWidth, const float hitWidthScalingFactor) |
| Return the number of constituent hits that a given cluster would be broken into. More... | |
| static ConstituentHitVector | GetConstituentHits (const pandora::Cluster *const pCluster, const float maxConstituentHitWidth, const float hitWidthScalingFactor, const bool isUniform) |
| Break up the cluster hits into constituent hits. More... | |
| static void | SplitHitIntoConstituents (const pandora::CaloHit *const pCaloHit, const pandora::Cluster *const pCluster, const unsigned int numberOfConstituentHits, const float constituentHitWidth, ConstituentHitVector &constituentHitVector) |
| Break up the calo hit into constituent hits. More... | |
| static pandora::CartesianPointVector | GetConstituentHitPositionVector (const ConstituentHitVector &constituentHitVector) |
| Obtain a vector of the contituent hit central positions. More... | |
| static float | GetTotalClusterWeight (const ConstituentHitVector &constituentHitVector) |
| Sum the widths of constituent hits. More... | |
| static float | GetOriginalTotalClusterWeight (const pandora::Cluster *const pCluster) |
| Sum the widths of the original, unscaled hits contained within a cluster. More... | |
| static pandora::CartesianVector | GetExtremalCoordinatesLowerX (const ConstituentHitVector &constituentHitVector) |
| Return the lower x extremal point of the constituent hits. More... | |
| static pandora::CartesianVector | GetExtremalCoordinatesHigherX (const ConstituentHitVector &constituentHitVector) |
| Return the higher x extremal point of the constituent hits. More... | |
| static void | GetExtremalCoordinatesX (const ConstituentHitVector &constituentHitVector, pandora::CartesianVector &lowerXCoordinate, pandora::CartesianVector &higherXCoordinate) |
| Calculate the higher and lower x extremal points of the constituent hits. More... | |
| static pandora::CartesianVector | GetClosestPointToLine2D (const pandora::CartesianVector &lineStart, const pandora::CartesianVector &lineDirection, const pandora::CaloHit *const pCaloHit) |
| Consider the hit width to find the closest position of a calo hit to a specified line. More... | |
| static float | GetClosestDistanceToPoint2D (const pandora::CaloHit *const pCaloHit, const pandora::CartesianVector &point2D) |
| Consider the hit width to find the smallest distance between a calo hit and a given point. More... | |
| static float | GetClosestDistance (const pandora::CaloHit *const pThisCaloHit, const pandora::CaloHitList &caloHitList) |
| Find the smallest separation between a hit and a list of hits, with the consideration of their hit widths. More... | |
| static float | GetClosestDistance (const pandora::CaloHit *const pCaloHit1, const pandora::CaloHit *const pCaloHit2) |
| Find the smallest separation between two hits, with the consideration of their hit widths. More... | |
LArHitWidthHelper class.
Definition at line 19 of file LArHitWidthHelper.h.
| typedef std::unordered_map<const pandora::Cluster *, const ClusterParameters> lar_content::LArHitWidthHelper::ClusterToParametersMap |
Definition at line 161 of file LArHitWidthHelper.h.
| typedef std::vector<ConstituentHit> lar_content::LArHitWidthHelper::ConstituentHitVector |
Definition at line 88 of file LArHitWidthHelper.h.
|
static |
Find the smallest separation between a hit and a list of hits, with the consideration of their hit widths.
| pThisCaloHit | the input calo hit |
| caloHitList | the input calo hit list |
Referenced by lar_content::ShowerSpineFinderTool::CollectConnectedHits(), and GetClosestDistanceToPoint2D().
|
static |
Find the smallest separation between two hits, with the consideration of their hit widths.
| pCaloHit1 | the first calo hit |
| pCaloHit2 | the second calo hit |
|
static |
Consider the hit width to find the smallest distance between a calo hit and a given point.
| pCaloHit | the input calo hit |
| point2D | the position |
Definition at line 306 of file LArHitWidthHelper.cc.
References GetClosestDistance().
Referenced by lar_content::TrackRefinementBaseAlgorithm::IsNearBoundary().
|
static |
Consider the hit width to find the closest position of a calo hit to a specified line.
| lineStart | the start position of the line |
| lineDirection | the direction of the line |
| pCaloHit | the input calo hit |
Definition at line 281 of file LArHitWidthHelper.cc.
References f.
Referenced by lar_content::ShowerSpineFinderTool::CollectConnectedHits(), lar_content::ShowerSpineFinderTool::CollectSubsectionHits(), lar_content::TrackRefinementBaseAlgorithm::GetHitsInBoundingBox(), lar_content::TrackRefinementBaseAlgorithm::IsTrackContinuous(), and lar_content::TrackRefinementBaseAlgorithm::SortByDistanceAlongLine::operator()().
|
static |
Return the cluster parameters of a given cluster, exception thrown if not found in map [cluster -> cluster parameter] or if map is empty.
| pCluster | the input cluster |
| clusterToParametersMap | the map [cluster -> cluster parameter] |
Definition at line 74 of file LArHitWidthHelper.cc.
Referenced by lar_content::LArHitWidthHelper::SortByHigherXExtrema::operator()(), and lar_content::HitWidthClusterMergingAlgorithm::PopulateClusterAssociationMap().
|
static |
Obtain a vector of the contituent hit central positions.
| constituentHitVector | the input vector of contituent hits |
Definition at line 223 of file LArHitWidthHelper.cc.
Referenced by GetExtremalCoordinatesX(), lar_content::HitWidthClusterMergingAlgorithm::GetFittingAxes(), and lar_content::TwoDSlidingFitResult::TwoDSlidingFitResult().
|
static |
Break up the cluster hits into constituent hits.
| pCluster | the input cluster |
| maxConstituentHitWidth | the maximum width of a constituent hit |
| hitWidthScalingFactor | the constituent hit width scaling factor |
| isUniform | whether to break up the hit into uniform constituent hits (and pad the hit) or not in the non-uniform case constituent hits from different hits may have different weights |
Definition at line 120 of file LArHitWidthHelper.cc.
References SplitHitIntoConstituents().
Referenced by lar_content::HitWidthClusterMergingAlgorithm::IsExtremalCluster(), lar_content::LArHitWidthHelper::ConstituentHit::SortByDistanceToPoint::operator()(), and lar_content::TwoDSlidingFitResult::TwoDSlidingFitResult().
|
static |
Return the higher x extremal point of the constituent hits.
| constituentHitVector | the input vector of contituent hits |
Definition at line 245 of file LArHitWidthHelper.cc.
References f, and GetExtremalCoordinatesX().
Referenced by lar_content::HitWidthClusterMergingAlgorithm::IsExtremalCluster(), and lar_content::LArHitWidthHelper::ConstituentHit::SortByDistanceToPoint::operator()().
|
static |
Return the lower x extremal point of the constituent hits.
| constituentHitVector | the input vector of contituent hits |
Definition at line 235 of file LArHitWidthHelper.cc.
References f, and GetExtremalCoordinatesX().
Referenced by lar_content::LArHitWidthHelper::ConstituentHit::SortByDistanceToPoint::operator()().
|
static |
Calculate the higher and lower x extremal points of the constituent hits.
| constituentHitVector | the input vector of contituent hits |
| lowerXCoordinate | the lower x extremal point |
| higherXCoordinate | the higher x extremal point |
Definition at line 255 of file LArHitWidthHelper.cc.
References f, GetConstituentHitPositionVector(), and lar_content::LArClusterHelper::GetExtremalCoordinates().
Referenced by GetExtremalCoordinatesHigherX(), and GetExtremalCoordinatesLowerX().
|
static |
Return the number of constituent hits that a given cluster would be broken into.
| pCluster | the input cluster |
| maxConstituentHitWidth | the maximum width of a constituent hit |
| hitWidthScalingFactor | the constituent hit width scaling factor |
Definition at line 90 of file LArHitWidthHelper.cc.
Referenced by lar_content::HitWidthClusterMergingAlgorithm::GetListOfCleanClusters().
|
static |
Sum the widths of the original, unscaled hits contained within a cluster.
| pCluster | the input cluster |
Definition at line 207 of file LArHitWidthHelper.cc.
References f.
Referenced by lar_content::HitWidthClusterMergingAlgorithm::GetListOfCleanClusters().
|
static |
Sum the widths of constituent hits.
| constituentHitVector | the input vector of contituent hits |
Definition at line 196 of file LArHitWidthHelper.cc.
References f.
Referenced by lar_content::LArHitWidthHelper::ConstituentHit::SortByDistanceToPoint::operator()().
|
static |
Break up the calo hit into constituent hits.
| pCaloHit | the input calo hit |
| pCluster | the parent cluster |
| numberOfConstituentHits | the number of constituent hits the hit will be broken into |
| constituentHitWidth | the hit width of the constituent hits |
| constituentHitVector | the input vector to which to add the contituent hits |
Definition at line 158 of file LArHitWidthHelper.cc.
References lar_content::LArHitWidthHelper::ConstituentHit::ConstituentHit(), and f.
Referenced by GetConstituentHits().