LArSoft
v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
|
CosmicRayExtensionAlgorithm class. More...
#include "CosmicRayExtensionAlgorithm.h"
Public Member Functions | |
CosmicRayExtensionAlgorithm () | |
Default constructor. More... | |
Protected Types | |
typedef std::unordered_map< const pandora::Cluster *, ClusterAssociation > | ClusterAssociationMap |
typedef std::unordered_map< const pandora::Cluster *, ClusterAssociationMap > | ClusterAssociationMatrix |
typedef std::unordered_map< const pandora::Cluster *, pandora::ClusterList > | ClusterMergeMap |
Protected Member Functions | |
void | PopulateClusterMergeMap (const pandora::ClusterVector &clusterVector, ClusterMergeMap &clusterMergeMatrix) const |
Form associations between pointing clusters. More... | |
virtual pandora::StatusCode | Run () |
void | MergeClusters (pandora::ClusterVector &clusterVector, ClusterMergeMap &clusterMergeMap) const |
Merge associated clusters. More... | |
void | CollectAssociatedClusters (const pandora::Cluster *const pSeedCluster, const ClusterMergeMap &clusterMergeMap, pandora::ClusterList &associatedClusterList) const |
Collect up all clusters associations related to a given seed cluster. More... | |
void | CollectAssociatedClusters (const pandora::Cluster *const pSeedCluster, const pandora::Cluster *const pCurrentCluster, const ClusterMergeMap &clusterMergeMap, const pandora::ClusterSet &clusterVetoList, pandora::ClusterList &associatedClusterList) const |
Collect up all clusters associations related to a given seed cluster. More... | |
void | GetSortedListOfCleanClusters (const pandora::ClusterVector &inputClusters, pandora::ClusterVector &outputClusters) const |
Sort the selected clusters, so that they have a well-defined ordering. More... | |
Protected Attributes | |
std::string | m_inputClusterListName |
The name of the input cluster list. If not specified, will access current list. More... | |
Private Member Functions | |
void | GetListOfCleanClusters (const pandora::ClusterList *const pClusterList, pandora::ClusterVector &clusterVector) const |
Populate cluster vector with subset of cluster list, containing clusters judged to be clean. More... | |
void | FillClusterAssociationMatrix (const pandora::ClusterVector &clusterVector, ClusterAssociationMatrix &clusterAssociationMatrix) const |
Fill the cluster association matrix. More... | |
void | FillClusterMergeMap (const ClusterAssociationMatrix &clusterAssociationMatrix, ClusterMergeMap &clusterMergeMap) const |
Fill the cluster merge map. More... | |
void | FillClusterAssociationMatrix (const LArPointingCluster &clusterI, const LArPointingCluster &clusterJ, ClusterAssociationMatrix &clusterAssociationMatrix) const |
Form association between two pointing clusters. More... | |
float | CalculateRms (const pandora::Cluster *const pCluster, const pandora::CartesianVector &position, const pandora::CartesianVector &direction) const |
Calculate RMS deviation of a cluster with respect to the reference line. More... | |
pandora::StatusCode | ReadSettings (const pandora::TiXmlHandle xmlHandle) |
Private Attributes | |
float | m_minClusterLength |
float | m_minSeedClusterLength |
float | m_maxLongitudinalDisplacement |
float | m_maxTransverseDisplacement |
float | m_minCosRelativeAngle |
float | m_maxAverageRms |
CosmicRayExtensionAlgorithm class.
Definition at line 23 of file CosmicRayExtensionAlgorithm.h.
|
protectedinherited |
Definition at line 97 of file ClusterExtensionAlgorithm.h.
|
protectedinherited |
Definition at line 98 of file ClusterExtensionAlgorithm.h.
|
protectedinherited |
Definition at line 27 of file ClusterMergingAlgorithm.h.
lar_content::CosmicRayExtensionAlgorithm::CosmicRayExtensionAlgorithm | ( | ) |
Default constructor.
Definition at line 21 of file CosmicRayExtensionAlgorithm.cc.
|
private |
Calculate RMS deviation of a cluster with respect to the reference line.
pCluster | the input cluster |
position | the intercept of the reference line |
direction | the direction of the reference line |
Definition at line 343 of file CosmicRayExtensionAlgorithm.cc.
References f.
Referenced by FillClusterAssociationMatrix().
|
protectedinherited |
Collect up all clusters associations related to a given seed cluster.
pSeedCluster | pointer to the initial cluster |
clusterMergeMap | the map of cluster associations |
associatedClusterList | the output list of associated clusters |
|
protectedinherited |
Collect up all clusters associations related to a given seed cluster.
pSeedCluster | pointer to the initial cluster |
pCurrentCluster | pointer to the current cluster |
clusterMergeMap | the map of cluster associations |
clusterVetoList | the list of clusters that have already been merged |
associatedClusterList | the output list of associated clusters |
|
privatevirtual |
Fill the cluster association matrix.
clusterVector | the input vector of clusters |
clusterAssociationMatrix | the matrix of associations |
Implements lar_content::ClusterExtensionAlgorithm.
Referenced by GetListOfCleanClusters().
|
private |
Form association between two pointing clusters.
clusterI | the first pointing cluster |
clusterJ | the second pointing cluster |
clusterAssociationMatrix | the matrix of cluster associations |
Definition at line 85 of file CosmicRayExtensionAlgorithm.cc.
References CalculateRms(), f, lar_content::LArPointingClusterHelper::GetClosestVertices(), lar_content::LArPointingCluster::GetCluster(), lar_content::LArPointingCluster::GetInnerVertex(), lar_content::LArPointingClusterHelper::GetLengthSquared(), lar_content::LArPointingCluster::GetOuterVertex(), lar_content::LArPointingCluster::Vertex::GetPosition(), lar_content::ClusterExtensionAlgorithm::ClusterAssociation::INNER, lar_content::LArPointingCluster::Vertex::IsInitialized(), lar_content::LArPointingCluster::Vertex::IsInnerVertex(), m_maxAverageRms, m_maxLongitudinalDisplacement, m_maxTransverseDisplacement, m_minCosRelativeAngle, m_minSeedClusterLength, max, min, lar_content::ClusterExtensionAlgorithm::ClusterAssociation::OUTER, and lar_content::ClusterExtensionAlgorithm::ClusterAssociation::STRONG.
|
privatevirtual |
Fill the cluster merge map.
clusterAssociationMatrix | the matrix of cluster associations |
clusterMergeMap | the map of cluster merges |
Implements lar_content::ClusterExtensionAlgorithm.
Definition at line 174 of file CosmicRayExtensionAlgorithm.cc.
References f, lar_content::ClusterExtensionAlgorithm::ClusterAssociation::GetDaughter(), lar_content::ClusterExtensionAlgorithm::ClusterAssociation::GetFigureOfMerit(), lar_content::ClusterExtensionAlgorithm::ClusterAssociation::GetParent(), lar_content::ClusterExtensionAlgorithm::ClusterAssociation::INNER, lar_content::ClusterExtensionAlgorithm::ClusterAssociation::NONE, lar_content::ClusterExtensionAlgorithm::ClusterAssociation::OUTER, lar_content::LArClusterHelper::SortByNHits(), and lar_content::ClusterExtensionAlgorithm::ClusterAssociation::UNDEFINED.
|
privatevirtual |
Populate cluster vector with subset of cluster list, containing clusters judged to be clean.
pClusterList | address of the cluster list |
clusterVector | to receive the populated cluster vector |
Implements lar_content::ClusterMergingAlgorithm.
Definition at line 33 of file CosmicRayExtensionAlgorithm.cc.
References FillClusterAssociationMatrix(), lar_content::LArPointingCluster::GetCluster(), lar_content::LArClusterHelper::GetLengthSquared(), m_minClusterLength, and lar_content::LArClusterHelper::SortByNHits().
|
protectedinherited |
Sort the selected clusters, so that they have a well-defined ordering.
inputClusters | the input vector of clusters |
outputClusters | the output vector of clusters |
Definition at line 133 of file ClusterMergingAlgorithm.cc.
|
protectedinherited |
Merge associated clusters.
clusterVector | the vector of clean clusters |
clusterMergeMap | the matrix of cluster associations |
Definition at line 61 of file ClusterMergingAlgorithm.cc.
|
protectedvirtualinherited |
Form associations between pointing clusters.
clusterVector | the vector of clean clusters |
clusterMergeMap | the matrix of cluster associations |
Implements lar_content::ClusterMergingAlgorithm.
Definition at line 18 of file ClusterExtensionAlgorithm.cc.
|
privatevirtual |
Reimplemented from lar_content::ClusterMergingAlgorithm.
Definition at line 370 of file CosmicRayExtensionAlgorithm.cc.
References m_maxAverageRms, m_maxLongitudinalDisplacement, m_maxTransverseDisplacement, m_minClusterLength, m_minCosRelativeAngle, m_minSeedClusterLength, and lar_content::ClusterMergingAlgorithm::ReadSettings().
|
protectedvirtualinherited |
Definition at line 20 of file ClusterMergingAlgorithm.cc.
|
protectedinherited |
The name of the input cluster list. If not specified, will access current list.
Definition at line 82 of file ClusterMergingAlgorithm.h.
|
private |
Definition at line 63 of file CosmicRayExtensionAlgorithm.h.
Referenced by FillClusterAssociationMatrix(), and ReadSettings().
|
private |
Definition at line 60 of file CosmicRayExtensionAlgorithm.h.
Referenced by FillClusterAssociationMatrix(), and ReadSettings().
|
private |
Definition at line 61 of file CosmicRayExtensionAlgorithm.h.
Referenced by FillClusterAssociationMatrix(), and ReadSettings().
|
private |
Definition at line 58 of file CosmicRayExtensionAlgorithm.h.
Referenced by GetListOfCleanClusters(), and ReadSettings().
|
private |
Definition at line 62 of file CosmicRayExtensionAlgorithm.h.
Referenced by FillClusterAssociationMatrix(), and ReadSettings().
|
private |
Definition at line 59 of file CosmicRayExtensionAlgorithm.h.
Referenced by FillClusterAssociationMatrix(), and ReadSettings().