LArClusterHelper class. More...
#include <LArClusterHelper.h>
Public Types | |
typedef std::set< unsigned int > | UIntSet |
Static Public Member Functions | |
static pandora::HitType | GetClusterHitType (const pandora::Cluster *const pCluster) |
Get the hit type associated with a two dimensional cluster. More... | |
static void | GetClustersUVW (const pandora::ClusterList &inputClusters, pandora::ClusterList &clusterListU, pandora::ClusterList &clusterListV, pandora::ClusterList &clusterListW) |
Divide an input cluster list into separate u, v and w lists (exception raised if alternative hit type encountered) More... | |
static void | GetClustersByHitType (const pandora::ClusterList &inputClusters, const pandora::HitType hitType, pandora::ClusterList &clusterList) |
Get the subset of clusters, from a provided list, that match the specified hit type. More... | |
static float | GetLengthSquared (const pandora::Cluster *const pCluster) |
Get length squared of cluster. More... | |
static float | GetLength (const pandora::Cluster *const pCluster) |
Get length of cluster. More... | |
static float | GetEnergyFromLength (const pandora::Cluster *const pCluster) |
Get energy of cluster, based on length. More... | |
static unsigned int | GetLayerSpan (const pandora::Cluster *const pCluster) |
Get number of layers spanned by cluster (1+Last-First) More... | |
static float | GetLayerOccupancy (const pandora::Cluster *const pCluster) |
Fraction of occupied layers in cluster. More... | |
static float | GetLayerOccupancy (const pandora::Cluster *const pCluster1, const pandora::Cluster *const pCluster2) |
Fraction of occupied layers in a pair of clusters. More... | |
static float | GetClosestDistance (const pandora::ClusterList &clusterList1, const pandora::ClusterList &clusterList2) |
Get closest distance between clusters in a pair of cluster lists. More... | |
static float | GetClosestDistance (const pandora::Cluster *const pCluster, const pandora::ClusterList &clusterList) |
Get closest distance between a specified cluster and list of clusters. More... | |
static float | GetClosestDistance (const pandora::Cluster *const pCluster1, const pandora::Cluster *const pCluster2) |
Get closest distance between a pair of clusters. More... | |
static float | GetClosestDistance (const pandora::CartesianVector &position, const pandora::ClusterList &clusterList) |
Get closest distance between a specified position and list of clusters. More... | |
static float | GetClosestDistance (const pandora::CartesianVector &position, const pandora::Cluster *const pCluster) |
Get closest distance between a specified position vector and the hits in a specified cluster. More... | |
static float | GetClosestDistance (const pandora::CartesianVector &position, const pandora::CaloHitList &caloHitList) |
Get closest distance between a specified position vector and the hits in a specified calo hit list. More... | |
static pandora::CartesianVector | GetClosestPosition (const pandora::CartesianVector &position, const pandora::ClusterList &clusterList) |
Get closest position in a list of clusters to a specified input position vector. More... | |
static pandora::CartesianVector | GetClosestPosition (const pandora::CartesianVector &position, const pandora::Cluster *const pCluster) |
Get closest position on a cluster to a specified input position vector. More... | |
static pandora::CartesianVector | GetClosestPosition (const pandora::CartesianVector &position, const pandora::CaloHitList &caloHitList) |
Get closest position of hits in a given calo hit list to a specified input position vector. More... | |
static void | GetClosestPositions (const pandora::Cluster *const pCluster1, const pandora::Cluster *const pCluster2, pandora::CartesianVector &position1, pandora::CartesianVector &position2) |
Get pair of closest positions for a pair of clusters. More... | |
static void | GetExtremalCoordinates (const pandora::ClusterList &clusterList, pandora::CartesianVector &innerCoordinate, pandora::CartesianVector &outerCoordinate) |
Get positions of the two most distant calo hits in a list of cluster (ordered by Z) More... | |
static void | GetExtremalCoordinates (const pandora::Cluster *const pCluster, pandora::CartesianVector &innerCoordinate, pandora::CartesianVector &outerCoordinate) |
Get positions of the two most distant calo hits in a cluster (ordered by Z) More... | |
static void | GetExtremalCoordinates (const pandora::OrderedCaloHitList &orderedCaloHitList, pandora::CartesianVector &innerCoordinate, pandora::CartesianVector &outerCoordinate) |
Get positions of the two most distant calo hits in an ordered calo hit list (ordered by Z) More... | |
static void | GetExtremalCoordinates (const pandora::CartesianPointVector &coordinateVector, pandora::CartesianVector &innerCoordinate, pandora::CartesianVector &outerCoordinate) |
Get positions of the two most distant points in a provided list (ordered by Z) More... | |
static void | GetClusterBoundingBox (const pandora::Cluster *const pCluster, pandora::CartesianVector &minimumCoordinate, pandora::CartesianVector &maximumCoordinate) |
Get minimum and maximum X, Y and Z positions of the calo hits in a cluster. More... | |
static void | GetCoordinateVector (const pandora::Cluster *const pCluster, pandora::CartesianPointVector &coordinateVector) |
Get vector of hit coordinates from an input cluster. More... | |
static void | GetCaloHitListInBoundingBox (const pandora::Cluster *const pCluster, const pandora::CartesianVector &lowerBound, const pandora::CartesianVector &upperBound, pandora::CaloHitList &caloHitList) |
Get list of Calo hits from an input cluster that are contained in a bounding box. The hits are sorted by position. More... | |
static void | GetDaughterVolumeIDs (const pandora::Cluster *const pCluster, UIntSet &daughterVolumeIds) |
Get the set of the daughter volumes that contains the cluster. More... | |
static pandora::StatusCode | GetAverageZ (const pandora::Cluster *const pCluster, const float xmin, const float xmax, float &averageZ) |
Get average Z positions of the calo hits in a cluster in range xmin to xmax. More... | |
static bool | SortByNOccupiedLayers (const pandora::Cluster *const pLhs, const pandora::Cluster *const pRhs) |
Sort clusters by number of occupied layers, and by inner layer, then energy in event of a tie. More... | |
static bool | SortByNHits (const pandora::Cluster *const pLhs, const pandora::Cluster *const pRhs) |
Sort clusters by number of hits, then layer span, then inner layer, then position, then pulse-height. More... | |
static bool | SortByLayerSpan (const pandora::Cluster *const pLhs, const pandora::Cluster *const pRhs) |
Sort clusters by layer span, then inner layer, then position, then pulse-height. More... | |
static bool | SortByInnerLayer (const pandora::Cluster *const pLhs, const pandora::Cluster *const pRhs) |
Sort clusters by inner layer, then position, then pulse-height. More... | |
static bool | SortByPosition (const pandora::Cluster *const pLhs, const pandora::Cluster *const pRhs) |
Sort clusters by position, then pulse-height. More... | |
static bool | SortByPulseHeight (const pandora::Cluster *const pLhs, const pandora::Cluster *const pRhs) |
Sort clusters by pulse-height. More... | |
static bool | SortHitsByPosition (const pandora::CaloHit *const pLhs, const pandora::CaloHit *const pRhs) |
Sort calo hits by their position (use Z, followed by X, followed by Y) More... | |
static bool | SortHitsByPositionInX (const pandora::CaloHit *const pLhs, const pandora::CaloHit *const pRhs) |
Sort calo hits by their position (use X, followed by Z, followed by Y) More... | |
static bool | SortHitsByPulseHeight (const pandora::CaloHit *const pLhs, const pandora::CaloHit *const pRhs) |
Sort calo hits by their pulse height. More... | |
static bool | SortCoordinatesByPosition (const pandora::CartesianVector &lhs, const pandora::CartesianVector &rhs) |
Sort cartesian vectors by their position (use Z, followed by X, followed by Y) More... | |
LArClusterHelper class.
Definition at line 19 of file LArClusterHelper.h.
typedef std::set<unsigned int> lar_content::LArClusterHelper::UIntSet |
Definition at line 22 of file LArClusterHelper.h.
|
static |
Get average Z positions of the calo hits in a cluster in range xmin to xmax.
pCluster | address of the cluster |
xmin | for range in x |
xmax | for range in x |
averageZ | to receive the average Z position |
Definition at line 364 of file LArClusterHelper.cc.
|
static |
Get list of Calo hits from an input cluster that are contained in a bounding box. The hits are sorted by position.
pCluster | address of the cluster |
lowerBound | one opposing corner of the bounding box |
upperBound | the other opposing corner of the bounding box |
caloHitList | the CaloHitList to be filled |
Definition at line 562 of file LArClusterHelper.cc.
|
static |
Get closest distance between clusters in a pair of cluster lists.
clusterList1 | the first cluster list |
clusterList2 | the second cluster list |
|
static |
Get closest distance between a specified cluster and list of clusters.
pCluster | address of the input cluster |
clusterList | list of input clusters |
|
static |
Get closest distance between a pair of clusters.
pCluster1 | address of the first cluster |
pCluster2 | address of the second cluster |
|
static |
Get closest distance between a specified position and list of clusters.
position | the position vector |
clusterList | list of input clusters |
|
static |
Get closest distance between a specified position vector and the hits in a specified cluster.
position | the position vector |
pCluster | address of the cluster |
|
static |
Get closest distance between a specified position vector and the hits in a specified calo hit list.
position | the position vector |
caloHitList | the list of calo hits |
|
static |
Get closest position in a list of clusters to a specified input position vector.
position | the position vector |
clusterList | list of input clusters |
|
static |
Get closest position on a cluster to a specified input position vector.
position | the position vector |
pCluster | address of the cluster |
|
static |
Get closest position of hits in a given calo hit list to a specified input position vector.
position | the position vector |
caloHitList | the list of calo hits |
|
static |
Get pair of closest positions for a pair of clusters.
pCluster1 | the address of the first cluster |
pCluster2 | the address of the second cluster |
the | closest position in the first cluster |
the | closest position in the second cluster |
Definition at line 283 of file LArClusterHelper.cc.
|
static |
Get minimum and maximum X, Y and Z positions of the calo hits in a cluster.
pCluster | address of the cluster |
the | minimum positions (x,y,z) |
the | maximum positions (x,y,z) |
Definition at line 332 of file LArClusterHelper.cc.
|
static |
Get the hit type associated with a two dimensional cluster.
pCluster | the address of the cluster |
Definition at line 21 of file LArClusterHelper.cc.
|
static |
Get the subset of clusters, from a provided list, that match the specified hit type.
inputClusters | the input cluster list |
hitType | the specified hit type |
clusterList | to receive the clusters |
Definition at line 54 of file LArClusterHelper.cc.
|
static |
Divide an input cluster list into separate u, v and w lists (exception raised if alternative hit type encountered)
inputClusters | the input cluster list |
clusterListU | to receive the u clusters |
clusterListV | to receive the v clusters |
clusterListW | to receive the w clusters |
Definition at line 35 of file LArClusterHelper.cc.
|
static |
Get vector of hit coordinates from an input cluster.
pCluster | address of the cluster |
coordinateVector |
Definition at line 549 of file LArClusterHelper.cc.
|
static |
Get the set of the daughter volumes that contains the cluster.
pCluster | address of the cluster |
daughterVolumeIds | output variable |
Definition at line 601 of file LArClusterHelper.cc.
|
static |
Get energy of cluster, based on length.
pCluster | address of the cluster |
Definition at line 104 of file LArClusterHelper.cc.
|
static |
Get positions of the two most distant calo hits in a list of cluster (ordered by Z)
clusterList | the input cluster list |
the | inner extremal position |
the | outer extremal position |
|
static |
Get positions of the two most distant calo hits in a cluster (ordered by Z)
pCluster | the input cluster |
the | inner extremal position |
the | outer extremal position |
|
static |
Get positions of the two most distant calo hits in an ordered calo hit list (ordered by Z)
orderedCaloHitList | the ordered calo hit list |
the | inner extremal position |
the | outer extremal position |
|
static |
Get positions of the two most distant points in a provided list (ordered by Z)
coordinateVector | the hit list |
the | inner extremal position |
the | outer extremal position |
|
static |
Fraction of occupied layers in cluster.
pCluster | address of the cluster |
|
static |
Fraction of occupied layers in a pair of clusters.
pCluster1 | address of the first cluster |
pCluster2 | address of the second cluster |
|
static |
Get number of layers spanned by cluster (1+Last-First)
pCluster | address of the cluster |
Definition at line 112 of file LArClusterHelper.cc.
|
static |
Get length of cluster.
pCluster | address of the cluster |
Definition at line 97 of file LArClusterHelper.cc.
|
static |
Get length squared of cluster.
pCluster | address of the cluster |
Definition at line 65 of file LArClusterHelper.cc.
|
static |
Sort clusters by inner layer, then position, then pulse-height.
pLhs | address of first cluster |
pRhs | address of second cluster |
Definition at line 658 of file LArClusterHelper.cc.
|
static |
Sort clusters by layer span, then inner layer, then position, then pulse-height.
pLhs | address of first cluster |
pRhs | address of second cluster |
Definition at line 645 of file LArClusterHelper.cc.
|
static |
Sort clusters by number of hits, then layer span, then inner layer, then position, then pulse-height.
pLhs | address of first cluster |
pRhs | address of second cluster |
Definition at line 632 of file LArClusterHelper.cc.
|
static |
Sort clusters by number of occupied layers, and by inner layer, then energy in event of a tie.
pLhs | address of first cluster |
pRhs | address of second cluster |
Definition at line 619 of file LArClusterHelper.cc.
|
static |
Sort clusters by position, then pulse-height.
pLhs | address of first cluster |
pRhs | address of second cluster |
Definition at line 671 of file LArClusterHelper.cc.
|
static |
Sort clusters by pulse-height.
pLhs | address of first cluster |
pRhs | address of second cluster |
Definition at line 701 of file LArClusterHelper.cc.
|
static |
Sort cartesian vectors by their position (use Z, followed by X, followed by Y)
lhs | first point |
rhs | second point |
Definition at line 747 of file LArClusterHelper.cc.
|
static |
Sort calo hits by their position (use Z, followed by X, followed by Y)
pLhs | address of first calo hit |
pRhs | address of second calo hit |
Definition at line 708 of file LArClusterHelper.cc.
|
static |
Sort calo hits by their position (use X, followed by Z, followed by Y)
pLhs | address of first calo hit |
pRhs | address of second calo hit |
Definition at line 727 of file LArClusterHelper.cc.
|
static |
Sort calo hits by their pulse height.
pLhs | address of first calo hit |
pRhs | address of second calo hit |
Definition at line 739 of file LArClusterHelper.cc.