LArSoft
v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
|
CosmicRayTrackMatchingAlgorithm class. More...
#include "CosmicRayTrackMatchingAlgorithm.h"
Public Member Functions | |
CosmicRayTrackMatchingAlgorithm () | |
Default constructor. More... | |
Protected Types | |
typedef std::vector< Particle > | ParticleList |
typedef std::unordered_map< const pandora::Cluster *, pandora::ClusterList > | ClusterAssociationMap |
Protected Member Functions | |
pandora::StatusCode | Run () |
Private Member Functions | |
void | SelectCleanClusters (const pandora::ClusterVector &inputVector, pandora::ClusterVector &outputVector) const |
Select a set of clusters judged to be clean. More... | |
bool | MatchClusters (const pandora::Cluster *const pCluster1, const pandora::Cluster *const pCluster2) const |
Match a pair of clusters from two views. More... | |
bool | CheckMatchedClusters3D (const pandora::Cluster *const pCluster1, const pandora::Cluster *const pCluster2, const pandora::Cluster *const pCluster3) const |
Check that three clusters have a consistent 3D position. More... | |
void | SetPfoParameters (const Particle &protoParticle, PandoraContentApi::ParticleFlowObject::Parameters &pfoParameters) const |
Calculate Pfo properties from proto particle. More... | |
pandora::StatusCode | ReadSettings (const pandora::TiXmlHandle xmlHandle) |
Private Attributes | |
float | m_clusterMinLength |
minimum length of clusters for this algorithm More... | |
float | m_vtxXOverlap |
requirement on X overlap of start/end positions More... | |
float | m_minXOverlap |
requirement on minimum X overlap for associated clusters More... | |
float | m_minXOverlapFraction |
requirement on minimum X overlap fraction for associated clusters More... | |
float | m_maxDisplacement |
requirement on 3D consistency checks More... | |
CosmicRayTrackMatchingAlgorithm class.
Definition at line 19 of file CosmicRayTrackMatchingAlgorithm.h.
|
protectedinherited |
Definition at line 49 of file CosmicRayBaseMatchingAlgorithm.h.
|
protectedinherited |
Definition at line 48 of file CosmicRayBaseMatchingAlgorithm.h.
lar_content::CosmicRayTrackMatchingAlgorithm::CosmicRayTrackMatchingAlgorithm | ( | ) |
Default constructor.
Definition at line 21 of file CosmicRayTrackMatchingAlgorithm.cc.
|
privatevirtual |
Check that three clusters have a consistent 3D position.
pCluster1 | the cluster from the first view |
pCluster2 | the cluster from the second view |
pCluster3 | the cluster from the third view |
Implements lar_content::CosmicRayBaseMatchingAlgorithm.
Definition at line 114 of file CosmicRayTrackMatchingAlgorithm.cc.
References f, lar_content::LArClusterHelper::GetClosestDistance(), lar_content::LArClusterHelper::GetClusterHitType(), lar_content::LArClusterHelper::GetExtremalCoordinates(), m_maxDisplacement, m_vtxXOverlap, max, lar_content::LArGeometryHelper::MergeTwoPositions(), and n.
|
privatevirtual |
Match a pair of clusters from two views.
pCluster1 | the first cluster |
pCluster2 | the second cluster |
Implements lar_content::CosmicRayBaseMatchingAlgorithm.
Definition at line 75 of file CosmicRayTrackMatchingAlgorithm.cc.
References f, lar_content::LArClusterHelper::GetClusterSpanX(), lar_content::LArClusterHelper::GetExtremalCoordinates(), m_minXOverlap, m_minXOverlapFraction, m_vtxXOverlap, max, and min.
|
private |
Definition at line 205 of file CosmicRayTrackMatchingAlgorithm.cc.
References m_clusterMinLength, m_maxDisplacement, m_minXOverlap, m_minXOverlapFraction, m_vtxXOverlap, and lar_content::CosmicRayBaseMatchingAlgorithm::ReadSettings().
|
protectedinherited |
Definition at line 20 of file CosmicRayBaseMatchingAlgorithm.cc.
|
privatevirtual |
Select a set of clusters judged to be clean.
inputVector | the input vector of all available clusters |
outputVector | the output vector of clean clusters |
Implements lar_content::CosmicRayBaseMatchingAlgorithm.
Definition at line 32 of file CosmicRayTrackMatchingAlgorithm.cc.
References f, lar_content::LArClusterHelper::GetClosestDistance(), lar_content::LArClusterHelper::GetExtremalCoordinates(), lar_content::LArClusterHelper::GetLengthSquared(), m_clusterMinLength, and m_vtxXOverlap.
|
privatevirtual |
Calculate Pfo properties from proto particle.
protoParticle | the input proto particle |
pfoParameters | the output pfo parameters |
Implements lar_content::CosmicRayBaseMatchingAlgorithm.
Definition at line 187 of file CosmicRayTrackMatchingAlgorithm.cc.
References f, lar_content::CosmicRayBaseMatchingAlgorithm::Particle::m_pClusterU, lar_content::CosmicRayBaseMatchingAlgorithm::Particle::m_pClusterV, and lar_content::CosmicRayBaseMatchingAlgorithm::Particle::m_pClusterW.
|
private |
minimum length of clusters for this algorithm
Definition at line 37 of file CosmicRayTrackMatchingAlgorithm.h.
Referenced by ReadSettings(), and SelectCleanClusters().
|
private |
requirement on 3D consistency checks
Definition at line 41 of file CosmicRayTrackMatchingAlgorithm.h.
Referenced by CheckMatchedClusters3D(), and ReadSettings().
|
private |
requirement on minimum X overlap for associated clusters
Definition at line 39 of file CosmicRayTrackMatchingAlgorithm.h.
Referenced by MatchClusters(), and ReadSettings().
|
private |
requirement on minimum X overlap fraction for associated clusters
Definition at line 40 of file CosmicRayTrackMatchingAlgorithm.h.
Referenced by MatchClusters(), and ReadSettings().
|
private |
requirement on X overlap of start/end positions
Definition at line 38 of file CosmicRayTrackMatchingAlgorithm.h.
Referenced by CheckMatchedClusters3D(), MatchClusters(), ReadSettings(), and SelectCleanClusters().