Pandora
Pandora source code navigator
Loading...
Searching...
No Matches
lar_content::DeltaRayMatchingContainers Class Reference

DeltaRayMatchingContainers class. More...

#include "DeltaRayMatchingContainers.h"

Collaboration diagram for lar_content::DeltaRayMatchingContainers:

Public Types

typedef std::map< const pandora::Cluster *, const pandora::ParticleFlowObject * > ClusterToPfoMap
 
typedef std::map< const pandora::Cluster *, pandora::ClusterListClusterProximityMap
 

Public Member Functions

 DeltaRayMatchingContainers ()
 Default constructor.
 
const ClusterToPfoMapGetClusterToPfoMap (const pandora::HitType hitType) const
 Get the mapping of clusters to the pfos to which they belong.
 
const ClusterProximityMapGetClusterProximityMap (const pandora::HitType hitType) const
 Get the mapping of clusters to to their neighbouring clusters.
 
void FillContainers (const pandora::PfoList &inputPfoList, const pandora::ClusterList &inputClusterList1, const pandora::ClusterList &inputClusterList2=pandora::ClusterList(), const pandora::ClusterList &inputClusterList3=pandora::ClusterList())
 Fill the HitToClusterMap, the ClusterProximityMap and the ClusterToPfoMap in all input views.
 
void AddClustersToPfoMaps (const pandora::ParticleFlowObject *const pPfo)
 Add the clusters of a cosmic ray/delta ray pfo to the cluster to pfo maps.
 
void AddClustersToContainers (const pandora::ClusterVector &newClusterVector, const pandora::PfoVector &pfoVector)
 Add a list of clusters to the hit to cluster and cluster proximity maps and, if appropriate, to the cluster to pfo map.
 
void RemoveClusterFromContainers (const pandora::Cluster *const pDeletedCluster)
 Remove an input cluster's hits from the hit to cluster and cluster proximity maps and, if appropriate, from the cluster to pfo map.
 
void ClearContainers ()
 Empty all algorithm containers.
 

Public Attributes

float m_searchRegion1D
 Search region, applied to each dimension, for look-up from kd-tree.
 

Private Types

typedef std::map< const pandora::CaloHit *, const pandora::Cluster * > HitToClusterMap
 
typedef KDTreeLinkerAlgo< const pandora::CaloHit *, 2 > HitKDTree2D
 
typedef KDTreeNodeInfoT< const pandora::CaloHit *, 2 > HitKDNode2D
 
typedef std::vector< HitKDNode2DHitKDNode2DList
 

Private Member Functions

void FillHitToClusterMap (const pandora::ClusterList &inputClusterList)
 Populate the hit to cluster map from a list of clusters.
 
void AddToClusterMap (const pandora::Cluster *const pCluster)
 Add the hits of a given cluster to the hit to cluster map.
 
void FillClusterToPfoMaps (const pandora::PfoList &pfoList)
 Populate all cluster to pfo maps from a list of particle flow objects.
 
void FillClusterProximityMap (const pandora::ClusterList &inputClusterList)
 Populate the cluster proximity map from a list of clusters.
 
void BuildKDTree (const pandora::HitType hitType)
 Build the KD tree.
 
void AddToClusterProximityMap (const pandora::Cluster *const pCluster)
 Add a cluster to the cluster proximity map.
 

Private Attributes

HitToClusterMap m_hitToClusterMapU
 The mapping of hits to the clusters to which they belong (in the U view)
 
HitToClusterMap m_hitToClusterMapV
 The mapping of hits to the clusters to which they belong (in the V view)
 
HitToClusterMap m_hitToClusterMapW
 The mapping of hits to the clusters to which they belong (in the W view)
 
HitKDTree2D m_kdTreeU
 The KD tree (in the U view)
 
HitKDTree2D m_kdTreeV
 The KD tree (in the V view)
 
HitKDTree2D m_kdTreeW
 The KD tree (in the W view)
 
ClusterProximityMap m_clusterProximityMapU
 The mapping of clusters to their neighbouring clusters (in the U view)
 
ClusterProximityMap m_clusterProximityMapV
 The mapping of clusters to their neighbouring clusters (in the V view)
 
ClusterProximityMap m_clusterProximityMapW
 The mapping of clusters to their neighbouring clusters (in the W view)
 
ClusterToPfoMap m_clusterToPfoMapU
 The mapping of cosmic ray U clusters to the cosmic ray pfos to which they belong.
 
ClusterToPfoMap m_clusterToPfoMapV
 The mapping of cosmic ray V clusters to the cosmic ray pfos to which they belong.
 
