LArSoft
v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
|
CosmicRayShowerMatchingAlgorithm class. More...
#include "CosmicRayShowerMatchingAlgorithm.h"
Public Member Functions | |
CosmicRayShowerMatchingAlgorithm () | |
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 &particle, PandoraContentApi::ParticleFlowObject::Parameters &pfoParameters) const |
Calculate Pfo properties from proto particle. More... | |
pandora::StatusCode | ReadSettings (const pandora::TiXmlHandle xmlHandle) |
Private Attributes | |
float | m_minCaloHitsPerCluster |
minimum size of clusters for this algorithm 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_pseudoChi2Cut |
The selection cut on the matched chi2. More... | |
CosmicRayShowerMatchingAlgorithm class.
Definition at line 19 of file CosmicRayShowerMatchingAlgorithm.h.
|
protectedinherited |
Definition at line 49 of file CosmicRayBaseMatchingAlgorithm.h.
|
protectedinherited |
Definition at line 48 of file CosmicRayBaseMatchingAlgorithm.h.
lar_content::CosmicRayShowerMatchingAlgorithm::CosmicRayShowerMatchingAlgorithm | ( | ) |
Default constructor.
Definition at line 21 of file CosmicRayShowerMatchingAlgorithm.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 64 of file CosmicRayShowerMatchingAlgorithm.cc.
References f, lar_content::LArClusterHelper::GetAverageZ(), lar_content::LArClusterHelper::GetClusterHitType(), lar_content::LArClusterHelper::GetClusterSpanX(), m_pseudoChi2Cut, max, lar_content::LArGeometryHelper::MergeTwoPositions(), and min.
|
privatevirtual |
Match a pair of clusters from two views.
pCluster1 | the first cluster |
pCluster2 | the second cluster |
Implements lar_content::CosmicRayBaseMatchingAlgorithm.
Definition at line 44 of file CosmicRayShowerMatchingAlgorithm.cc.
References f, lar_content::LArClusterHelper::GetClusterSpanX(), m_minXOverlap, m_minXOverlapFraction, max, and min.
|
private |
Definition at line 129 of file CosmicRayShowerMatchingAlgorithm.cc.
References m_minCaloHitsPerCluster, m_minXOverlap, m_minXOverlapFraction, m_pseudoChi2Cut, 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 31 of file CosmicRayShowerMatchingAlgorithm.cc.
References m_minCaloHitsPerCluster.
|
privatevirtual |
Calculate Pfo properties from proto particle.
protoParticle | the input proto particle |
pfoParameters | the output pfo parameters |
Implements lar_content::CosmicRayBaseMatchingAlgorithm.
Definition at line 111 of file CosmicRayShowerMatchingAlgorithm.cc.
References f, lar_content::CosmicRayBaseMatchingAlgorithm::Particle::m_pClusterU, lar_content::CosmicRayBaseMatchingAlgorithm::Particle::m_pClusterV, and lar_content::CosmicRayBaseMatchingAlgorithm::Particle::m_pClusterW.
|
private |
minimum size of clusters for this algorithm
Definition at line 37 of file CosmicRayShowerMatchingAlgorithm.h.
Referenced by ReadSettings(), and SelectCleanClusters().
|
private |
requirement on minimum X overlap for associated clusters
Definition at line 38 of file CosmicRayShowerMatchingAlgorithm.h.
Referenced by MatchClusters(), and ReadSettings().
|
private |
requirement on minimum X overlap fraction for associated clusters
Definition at line 39 of file CosmicRayShowerMatchingAlgorithm.h.
Referenced by MatchClusters(), and ReadSettings().
|
private |
The selection cut on the matched chi2.
Definition at line 40 of file CosmicRayShowerMatchingAlgorithm.h.
Referenced by CheckMatchedClusters3D(), and ReadSettings().