LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
|
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 pandora::CartesianVector | GetClosestPosition (const pandora::CartesianVector &position, const pandora::OrderedCaloHitList &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 388 of file LArClusterHelper.cc.
References f.
Referenced by lar_content::ThreeViewRemnantsAlgorithm::CalculateOverlapResult(), lar_content::ParticleRecoveryAlgorithm::CheckConsistency(), and lar_content::CosmicRayShowerMatchingAlgorithm::CheckMatchedClusters3D().
|
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 586 of file LArClusterHelper.cc.
Referenced by lar_content::TwoViewTransverseTracksAlgorithm::TwoViewTransverseTracksAlgorithm().
|
static |
Get closest distance between clusters in a pair of cluster lists.
clusterList1 | the first cluster list |
clusterList2 | the second cluster list |
Referenced by lar_content::LArMuonLeadingHelper::AddInPostBremsstrahlungHits(), lar_content::TrackRefinementBaseAlgorithm::AddToNearestCluster(), lar_content::ShowerGrowingAlgorithm::AreClustersAssociated(), lar_content::NeutrinoDaughterVerticesAlgorithm::BuildDaughterTrack(), lar_content::OvershootSplittingAlgorithm::BuildIntersectionMap(), lar_content::SplitShowersTool::CheckClusterProximities(), lar_content::CosmicRayTrackMatchingAlgorithm::CheckMatchedClusters3D(), lar_content::NearbyClusterMopUpAlgorithm::ClusterMopUp(), lar_content::CosmicRayRemovalTool::CollectHitsFromDeltaRay(), lar_content::TwoViewCosmicRayRemovalTool::CollectHitsFromDeltaRay(), lar_content::NViewDeltaRayMatchingAlgorithm< T >::CollectStrayClusters(), lar_content::CosmicRaySplittingAlgorithm::ConfirmSplitPosition(), lar_content::CosmicRayRemovalTool::CreateSeed(), lar_content::TwoViewCosmicRayRemovalTool::CreateSeed(), lar_content::MuonLeadingEventValidationAlgorithm::FillContaminationHitsDistance(), lar_content::AmbiguousRegionFeatureTool::FindAmbiguousContinuousSpine(), lar_content::DeltaRaySplittingAlgorithm::FindBestSplitPosition(), lar_content::CrossedTrackSplittingAlgorithm::FindBestSplitPosition(), lar_content::ElectronInitialRegionRefinementAlgorithm::FindContinuousPath(), lar_content::DeltaRayMergeTool::FindVertices(), lar_content::TrackRefinementBaseAlgorithm::FragmentRemnantCluster(), lar_content::LocalAsymmetryFeatureTool::GetAsymmetryForView(), lar_content::GlobalAsymmetryFeatureTool::GetAsymmetryForView(), lar_content::DeltaRayIdentificationAlgorithm::GetClosestDistance(), lar_content::LArMuonLeadingHelper::GetClosestPosition(), lar_content::DeltaRayMatchingAlgorithm::GetDistanceSquaredToPfo(), lar_content::TransverseExtensionAlgorithm::GetListOfCleanClusters(), lar_content::DeltaRayGrowingAlgorithm::GetListOfSeedClusters(), lar_content::NViewDeltaRayMatchingAlgorithm< T >::GetProjectedPositions(), lar_content::DeltaRayParentAlgorithm::GetTwoDSeparation(), lar_content::CutClusterCharacterisationAlgorithm::GetVertexDistance(), lar_content::SimpleClusterMergingAlgorithm::IsAssociated(), lar_content::DeltaRayMergeTool::IsBrokenCluster(), lar_content::UnambiguousDeltaRayTool::IsConnected(), lar_content::ConnectedRemnantsTool::IsConnected(), lar_content::DeltaRayMergeTool::IsConnected(), lar_content::DeltaRayMergeTool::IsHiddenByTrack(), lar_content::TwoViewCosmicRayRemovalTool::PassElementChecks(), lar_content::RemovalBaseTool::PassElementChecks(), lar_content::OneViewDeltaRayMatchingAlgorithm::PerformOneViewMatching(), lar_content::ClusterGrowingAlgorithm::PopulateClusterMergeMap(), lar_content::CosmicRayRemovalTool::ReclusterRemnant(), lar_content::TwoViewCosmicRayRemovalTool::ReclusterRemnant(), lar_content::VertexRefinementAlgorithm::RefineVertexTwoD(), lar_content::BranchAssociatedPfosTool::Run(), lar_content::CosmicRayTrackMatchingAlgorithm::SelectCleanClusters(), and lar_content::ShowerAsymmetryFeatureTool::ShouldUseShowerCluster().
|
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 |
Referenced by lar_content::NeutrinoHierarchyAlgorithm::AdjustVertexAndPfoInfo(), lar_content::CosmicRayVertexBuildingAlgorithm::BuildCosmicRayDaughter(), lar_content::NeutrinoDaughterVerticesAlgorithm::BuildDaughterShower(), lar_content::CrossedTrackSplittingAlgorithm::FindCandidateSplitPositions(), lar_content::CosmicRaySplittingAlgorithm::GetCaloHitListToMove(), lar_content::DeltaRayExtensionAlgorithm::GetExtremalCoordinatesFromCache(), lar_content::CosmicRaySplittingAlgorithm::IdentifyCrossedTracks(), lar_content::TransverseAssociationAlgorithm::IsAssociated(), lar_content::TransverseAssociationAlgorithm::IsOverlapping(), lar_content::VertexRefinementAlgorithm::RefineVertexTwoD(), and lar_content::TrackConsolidationAlgorithm::TrackConsolidationAlgorithm().
|
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 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 307 of file LArClusterHelper.cc.
References f.
Referenced by lar_content::NeutrinoDaughterVerticesAlgorithm::BuildDaughterShower(), lar_content::EndAssociatedPfosTool::IsCloseToParentEndpoint(), lar_content::DeltaRayRemovalTool::IsContaminated(), lar_content::CosmicRayRemovalTool::IsContaminated(), and lar_content::TwoViewCosmicRayRemovalTool::IsContaminated().
|
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 356 of file LArClusterHelper.cc.
Referenced by lar_content::ThreeViewTrackFragmentsAlgorithm::CheckMatchedClusters(), lar_content::TrainedVertexSelectionAlgorithm::GetLegacyEventShapeFeatures(), and lar_content::CosmicRayTrackRecoveryAlgorithm::SelectCleanClusters().
|
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.
Referenced by lar_content::ParticleRecoveryAlgorithm::SimpleOverlapTensor::AddAssociation(), lar_content::NViewDeltaRayMatchingAlgorithm< T >::AddInStrayClusters(), lar_content::OneViewDeltaRayMatchingAlgorithm::AddIntoExistingDeltaRay(), lar_content::DeltaRayMatchingContainers::AddToClusterMap(), lar_content::DeltaRayMatchingContainers::AddToClusterProximityMap(), lar_content::DeltaRayMatchingAlgorithm::AddToDaughterPfo(), lar_content::NViewTrackMatchingAlgorithm< T >::AddToSlidingFitCache(), lar_content::ThreeViewShowersAlgorithm::AddToSlidingFitCache(), lar_content::DeltaRayMatchingAlgorithm::AreClustersMatched(), lar_content::EventSlicingTool::AssignRemainingHitsToSlices(), lar_content::CrossGapsExtensionAlgorithm::BuildPointingClusterList(), lar_content::TrackHitsBaseTool::BuildSlidingFitMap(), lar_content::CosmicRaySplittingAlgorithm::BuildSlidingFitResultMap(), lar_content::TwoDSlidingFitMultiSplitAlgorithm::BuildSlidingFitResultMap(), lar_content::CosmicRayTrackRecoveryAlgorithm::BuildSlidingFitResultMap(), lar_content::VertexBasedPfoRecoveryAlgorithm::BuildSlidingFitResultMap(), lar_content::TwoDSlidingFitSplittingAndSwitchingAlgorithm::BuildSlidingFitResultMap(), lar_content::TwoDSlidingFitSplittingAndSplicingAlgorithm::BuildSlidingFitResultMap(), lar_content::TwoDSlidingFitConsolidationAlgorithm::BuildSlidingLinearFits(), lar_content::ParticleRecoveryAlgorithm::CalculateEffectiveSpan(), lar_content::TwoDLinearFitFeatureTool::CalculateVariablesSlidingLinearFit(), lar_content::ThreeDLinearFitFeatureTool::CalculateVariablesSlidingLinearFit(), lar_content::SplitShowersTool::CheckClusterVertexRelations(), lar_content::CosmicRayShowerMatchingAlgorithm::CheckMatchedClusters3D(), lar_content::CosmicRayTrackMatchingAlgorithm::CheckMatchedClusters3D(), lar_content::TracksCrossingGapsTool::CheckXPositionInGap(), lar_content::ConeClusterMopUpAlgorithm::ClusterMopUp(), lar_content::NearbyClusterMopUpAlgorithm::ClusterMopUp(), lar_content::BoundedClusterMopUpAlgorithm::ClusterMopUp(), lar_content::NViewDeltaRayMatchingAlgorithm< T >::CollectStrayClusters(), lar_content::EventSlicingTool::CopyPfoHitsToSlices(), lar_content::OneViewDeltaRayMatchingAlgorithm::CreateDeltaRay(), lar_content::CandidateVertexCreationAlgorithm::CreateEndpointCandidates(), lar_content::CandidateVertexCreationAlgorithm::CreateEndpointVertex(), lar_content::EventSlicingTool::CreateSlices(), lar_content::CutPfoCharacterisationAlgorithm::CutPfoCharacterisationAlgorithm(), lar_content::CrossGapsExtensionAlgorithm::FillClusterAssociationMatrix(), lar_content::DeltaRayMatchingContainers::FillClusterProximityMap(), lar_content::TransverseAssociationAlgorithm::FillTransverseClusterList(), lar_content::VertexSplittingAlgorithm::FindBestSplitPosition(), lar_content::DeltaRayMergeTool::FindVertices(), lar_content::TwoViewDeltaRayMatchingAlgorithm::FormThirdViewCluster(), lar_content::ShowerGrowingAlgorithm::GetAllVertexSeedCandidates(), lar_content::VertexBasedPfoRecoveryAlgorithm::GetAvailableClusters(), lar_content::TwoViewDeltaRayMatchingAlgorithm::GetBestMatchedCluster(), lar_content::VertexBasedPfoMopUpAlgorithm::GetClusterAssociation(), lar_content::VertexRefinementAlgorithm::GetClusterLists(), lar_content::ClusterMopUpBaseAlgorithm::GetClusterLists(), lar_content::VertexSelectionBaseAlgorithm::GetClusterLists(), lar_content::SlidingConePfoMopUpAlgorithm::GetClusterMergeMap(), lar_content::SlidingConeClusterMopUpAlgorithm::GetClusterMergeMap(), lar_content::ParticleRecoveryAlgorithm::SimpleOverlapTensor::GetConnectedElements(), lar_content::DeltaRayMatchingAlgorithm::GetDistanceSquaredToPfo(), lar_content::ShowerGrowingAlgorithm::GetFigureOfMerit(), lar_content::ParticleRecoveryAlgorithm::GetInputClusters(), lar_content::VertexBasedPfoMopUpAlgorithm::GetInputPfos(), lar_content::TransverseExtensionAlgorithm::GetListOfCleanClusters(), lar_content::LongitudinalAssociationAlgorithm::GetListOfCleanClusters(), lar_content::DeltaRayGrowingAlgorithm::GetListOfSeedClusters(), lar_content::OneViewDeltaRayMatchingAlgorithm::GetNearbyAvailableClusters(), lar_content::NViewDeltaRayMatchingAlgorithm< T >::GetNearbyMuonPfos(), lar_content::CheatingPfoCreationAlgorithm::GetNHitTypesAboveThreshold(), lar_content::NeutrinoPropertiesAlgorithm::GetNTwoDHitsInPfoChain(), lar_pandora::LArPandoraOutput::GetPandoraToArtHitMap(), lar_content::VertexBasedPfoMopUpAlgorithm::GetPfoAssociations(), lar_content::ThreeViewTrackFragmentsAlgorithm::GetProjectedPositions(), lar_content::NViewDeltaRayMatchingAlgorithm< T >::GetProjectedPositions(), lar_content::MissingTrackSegmentTool::GetSlidingFitResultMap(), lar_content::CutClusterCharacterisationAlgorithm::GetVertexDistance(), lar_content::TrackRefinementBaseAlgorithm::InitialiseContainers(), lar_content::CrossGapsAssociationAlgorithm::IsAssociated(), lar_content::CrossGapsExtensionAlgorithm::IsAssociated(), lar_content::PfoCharacterisationBaseAlgorithm::IsClearTrack3x2D(), lar_content::DeltaRayMergeTool::IsConnected(), lar_content::OneViewDeltaRayMatchingAlgorithm::IsDeltaRayPfo(), lar_content::OneViewDeltaRayMatchingAlgorithm::IsMuonPfo(), lar_content::CrossGapsAssociationAlgorithm::IsNearCluster(), lar_content::ParticleRecoveryAlgorithm::IsOverlap(), lar_content::UndershootTracksTool::IsThreeDKink(), lar_content::OvershootTracksTool::IsThreeDKink(), lar_content::TwoViewThreeDKinkTool::IsThreeDKink(), lar_content::TransverseAssociationAlgorithm::IsTransverseAssociated(), lar_content::SlidingConeClusterMopUpAlgorithm::MakeClusterMerges(), lar_content::NViewTrackMatchingAlgorithm< T >::MakeClusterSplits(), lar_content::CosmicRayTrackRecoveryAlgorithm::MatchClusters(), lar_content::VertexBasedPfoRecoveryAlgorithm::MatchThreeViews(), lar_content::VertexBasedPfoRecoveryAlgorithm::MatchTwoViews(), lar_content::OneViewDeltaRayMatchingAlgorithm::MergeClusterGroup(), lar_content::ThreeDChargeFeatureTool::OrderCaloHitsByDistanceToVertex(), lar_content::CosmicRayBaseMatchingAlgorithm::Particle::Particle(), lar_content::MissingTrackSegmentTool::Particle::Particle(), lar_content::VertexBasedPfoRecoveryAlgorithm::Particle::Particle(), lar_content::DeltaRayMatchingAlgorithm::Particle::Particle(), lar_content::TrackSplittingTool::PassesChecks(), lar_content::CrossGapsAssociationAlgorithm::PopulateClusterAssociationMap(), lar_content::NViewDeltaRayMatchingAlgorithm< T >::PrepareInputClusters(), lar_content::DeltaRayMatchingContainers::RemoveClusterFromContainers(), lar_content::TwoViewMatchingControl< T >::SelectAllInputClusters(), lar_content::CandidateVertexCreationAlgorithm::SelectClusters(), lar_content::VertexBasedPfoRecoveryAlgorithm::SelectClusters(), lar_content::VertexBasedPfoRecoveryAlgorithm::SelectVertexClusters(), lar_content::ThreeDHitCreationAlgorithm::SeparateTwoDHits(), lar_content::OvershootTracksTool::SetSplitPosition(), lar_content::MasterAlgorithm::StitchPfos(), lar_content::TrackConsolidationAlgorithm::TrackConsolidationAlgorithm(), lar_content::TwoDSlidingFitSplittingAlgorithm::TwoDSlidingFitSplittingAlgorithm(), lar_content::ThreeViewTrackFragmentsAlgorithm::UpdateForNewCluster(), lar_content::ThreeViewMatchingControl< T >::UpdateForNewCluster(), lar_content::TwoViewMatchingControl< T >::UpdateForNewCluster(), and lar_content::NViewDeltaRayMatchingAlgorithm< T >::UpdateUponDeletion().
|
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.
Referenced by lar_content::CosmicRayTrackRecoveryAlgorithm::MergeClusters().
|
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 573 of file LArClusterHelper.cc.
Referenced by lar_content::VertexSelectionBaseAlgorithm::ShowerCluster::GetClusterListCoordinateVector(), lar_content::ThreeDSlidingFitResult::GetGlobalDirection(), lar_content::TwoViewTransverseTracksAlgorithm::GetPrimaryAxisDotDriftAxis(), lar_content::TwoDSlidingShowerFitResult::GetShowerEdges(), lar_content::CandidateVertexCreationAlgorithm::GetSpacepoints(), lar_content::VertexRefinementAlgorithm::RefineVertexTwoD(), and lar_content::TwoDSlidingFitResult::TwoDSlidingFitResult().
|
static |
Get the set of the daughter volumes that contains the cluster.
pCluster | address of the cluster |
daughterVolumeIds | output variable |
Definition at line 625 of file LArClusterHelper.cc.
References lar_content::LArCaloHit::GetDaughterVolumeId().
|
static |
Get energy of cluster, based on length.
pCluster | address of the cluster |
Definition at line 104 of file LArClusterHelper.cc.
References f.
|
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 |
Referenced by lar_content::CosmicRayVertexBuildingAlgorithm::BuildCosmicRayParent(), lar_content::NeutrinoDaughterVerticesAlgorithm::BuildDaughterTrack(), lar_content::CosmicRayTrackMatchingAlgorithm::CheckMatchedClusters3D(), lar_content::DeltaRayExtensionAlgorithm::GetExtremalCoordinatesFromCache(), lar_content::LArHitWidthHelper::GetExtremalCoordinatesX(), lar_content::TransverseAssociationAlgorithm::GetExtremalCoordinatesXZ(), lar_content::TransverseExtensionAlgorithm::GetListOfCleanClusters(), lar_content::DeltaRayIdentificationAlgorithm::GetTwoDVertices(), lar_content::CosmicRaySplittingAlgorithm::IdentifyCrossedTracks(), lar_content::CosmicRayTrackMatchingAlgorithm::MatchClusters(), lar_content::CosmicRayTrackMatchingAlgorithm::SelectCleanClusters(), and lar_content::ShowerGrowingAlgorithm::SortClusters().
|
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 |
Referenced by lar_content::LongitudinalExtensionAlgorithm::FillClusterAssociationMatrix(), lar_content::LongitudinalExtensionAlgorithm::GetListOfCleanClusters(), and lar_content::LArParticleIdPlugins::LArMuonId::LArMuonId().
|
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.
References f.
|
static |
Get length of cluster.
pCluster | address of the cluster |
Definition at line 97 of file LArClusterHelper.cc.
Referenced by lar_content::TrackMergeRefinementAlgorithm::FindBestClusterAssociation(), and lar_content::TrainedVertexSelectionAlgorithm::IsClusterShowerLike().
|
static |
Get length squared of cluster.
pCluster | address of the cluster |
Definition at line 65 of file LArClusterHelper.cc.
Referenced by lar_content::TrackRefinementBaseAlgorithm::AddHitsToMainTrack(), lar_content::CrossGapsExtensionAlgorithm::FillClusterAssociationMatrix(), lar_content::DeltaRayMatchingAlgorithm::FindBestParentPfo(), lar_content::OvershootSplittingAlgorithm::GetListOfCleanClusters(), lar_content::LongitudinalExtensionAlgorithm::GetListOfCleanClusters(), lar_content::DeltaRayExtensionAlgorithm::GetListOfCleanClusters(), lar_content::CrossGapsExtensionAlgorithm::GetListOfCleanClusters(), lar_content::CosmicRayExtensionAlgorithm::GetListOfCleanClusters(), lar_content::TransverseExtensionAlgorithm::GetListOfCleanClusters(), lar_content::CosmicRaySplittingAlgorithm::GetListOfCleanClusters(), lar_content::TwoDSlidingFitSplittingAndSwitchingAlgorithm::GetListOfCleanClusters(), lar_content::TwoDSlidingFitSplittingAndSplicingAlgorithm::GetListOfCleanClusters(), lar_content::DeltaRayGrowingAlgorithm::GetListOfSeedClusters(), lar_content::TrackRefinementBaseAlgorithm::InitialiseContainers(), lar_content::CosmicRayTrackMatchingAlgorithm::SelectCleanClusters(), lar_content::CosmicRayTrackRecoveryAlgorithm::SelectCleanClusters(), lar_content::CandidateVertexCreationAlgorithm::SelectClusters(), lar_content::ThreeViewShowersAlgorithm::SelectInputClusters(), lar_content::NViewTrackMatchingAlgorithm< T >::SelectInputClusters(), lar_content::TwoDSlidingFitConsolidationAlgorithm::SortInputClusters(), lar_content::ParticleRecoveryAlgorithm::StandardClusterSelection(), lar_content::TrackConsolidationAlgorithm::TrackConsolidationAlgorithm(), and lar_content::TwoDSlidingFitSplittingAlgorithm::TwoDSlidingFitSplittingAlgorithm().
|
static |
Sort clusters by inner layer, then position, then pulse-height.
pLhs | address of first cluster |
pRhs | address of second cluster |
Definition at line 682 of file LArClusterHelper.cc.
Referenced by lar_content::CrossGapsAssociationAlgorithm::GetListOfCleanClusters(), and lar_content::LongitudinalAssociationAlgorithm::GetListOfCleanClusters().
|
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 669 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 656 of file LArClusterHelper.cc.
Referenced by lar_content::TwoDSlidingFitConsolidationAlgorithm::AddHitsToClusters(), lar_content::NeutrinoHierarchyAlgorithm::AdjustVertexAndPfoInfo(), lar_content::ClusterAssociationAlgorithm::AmbiguousPropagation(), lar_content::SplitShowersTool::ApplyChanges(), lar_content::ThreeDKinkBaseTool::ApplyChanges(), lar_content::TwoViewThreeDKinkTool::ApplyChanges(), lar_content::EventSlicingTool::AssignRemainingHitsToSlices(), lar_content::OvershootSplittingAlgorithm::BuildIntersectionMap(), lar_content::TrackHitsBaseTool::BuildSlidingFitMap(), lar_content::OvershootSplittingAlgorithm::BuildSortedIntersectionMap(), lar_content::VertexSelectionBaseAlgorithm::CalculateClusterSlidingFits(), lar_content::ConeClusterMopUpAlgorithm::ClusterMopUp(), lar_content::NearbyClusterMopUpAlgorithm::ClusterMopUp(), lar_content::BoundedClusterMopUpAlgorithm::ClusterMopUp(), lar_pandora::LArPandoraOutput::CollectClusters(), lar_content::EventSlicingTool::CopyPfoHitsToSlices(), lar_content::TrackMergeRefinementAlgorithm::CreateMainTrack(), lar_content::ParticleRecoveryAlgorithm::ExamineTensor(), lar_content::CrossGapsExtensionAlgorithm::FillClusterMergeMap(), lar_content::DeltaRayExtensionAlgorithm::FillClusterMergeMap(), lar_content::LongitudinalExtensionAlgorithm::FillClusterMergeMap(), lar_content::CosmicRayExtensionAlgorithm::FillClusterMergeMap(), lar_content::TransverseExtensionAlgorithm::FillClusterMergeMap(), lar_content::TransverseAssociationAlgorithm::FillReducedAssociationMap(), lar_content::TransverseAssociationAlgorithm::FillSymmetricAssociationMap(), lar_content::ClearTrackFragmentsTool::GetAffectedKeyClusters(), lar_content::TransverseAssociationAlgorithm::GetAssociatedClusters(), lar_content::CosmicRayTrackRecoveryAlgorithm::GetAvailableClusters(), lar_content::VertexBasedPfoRecoveryAlgorithm::GetAvailableClusters(), lar_content::SlidingConeClusterMopUpAlgorithm::GetAvailableTwoDClusters(), lar_content::DeltaRayMatchingAlgorithm::GetClusters(), lar_content::EventSlicingTool::GetClusterSliceList(), lar_content::ShowerGrowingAlgorithm::GetFigureOfMerit(), lar_content::EventSlicingTool::GetKDTreeEntries3D(), lar_content::OvershootSplittingAlgorithm::GetListOfCleanClusters(), lar_content::CrossGapsExtensionAlgorithm::GetListOfCleanClusters(), lar_content::DeltaRayGrowingAlgorithm::GetListOfCleanClusters(), lar_content::DeltaRayExtensionAlgorithm::GetListOfCleanClusters(), lar_content::LongitudinalExtensionAlgorithm::GetListOfCleanClusters(), lar_content::SimpleClusterGrowingAlgorithm::GetListOfCleanClusters(), lar_content::SimpleClusterMergingAlgorithm::GetListOfCleanClusters(), lar_content::CosmicRayExtensionAlgorithm::GetListOfCleanClusters(), lar_content::TransverseExtensionAlgorithm::GetListOfCleanClusters(), lar_content::CosmicRaySplittingAlgorithm::GetListOfCleanClusters(), lar_content::TwoDSlidingFitSplittingAndSwitchingAlgorithm::GetListOfCleanClusters(), lar_content::TransverseAssociationAlgorithm::GetListOfCleanClusters(), lar_content::TwoDSlidingFitSplittingAndSplicingAlgorithm::GetListOfCleanClusters(), lar_content::ClusterGrowingAlgorithm::GetListOfNonSeedClusters(), lar_content::DeltaRayGrowingAlgorithm::GetListOfSeedClusters(), lar_content::SimpleClusterGrowingAlgorithm::GetListOfSeedClusters(), lar_content::ThreeViewTrackFragmentsAlgorithm::GetMatchedClusters(), lar_content::MissingTrackSegmentTool::GetSegmentOverlapMap(), lar_content::SlidingConePfoMopUpAlgorithm::GetThreeDClusters(), lar_content::SlidingConeClusterMopUpAlgorithm::GetThreeDClusters(), lar_content::CrossGapsAssociationAlgorithm::IsExtremalCluster(), lar_content::HitWidthClusterMergingAlgorithm::IsExtremalCluster(), lar_content::LongitudinalAssociationAlgorithm::IsExtremalCluster(), lar_content::TransverseAssociationAlgorithm::IsExtremalCluster(), lar_content::ClusterMopUpBaseAlgorithm::MakeClusterMerges(), lar_content::SlidingConeClusterMopUpAlgorithm::MakeClusterMerges(), lar_content::NViewTrackMatchingAlgorithm< T >::MakeClusterSplits(), lar_content::MissingTrackSegmentTool::MakeDecisions(), lar_content::SlidingConePfoMopUpAlgorithm::MakePfoMerges(), lar_content::ClusterGrowingAlgorithm::MergeClusters(), lar_content::SlidingConeClusterMopUpAlgorithm::ClusterMerge::operator<(), lar_content::SlidingConePfoMopUpAlgorithm::ClusterMerge::operator<(), lar_content::ThreeViewTrackFragmentsAlgorithm::PerformMainLoop(), lar_content::ThreeViewMatchingControl< T >::PerformMainLoop(), lar_content::TwoViewMatchingControl< T >::PerformMainLoop(), lar_content::OneViewDeltaRayMatchingAlgorithm::PerformOneViewMatching(), lar_content::OvershootSplittingAlgorithm::PopulateSplitPositionMap(), lar_content::ShowerGrowingAlgorithm::ProcessSeedAssociationDetails(), lar_content::ClearTrackFragmentsTool::ProcessTensorElement(), lar_content::TwoDSlidingFitSplittingAndSplicingAlgorithm::PruneClusterExtensionList(), lar_content::TwoDSlidingFitConsolidationAlgorithm::RebuildClusters(), lar_content::TwoDSlidingFitConsolidationAlgorithm::RemoveHitsFromClusters(), lar_content::HitWidthClusterMergingAlgorithm::RemoveShortcutAssociations(), lar_content::TrackMergeRefinementAlgorithm::Run(), lar_content::CandidateVertexCreationAlgorithm::SelectClusters(), lar_content::TwoDSlidingFitConsolidationAlgorithm::SortInputClusters(), lar_content::TransverseAssociationAlgorithm::SortInputClusters(), lar_content::TwoDSlidingFitMultiSplitAlgorithm::SplitClusters(), lar_content::ThreeViewTrackFragmentsAlgorithm::UpdateForNewCluster(), lar_content::ThreeViewMatchingControl< T >::UpdateForNewCluster(), and lar_content::TwoViewMatchingControl< T >::UpdateForNewCluster().
|
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 643 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 695 of file LArClusterHelper.cc.
Referenced by lar_content::TrackMergeRefinementAlgorithm::FindBestClusterAssociation().
|
static |
Sort clusters by pulse-height.
pLhs | address of first cluster |
pRhs | address of second cluster |
Definition at line 725 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 771 of file LArClusterHelper.cc.
Referenced by lar_content::CandidateVertexCreationAlgorithm::GetSpacepoints(), and lar_content::ClusterAssociation::operator<().
|
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 732 of file LArClusterHelper.cc.
Referenced by lar_content::TrackClusterCreationAlgorithm::AddFilteredCaloHits(), lar_content::EnergyDepositionAsymmetryFeatureTool::CalculateAsymmetry(), lar_content::AsymmetryFeatureBaseTool::CalculateAsymmetry(), lar_content::IsolatedClusterMopUpAlgorithm::ClusterMopUp(), lar_pandora::LArPandoraOutput::Collect3DHits(), lar_content::SimpleClusterCreationAlgorithm::CollectAssociatedHits(), lar_content::SimpleClusterCreationAlgorithm::CreateClusters(), lar_content::TrackClusterCreationAlgorithm::CreateClusters(), lar_content::CosmicRayRemovalTool::CreateSeed(), lar_content::TwoViewCosmicRayRemovalTool::CreateSeed(), lar_content::TrackClusterCreationAlgorithm::FilterCaloHits(), lar_content::CrossedTrackSplittingAlgorithm::FindCandidateSplitPositions(), lar_content::ThreeViewTrackFragmentsAlgorithm::GetFragmentOverlapResult(), lar_pandora::LArPandoraOutput::GetHitsInCluster(), lar_content::ThreeViewTrackFragmentsAlgorithm::GetMatchedHits(), lar_content::TrainedVertexSelectionAlgorithm::GetShowerLikeClusterEndPoints(), lar_content::TrackClusterCreationAlgorithm::IdentifyJoins(), lar_content::TrackClusterCreationAlgorithm::MakePrimaryAssociations(), lar_content::TrackClusterCreationAlgorithm::MakeSecondaryAssociations(), and lar_content::ThreeDHitCreationAlgorithm::SeparateTwoDHits().
|
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 751 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 763 of file LArClusterHelper.cc.
Referenced by lar_content::TrackRefinementBaseAlgorithm::SortByDistanceAlongLine::operator()().