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... | |
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 160 of file LArHitWidthHelper.h.
typedef std::vector<ConstituentHit> lar_content::LArHitWidthHelper::ConstituentHitVector |
Definition at line 87 of file LArHitWidthHelper.h.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
static |
Sum the widths of constituent hits.
constituentHitVector | the input vector of contituent hits |
Definition at line 196 of file LArHitWidthHelper.cc.
|
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.