LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
|
SimpleClusterCreationAlgorithm class. More...
#include "SimpleClusterCreationAlgorithm.h"
Public Member Functions | |
SimpleClusterCreationAlgorithm () | |
Default constructor. More... | |
Private Types | |
typedef std::unordered_map< const pandora::CaloHit *, pandora::CaloHitList > | HitAssociationMap |
Private Member Functions | |
pandora::StatusCode | Run () |
void | SelectCaloHits (const pandora::CaloHitList *const pInputList, pandora::CaloHitList &outputList) const |
Select calo hits for clustering. More... | |
void | BuildAssociationMap (const pandora::CaloHitList &caloHitList, HitAssociationMap &hitAssociationMap) const |
Create map of associations between calo hits. More... | |
void | CreateClusters (const pandora::CaloHitList &caloHitList, const HitAssociationMap &hitAssociationMap) const |
Create clusters from selected calo hits and their associations. More... | |
void | CollectAssociatedHits (const pandora::CaloHit *const pSeedCaloHit, const pandora::CaloHit *const pCurrentCaloHit, const HitAssociationMap &hitAssociationMap, const pandora::CaloHitSet &vetoList, pandora::CaloHitList &mergeList) const |
For a given seed calo hits, collect up all the associated calo hits. More... | |
pandora::StatusCode | ReadSettings (const pandora::TiXmlHandle xmlHandle) |
Private Attributes | |
float | m_clusteringWindowSquared |
Maximum distance (squared) for two hits to be joined. More... | |
SimpleClusterCreationAlgorithm class.
Definition at line 21 of file SimpleClusterCreationAlgorithm.h.
|
private |
Definition at line 32 of file SimpleClusterCreationAlgorithm.h.
lar_content::SimpleClusterCreationAlgorithm::SimpleClusterCreationAlgorithm | ( | ) |
Default constructor.
Definition at line 20 of file SimpleClusterCreationAlgorithm.cc.
|
private |
Create map of associations between calo hits.
caloHitList | The input list of calo hits |
hitAssociationMap | The map of associations between calo hits |
Definition at line 62 of file SimpleClusterCreationAlgorithm.cc.
References m_clusteringWindowSquared.
Referenced by Run().
|
private |
For a given seed calo hits, collect up all the associated calo hits.
pSeedCaloHit | the seed calo hits |
pCurrentCaloHit | a possible associated calo hit |
hitAssociationMap | the map of associations between hits |
vetoList | the list of used calo hits |
mergeList | the list of hits associated with the seed hit |
Definition at line 119 of file SimpleClusterCreationAlgorithm.cc.
References lar_content::LArClusterHelper::SortHitsByPosition().
Referenced by CreateClusters().
|
private |
Create clusters from selected calo hits and their associations.
caloHitList | The input list of calo hits |
hitAssociationMap | The map of associations between calo hits |
Definition at line 89 of file SimpleClusterCreationAlgorithm.cc.
References CollectAssociatedHits(), and lar_content::LArClusterHelper::SortHitsByPosition().
Referenced by Run().
|
private |
Definition at line 147 of file SimpleClusterCreationAlgorithm.cc.
References m_clusteringWindowSquared.
|
private |
Definition at line 27 of file SimpleClusterCreationAlgorithm.cc.
References BuildAssociationMap(), CreateClusters(), and SelectCaloHits().
|
private |
Select calo hits for clustering.
pInputList | The input list of calo hits |
outputList | The output list of selected calo hits |
Definition at line 51 of file SimpleClusterCreationAlgorithm.cc.
Referenced by Run().
|
private |
Maximum distance (squared) for two hits to be joined.
Definition at line 72 of file SimpleClusterCreationAlgorithm.h.
Referenced by BuildAssociationMap(), and ReadSettings().