ClusterToPfoMap m_clusterToPfoMapW
 The mapping of cosmic ray W clusters to the cosmic ray pfos to which they belong.
 

Detailed Description

DeltaRayMatchingContainers class.

Definition at line 21 of file DeltaRayMatchingContainers.h.

Member Typedef Documentation

◆ ClusterProximityMap

◆ ClusterToPfoMap

◆ HitKDNode2D

◆ HitKDNode2DList

◆ HitKDTree2D

◆ HitToClusterMap

Constructor & Destructor Documentation

◆ DeltaRayMatchingContainers()

lar_content::DeltaRayMatchingContainers::DeltaRayMatchingContainers ( )

Default constructor.

Definition at line 23 of file DeltaRayMatchingContainers.cc.

Member Function Documentation

◆ AddClustersToContainers()

void lar_content::DeltaRayMatchingContainers::AddClustersToContainers ( const pandora::ClusterVector newClusterVector,
const pandora::PfoVector pfoVector 
)

Add a list of clusters to the hit to cluster and cluster proximity maps and, if appropriate, to the cluster to pfo map.

Parameters
newClusterVectorthe ordered cluster vector
pfoVectorthe matching ordered vector of pfos to which the clusters belong (nullptr if not applicable)

Definition at line 169 of file DeltaRayMatchingContainers.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ AddClustersToPfoMaps()

void lar_content::DeltaRayMatchingContainers::AddClustersToPfoMaps ( const pandora::ParticleFlowObject *const  pPfo)

Add the clusters of a cosmic ray/delta ray pfo to the cluster to pfo maps.

Parameters
theaddress of the input cosmic ray/delta ray pfo

Definition at line 148 of file DeltaRayMatchingContainers.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ AddToClusterMap()

void lar_content::DeltaRayMatchingContainers::AddToClusterMap ( const pandora::Cluster *const  pCluster)
private

Add the hits of a given cluster to the hit to cluster map.

Parameters
pClusterthe address of the input cluster

Definition at line 53 of file DeltaRayMatchingContainers.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ AddToClusterProximityMap()

void lar_content::DeltaRayMatchingContainers::AddToClusterProximityMap ( const pandora::Cluster *const  pCluster)
private

Add a cluster to the cluster proximity map.

Parameters
pClusterthe address of the input cluster

Definition at line 100 of file DeltaRayMatchingContainers.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ BuildKDTree()

void lar_content::DeltaRayMatchingContainers::BuildKDTree ( const pandora::HitType  hitType)
private

Build the KD tree.

Parameters
hitTypethe hit type of the KD tree to build

Definition at line 82 of file DeltaRayMatchingContainers.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ClearContainers()

void lar_content::DeltaRayMatchingContainers::ClearContainers ( )

Empty all algorithm containers.

Definition at line 239 of file DeltaRayMatchingContainers.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ FillClusterProximityMap()

void lar_content::DeltaRayMatchingContainers::FillClusterProximityMap ( const pandora::ClusterList inputClusterList)
private

Populate the cluster proximity map from a list of clusters.

Parameters
inputClusterListthe input list of clusters

Definition at line 67 of file DeltaRayMatchingContainers.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ FillClusterToPfoMaps()

void lar_content::DeltaRayMatchingContainers::FillClusterToPfoMaps ( const pandora::PfoList pfoList)
private

Populate all cluster to pfo maps from a list of particle flow objects.

Parameters
pfoListthe input list of pfos

Definition at line 140 of file DeltaRayMatchingContainers.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ FillContainers()

void lar_content::DeltaRayMatchingContainers::FillContainers ( const pandora::PfoList inputPfoList,
const pandora::ClusterList inputClusterList1,
const pandora::ClusterList inputClusterList2 = pandora::ClusterList(),
const pandora::ClusterList inputClusterList3 = pandora::ClusterList() 
)

Fill the HitToClusterMap, the ClusterProximityMap and the ClusterToPfoMap in all input views.

Parameters
inputPfoListthe input list of pfos
inputClusterList1the input list of clusters in view 1
inputClusterList2the input list of clusters in view 2
inputClusterList3the input list of clusters in view 3

Definition at line 29 of file DeltaRayMatchingContainers.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ FillHitToClusterMap()

void lar_content::DeltaRayMatchingContainers::FillHitToClusterMap ( const pandora::ClusterList inputClusterList)
private

Populate the hit to cluster map from a list of clusters.

Parameters
inputClusterListthe input list of clusters

Definition at line 45 of file DeltaRayMatchingContainers.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetClusterProximityMap()

