LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
|
NViewMatchingAlgorithm class. More...
#include "NViewMatchingAlgorithm.h"
Public Types | |
typedef T | MatchingType |
Public Member Functions | |
NViewMatchingAlgorithm () | |
Default constructor. More... | |
virtual | ~NViewMatchingAlgorithm () |
Destructor. More... | |
void | UpdateForNewCluster (const pandora::Cluster *const pNewCluster) |
Update to reflect addition of a new cluster to the problem space. More... | |
void | UpdateUponDeletion (const pandora::Cluster *const pDeletedCluster) |
Update to reflect cluster deletion. More... | |
const std::string & | GetClusterListName (const pandora::HitType hitType) const |
Get the cluster list name corresponding to a specified hit type. More... | |
const pandora::ClusterList & | GetInputClusterList (const pandora::HitType hitType) const |
Get the input cluster list corresponding to a specified hit type. More... | |
const pandora::ClusterList & | GetSelectedClusterList (const pandora::HitType hitType) const |
Get the selected cluster list corresponding to a specified hit type. More... | |
virtual void | CalculateOverlapResult (const pandora::Cluster *const pCluster1, const pandora::Cluster *const pCluster2, const pandora::Cluster *const pCluster3=nullptr)=0 |
Calculate cluster overlap result and store in container. More... | |
virtual void | SelectInputClusters (const pandora::ClusterList *const pInputClusterList, pandora::ClusterList &selectedClusterList) const |
Select a subset of input clusters for processing in this algorithm. More... | |
virtual void | PrepareInputClusters (pandora::ClusterList &preparedClusterList) |
Perform any preparatory steps required on the input clusters, e.g. caching expensive fit results. More... | |
virtual bool | MakeClusterMerges (const ClusterMergeMap &clusterMergeMap) |
Merge clusters together. More... | |
virtual bool | CreateThreeDParticles (const ProtoParticleVector &protoParticleVector) |
Create particles using findings from recent algorithm processing. More... | |
virtual void | SetPfoParameters (const ProtoParticle &protoParticle, PandoraContentApi::ParticleFlowObject::Parameters &pfoParameters) const |
Set Pfo properties. More... | |
virtual void | SetPfoParticleId (PandoraContentApi::ParticleFlowObject::Parameters &pfoParameters) const |
Set pfo particle id. More... | |
Protected Member Functions | |
MatchingType & | GetMatchingControl () |
Get the matching control. More... | |
virtual void | SelectAllInputClusters () |
Select a subset of input clusters for processing in this algorithm. More... | |
virtual void | PrepareAllInputClusters () |
Perform any preparatory steps required, e.g. caching expensive fit results for clusters. More... | |
virtual void | PerformMainLoop () |
Main loop over cluster combinations in order to populate the overlap container. Responsible for calling CalculateOverlapResult. More... | |
virtual void | TidyUp () |
Tidy member variables in derived class. More... | |
virtual pandora::StatusCode | ReadSettings (const pandora::TiXmlHandle xmlHandle) |
virtual void | ExamineOverlapContainer ()=0 |
Examine contents of overlap container, collect together best-matching 2D particles and modify clusters as required. More... | |
Protected Attributes | |
MatchingType | m_matchingControl |
The matching control. More... | |
NViewMatchingAlgorithm class.
Definition at line 20 of file NViewMatchingAlgorithm.h.
typedef T lar_content::NViewMatchingAlgorithm< T >::MatchingType |
Definition at line 23 of file NViewMatchingAlgorithm.h.
lar_content::NViewMatchingAlgorithm< T >::NViewMatchingAlgorithm | ( | ) |
Default constructor.
Definition at line 27 of file NViewMatchingAlgorithm.cc.
|
virtual |
|
pure virtualinherited |
Calculate cluster overlap result and store in container.
pCluster1 | address of cluster1 |
pCluster2 | address of cluster2 |
pCluster3 | address of cluster3 |
Implemented in lar_content::ThreeViewShowersAlgorithm, lar_content::TwoViewDeltaRayMatchingAlgorithm, lar_content::ThreeViewTrackFragmentsAlgorithm, lar_content::ThreeViewDeltaRayMatchingAlgorithm, lar_content::ThreeViewTransverseTracksAlgorithm, lar_content::TwoViewTransverseTracksAlgorithm, lar_content::ThreeViewLongitudinalTracksAlgorithm, and lar_content::ThreeViewRemnantsAlgorithm.
Referenced by lar_content::ThreeViewMatchingControl< T >::PerformMainLoop(), lar_content::TwoViewMatchingControl< T >::PerformMainLoop(), lar_content::ThreeViewMatchingControl< T >::UpdateForNewCluster(), and lar_content::TwoViewMatchingControl< T >::UpdateForNewCluster().
|
virtualinherited |
Create particles using findings from recent algorithm processing.
protoParticleVector | the proto particle vector |
whether | particles were created |
Definition at line 88 of file MatchingBaseAlgorithm.cc.
Referenced by lar_content::NViewDeltaRayMatchingAlgorithm< T >::CreatePfos(), lar_content::ClearRemnantsTool::CreateThreeDParticles(), lar_content::TwoViewClearTracksTool::CreateThreeDParticles(), lar_content::ClearLongitudinalTracksTool::CreateThreeDParticles(), lar_content::ClearTracksTool::CreateThreeDParticles(), lar_content::ClearTrackFragmentsTool::FindTrackFragments(), lar_content::MissingTrackTool::Run(), lar_content::MatchedEndPointsTool::Run(), lar_content::ConnectedRemnantsTool::Run(), lar_content::MopUpRemnantsTool::Run(), lar_content::SimpleShowersTool::Run(), lar_content::TwoViewSimpleTracksTool::Run(), lar_content::TracksCrossingGapsTool::Run(), lar_content::MissingTrackSegmentTool::Run(), lar_content::LongTracksTool::Run(), lar_content::TwoViewLongTracksTool::Run(), and lar_content::ClearShowersTool::Run().
|
protectedpure virtualinherited |
Examine contents of overlap container, collect together best-matching 2D particles and modify clusters as required.
Implemented in lar_content::TwoViewDeltaRayMatchingAlgorithm, lar_content::ThreeViewShowersAlgorithm, lar_content::ThreeViewTrackFragmentsAlgorithm, lar_content::ThreeViewTransverseTracksAlgorithm, lar_content::TwoViewTransverseTracksAlgorithm, lar_content::ThreeViewLongitudinalTracksAlgorithm, lar_content::ThreeViewDeltaRayMatchingAlgorithm, and lar_content::ThreeViewRemnantsAlgorithm.
|
virtual |
Get the cluster list name corresponding to a specified hit type.
hitType | the hit type |
Implements lar_content::MatchingBaseAlgorithm.
Definition at line 58 of file NViewMatchingAlgorithm.cc.
References lar_content::NViewMatchingAlgorithm< T >::m_matchingControl.
Referenced by lar_content::NViewDeltaRayMatchingAlgorithm< T >::AddInStrayClusters(), lar_content::NViewTrackMatchingAlgorithm< T >::MakeClusterSplits(), lar_content::DeltaRayMergeTool::MakeOneCommonViewMerges(), lar_content::DeltaRayMergeTool::MakeTwoCommonViewMerges(), lar_content::ClearTrackFragmentsTool::ProcessTensorElement(), lar_content::CosmicRayRemovalTool::ReclusterRemnant(), lar_content::TwoViewCosmicRayRemovalTool::ReclusterRemnant(), lar_content::CosmicRayRemovalTool::SplitDeltaRayCluster(), lar_content::TwoViewCosmicRayRemovalTool::SplitDeltaRayCluster(), and lar_content::DeltaRayRemovalTool::SplitMuonCluster().
|
virtual |
Get the input cluster list corresponding to a specified hit type.
hitType | the hit type |
Implements lar_content::MatchingBaseAlgorithm.
Definition at line 66 of file NViewMatchingAlgorithm.cc.
References lar_content::NViewMatchingAlgorithm< T >::m_matchingControl.
Referenced by lar_content::NViewDeltaRayMatchingAlgorithm< T >::FillStrayClusterList(), lar_content::MissingTrackSegmentTool::GetCandidateClusters(), lar_content::NViewDeltaRayMatchingAlgorithm< T >::PrepareInputClusters(), lar_content::ShowerTensorVisualizationTool::Run(), and lar_content::TransverseTensorVisualizationTool::Run().
|
inlineprotected |
Get the matching control.
Definition at line 59 of file NViewMatchingAlgorithm.h.
References lar_content::NViewMatchingAlgorithm< T >::m_matchingControl.
|
virtual |
Get the selected cluster list corresponding to a specified hit type.
hitType | the hit type |
Implements lar_content::MatchingBaseAlgorithm.
Definition at line 74 of file NViewMatchingAlgorithm.cc.
References lar_content::NViewMatchingAlgorithm< T >::m_matchingControl.
|
virtualinherited |
Merge clusters together.
clusterMergeMap | the cluster merge map |
Definition at line 48 of file MatchingBaseAlgorithm.cc.
Referenced by lar_content::SplitShowersTool::ApplyChanges(), lar_content::ThreeDKinkBaseTool::ApplyChanges(), lar_content::TwoViewThreeDKinkTool::ApplyChanges(), lar_content::ConnectedRemnantsTool::Run(), and lar_content::MissingTrackSegmentTool::Run().
|
protectedvirtual |
Main loop over cluster combinations in order to populate the overlap container. Responsible for calling CalculateOverlapResult.
Implements lar_content::MatchingBaseAlgorithm.
Reimplemented in lar_content::ThreeViewTrackFragmentsAlgorithm.
Definition at line 106 of file NViewMatchingAlgorithm.cc.
References lar_content::NViewMatchingAlgorithm< T >::m_matchingControl.
|
protectedvirtual |
Perform any preparatory steps required, e.g. caching expensive fit results for clusters.
Implements lar_content::MatchingBaseAlgorithm.
Definition at line 90 of file NViewMatchingAlgorithm.cc.
References lar_content::NViewMatchingAlgorithm< T >::m_matchingControl.
|
virtualinherited |
Perform any preparatory steps required on the input clusters, e.g. caching expensive fit results.
preparedClusterList | to receive the prepared cluster list, non const so as to be able to modify input selected list |
Reimplemented in lar_content::NViewDeltaRayMatchingAlgorithm< T >, lar_content::NViewDeltaRayMatchingAlgorithm< ThreeViewMatchingControl< DeltaRayOverlapResult > >, lar_content::NViewDeltaRayMatchingAlgorithm< TwoViewMatchingControl< TwoViewDeltaRayOverlapResult > >, lar_content::NViewTrackMatchingAlgorithm< T >, lar_content::NViewTrackMatchingAlgorithm< TwoViewMatchingControl< TwoViewTransverseOverlapResult > >, lar_content::NViewTrackMatchingAlgorithm< ThreeViewMatchingControl< FragmentOverlapResult > >, lar_content::NViewTrackMatchingAlgorithm< ThreeViewMatchingControl< TransverseOverlapResult > >, lar_content::NViewTrackMatchingAlgorithm< ThreeViewMatchingControl< LongitudinalOverlapResult > >, and lar_content::ThreeViewShowersAlgorithm.
Definition at line 42 of file MatchingBaseAlgorithm.cc.
Referenced by lar_content::ThreeViewMatchingControl< T >::PrepareAllInputClusters(), and lar_content::TwoViewMatchingControl< T >::PrepareAllInputClusters().
|
protectedvirtual |
Reimplemented from lar_content::MatchingBaseAlgorithm.
Reimplemented in lar_content::NViewDeltaRayMatchingAlgorithm< T >, lar_content::NViewDeltaRayMatchingAlgorithm< ThreeViewMatchingControl< DeltaRayOverlapResult > >, lar_content::NViewDeltaRayMatchingAlgorithm< TwoViewMatchingControl< TwoViewDeltaRayOverlapResult > >, lar_content::TwoViewDeltaRayMatchingAlgorithm, lar_content::ThreeViewShowersAlgorithm, lar_content::ThreeViewTrackFragmentsAlgorithm, lar_content::ThreeViewTransverseTracksAlgorithm, lar_content::NViewTrackMatchingAlgorithm< T >, lar_content::NViewTrackMatchingAlgorithm< TwoViewMatchingControl< TwoViewTransverseOverlapResult > >, lar_content::NViewTrackMatchingAlgorithm< ThreeViewMatchingControl< FragmentOverlapResult > >, lar_content::NViewTrackMatchingAlgorithm< ThreeViewMatchingControl< TransverseOverlapResult > >, lar_content::NViewTrackMatchingAlgorithm< ThreeViewMatchingControl< LongitudinalOverlapResult > >, lar_content::TwoViewTransverseTracksAlgorithm, lar_content::ThreeViewLongitudinalTracksAlgorithm, lar_content::ThreeViewDeltaRayMatchingAlgorithm, and lar_content::ThreeViewRemnantsAlgorithm.
Definition at line 114 of file NViewMatchingAlgorithm.cc.
References lar_content::NViewMatchingAlgorithm< T >::m_matchingControl, and lar_content::MatchingBaseAlgorithm::ReadSettings().
Referenced by lar_content::NViewTrackMatchingAlgorithm< T >::ReadSettings(), and lar_content::NViewDeltaRayMatchingAlgorithm< T >::ReadSettings().
|
protectedvirtual |
Select a subset of input clusters for processing in this algorithm.
Implements lar_content::MatchingBaseAlgorithm.
Definition at line 82 of file NViewMatchingAlgorithm.cc.
References lar_content::NViewMatchingAlgorithm< T >::m_matchingControl.
|
virtualinherited |
Select a subset of input clusters for processing in this algorithm.
pInputClusterList | address of an input cluster list |
selectedClusterList | to receive the selected cluster list |
Reimplemented in lar_content::NViewDeltaRayMatchingAlgorithm< T >, lar_content::NViewDeltaRayMatchingAlgorithm< ThreeViewMatchingControl< DeltaRayOverlapResult > >, lar_content::NViewDeltaRayMatchingAlgorithm< TwoViewMatchingControl< TwoViewDeltaRayOverlapResult > >, lar_content::NViewTrackMatchingAlgorithm< T >, lar_content::NViewTrackMatchingAlgorithm< TwoViewMatchingControl< TwoViewTransverseOverlapResult > >, lar_content::NViewTrackMatchingAlgorithm< ThreeViewMatchingControl< FragmentOverlapResult > >, lar_content::NViewTrackMatchingAlgorithm< ThreeViewMatchingControl< TransverseOverlapResult > >, lar_content::NViewTrackMatchingAlgorithm< ThreeViewMatchingControl< LongitudinalOverlapResult > >, lar_content::ThreeViewShowersAlgorithm, and lar_content::ThreeViewRemnantsAlgorithm.
Definition at line 32 of file MatchingBaseAlgorithm.cc.
Referenced by lar_content::ThreeViewMatchingControl< T >::SelectAllInputClusters(), and lar_content::TwoViewMatchingControl< T >::SelectAllInputClusters().
|
virtualinherited |
Set Pfo properties.
protoParticle | the input proto particle |
pfoParameters | the output pfo parameters |
Definition at line 116 of file MatchingBaseAlgorithm.cc.
References f, and lar_content::ProtoParticle::m_clusterList.
|
virtualinherited |
Set pfo particle id.
pfoParameters | the output pfo parameters |
Reimplemented in lar_content::NViewTrackMatchingAlgorithm< T >, lar_content::NViewTrackMatchingAlgorithm< TwoViewMatchingControl< TwoViewTransverseOverlapResult > >, lar_content::NViewTrackMatchingAlgorithm< ThreeViewMatchingControl< FragmentOverlapResult > >, lar_content::NViewTrackMatchingAlgorithm< ThreeViewMatchingControl< TransverseOverlapResult > >, and lar_content::NViewTrackMatchingAlgorithm< ThreeViewMatchingControl< LongitudinalOverlapResult > >.
Definition at line 128 of file MatchingBaseAlgorithm.cc.
|
protectedvirtual |
Tidy member variables in derived class.
Implements lar_content::MatchingBaseAlgorithm.
Reimplemented in lar_content::NViewDeltaRayMatchingAlgorithm< T >, lar_content::NViewDeltaRayMatchingAlgorithm< ThreeViewMatchingControl< DeltaRayOverlapResult > >, lar_content::NViewDeltaRayMatchingAlgorithm< TwoViewMatchingControl< TwoViewDeltaRayOverlapResult > >, lar_content::NViewTrackMatchingAlgorithm< T >, lar_content::NViewTrackMatchingAlgorithm< TwoViewMatchingControl< TwoViewTransverseOverlapResult > >, lar_content::NViewTrackMatchingAlgorithm< ThreeViewMatchingControl< FragmentOverlapResult > >, lar_content::NViewTrackMatchingAlgorithm< ThreeViewMatchingControl< TransverseOverlapResult > >, lar_content::NViewTrackMatchingAlgorithm< ThreeViewMatchingControl< LongitudinalOverlapResult > >, and lar_content::ThreeViewShowersAlgorithm.
Definition at line 98 of file NViewMatchingAlgorithm.cc.
References lar_content::NViewMatchingAlgorithm< T >::m_matchingControl.
Referenced by lar_content::NViewTrackMatchingAlgorithm< T >::TidyUp(), and lar_content::NViewDeltaRayMatchingAlgorithm< T >::TidyUp().
|
virtual |
Update to reflect addition of a new cluster to the problem space.
pNewCluster | address of the new cluster |
Implements lar_content::MatchingBaseAlgorithm.
Reimplemented in lar_content::NViewTrackMatchingAlgorithm< T >, lar_content::NViewTrackMatchingAlgorithm< TwoViewMatchingControl< TwoViewTransverseOverlapResult > >, lar_content::NViewTrackMatchingAlgorithm< ThreeViewMatchingControl< FragmentOverlapResult > >, lar_content::NViewTrackMatchingAlgorithm< ThreeViewMatchingControl< TransverseOverlapResult > >, and lar_content::NViewTrackMatchingAlgorithm< ThreeViewMatchingControl< LongitudinalOverlapResult > >.
Definition at line 42 of file NViewMatchingAlgorithm.cc.
References lar_content::NViewMatchingAlgorithm< T >::m_matchingControl.
Referenced by lar_content::NViewTrackMatchingAlgorithm< T >::UpdateForNewCluster(), and lar_content::NViewDeltaRayMatchingAlgorithm< T >::UpdateForNewClusters().
|
virtual |
Update to reflect cluster deletion.
pDeletedCluster | address of the deleted cluster |
Implements lar_content::MatchingBaseAlgorithm.
Reimplemented in lar_content::NViewTrackMatchingAlgorithm< T >, lar_content::NViewTrackMatchingAlgorithm< TwoViewMatchingControl< TwoViewTransverseOverlapResult > >, lar_content::NViewTrackMatchingAlgorithm< ThreeViewMatchingControl< FragmentOverlapResult > >, lar_content::NViewTrackMatchingAlgorithm< ThreeViewMatchingControl< TransverseOverlapResult > >, and lar_content::NViewTrackMatchingAlgorithm< ThreeViewMatchingControl< LongitudinalOverlapResult > >.
Definition at line 50 of file NViewMatchingAlgorithm.cc.
References lar_content::NViewMatchingAlgorithm< T >::m_matchingControl.
Referenced by lar_content::NViewTrackMatchingAlgorithm< T >::UpdateUponDeletion(), and lar_content::NViewDeltaRayMatchingAlgorithm< T >::UpdateUponDeletion().
|
protected |
The matching control.
Definition at line 53 of file NViewMatchingAlgorithm.h.
Referenced by lar_content::NViewMatchingAlgorithm< T >::GetClusterListName(), lar_content::NViewMatchingAlgorithm< T >::GetInputClusterList(), lar_content::NViewMatchingAlgorithm< T >::GetMatchingControl(), lar_content::NViewMatchingAlgorithm< T >::GetSelectedClusterList(), lar_content::NViewMatchingAlgorithm< T >::PerformMainLoop(), lar_content::NViewMatchingAlgorithm< T >::PrepareAllInputClusters(), lar_content::NViewMatchingAlgorithm< T >::ReadSettings(), lar_content::NViewMatchingAlgorithm< T >::SelectAllInputClusters(), lar_content::NViewMatchingAlgorithm< T >::TidyUp(), lar_content::NViewMatchingAlgorithm< T >::UpdateForNewCluster(), and lar_content::NViewMatchingAlgorithm< T >::UpdateUponDeletion().