const DeltaRayMatchingContainers::ClusterProximityMap & lar_content::DeltaRayMatchingContainers::GetClusterProximityMap ( const pandora::HitType  hitType) const
inline

Get the mapping of clusters to to their neighbouring clusters.

Returns
the cluster to nearby cluster map

Definition at line 152 of file DeltaRayMatchingContainers.h.

Here is the caller graph for this function:

◆ GetClusterToPfoMap()

const DeltaRayMatchingContainers::ClusterToPfoMap & lar_content::DeltaRayMatchingContainers::GetClusterToPfoMap ( const pandora::HitType  hitType) const
inline

Get the mapping of clusters to the pfos to which they belong.

Returns
the cluster to pfo map

Definition at line 159 of file DeltaRayMatchingContainers.h.

Here is the caller graph for this function:

◆ RemoveClusterFromContainers()

void lar_content::DeltaRayMatchingContainers::RemoveClusterFromContainers ( const pandora::Cluster *const  pDeletedCluster)

Remove an input cluster's hits from the hit to cluster and cluster proximity maps and, if appropriate, from the cluster to pfo map.

Parameters
pDeletedClusterthe input cluster

Definition at line 188 of file DeltaRayMatchingContainers.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ m_clusterProximityMapU

ClusterProximityMap lar_content::DeltaRayMatchingContainers::m_clusterProximityMapU
private

The mapping of clusters to their neighbouring clusters (in the U view)

Definition at line 141 of file DeltaRayMatchingContainers.h.

◆ m_clusterProximityMapV

ClusterProximityMap lar_content::DeltaRayMatchingContainers::m_clusterProximityMapV
private

The mapping of clusters to their neighbouring clusters (in the V view)

Definition at line 142 of file DeltaRayMatchingContainers.h.

◆ m_clusterProximityMapW

ClusterProximityMap lar_content::DeltaRayMatchingContainers::m_clusterProximityMapW
private

The mapping of clusters to their neighbouring clusters (in the W view)

Definition at line 143 of file DeltaRayMatchingContainers.h.

◆ m_clusterToPfoMapU

ClusterToPfoMap lar_content::DeltaRayMatchingContainers::m_clusterToPfoMapU
private

The mapping of cosmic ray U clusters to the cosmic ray pfos to which they belong.

Definition at line 144 of file DeltaRayMatchingContainers.h.

◆ m_clusterToPfoMapV

ClusterToPfoMap lar_content::DeltaRayMatchingContainers::m_clusterToPfoMapV
private

The mapping of cosmic ray V clusters to the cosmic ray pfos to which they belong.

Definition at line 145 of file DeltaRayMatchingContainers.h.

◆ m_clusterToPfoMapW

ClusterToPfoMap lar_content::DeltaRayMatchingContainers::m_clusterToPfoMapW
private

The mapping of cosmic ray W clusters to the cosmic ray pfos to which they belong.

Definition at line 146 of file DeltaRayMatchingContainers.h.

◆ m_hitToClusterMapU

HitToClusterMap lar_content::DeltaRayMatchingContainers::m_hitToClusterMapU
private

The mapping of hits to the clusters to which they belong (in the U view)

Definition at line 135 of file DeltaRayMatchingContainers.h.

◆ m_hitToClusterMapV

HitToClusterMap lar_content::DeltaRayMatchingContainers::m_hitToClusterMapV
private

The mapping of hits to the clusters to which they belong (in the V view)

Definition at line 136 of file DeltaRayMatchingContainers.h.

◆ m_hitToClusterMapW

HitToClusterMap lar_content::DeltaRayMatchingContainers::m_hitToClusterMapW
private

The mapping of hits to the clusters to which they belong (in the W view)

Definition at line 137 of file DeltaRayMatchingContainers.h.

◆ m_kdTreeU

HitKDTree2D lar_content::DeltaRayMatchingContainers::m_kdTreeU
private

The KD tree (in the U view)

Definition at line 138 of file DeltaRayMatchingContainers.h.

◆ m_kdTreeV

HitKDTree2D lar_content::DeltaRayMatchingContainers::m_kdTreeV
private

The KD tree (in the V view)

Definition at line 139 of file DeltaRayMatchingContainers.h.

◆ m_kdTreeW

HitKDTree2D lar_content::DeltaRayMatchingContainers::m_kdTreeW
private

The KD tree (in the W view)

Definition at line 140 of file DeltaRayMatchingContainers.h.

◆ m_searchRegion1D

float lar_content::DeltaRayMatchingContainers::m_searchRegion1D

Search region, applied to each dimension, for look-up from kd-tree.

Definition at line 85 of file DeltaRayMatchingContainers.h.


The documentation for this class was generated from the following files: