Pandora
Pandora source code navigator
|
CosmicRayTrackRecoveryAlgorithm class. More...
#include "CosmicRayTrackRecoveryAlgorithm.h"
Classes | |
class | Particle |
Particle class. More... | |
Public Member Functions | |
CosmicRayTrackRecoveryAlgorithm () | |
Default constructor. | |
const std::string & | GetType () const |
Get the type. | |
const std::string & | GetInstanceName () const |
Get the instance name. | |
const Pandora & | GetPandora () const |
Get the associated pandora instance. | |
Protected Member Functions | |
virtual StatusCode | Initialize () |
Perform any operations that must occur after reading settings, but before running the process. | |
virtual StatusCode | Reset () |
Perform any operations when pandora is reset, typically at the end of each event. | |
StatusCode | RegisterDetails (const Pandora *const pPandora, const std::string &type, const std::string &instanceName) |
Register i) the pandora instance that will run the process and ii) the process type. | |
Protected Attributes | |
const Pandora * | m_pPandora |
The pandora object that will run the process. | |
std::string | m_type |
The process type. | |
std::string | m_instanceName |
The process instance name. | |
Private Types | |
typedef std::vector< Particle > | ParticleList |
typedef std::unordered_map< const pandora::Cluster *, pandora::ClusterList > | ClusterAssociationMap |
typedef std::set< unsigned int > | UIntSet |
Private Member Functions | |
pandora::StatusCode | Run () |
Run the algorithm. | |
pandora::StatusCode | ReadSettings (const pandora::TiXmlHandle xmlHandle) |
Read the algorithm settings. | |
pandora::StatusCode | GetAvailableClusters (const std::string &inputClusterListName, pandora::ClusterVector &clusterVector) const |
Get a vector of available clusters. | |
void | SelectCleanClusters (const pandora::ClusterVector &inputVector, pandora::ClusterVector &outputVector) const |
Select a set of clusters judged to be clean. | |
void | BuildSlidingFitResultMap (const pandora::ClusterVector &clusterVector, TwoDSlidingFitResultMap &slidingFitResultMap) const |
Build the map of sliding fit results. | |
void | MatchViews (const pandora::ClusterVector &clusterVector1, const pandora::ClusterVector &clusterVector2, const TwoDSlidingFitResultMap &slidingFitResultMap, ClusterAssociationMap &clusterAssociationMap) const |
Match a pair of cluster vectors and populate the cluster association map. | |
void | MatchClusters (const pandora::Cluster *const pSeedCluster, const pandora::ClusterVector &targetClusters, const TwoDSlidingFitResultMap &slidingFitResultMap, ClusterAssociationMap &clusterAssociationMap) const |
Match a seed cluster with a list of target clusters and populate the cluster association map. | |
void | MatchThreeViews (const pandora::ClusterVector &clusterVectorU, const pandora::ClusterVector &clusterVectorV, const pandora::ClusterVector &clusterVectorW, const ClusterAssociationMap &clusterAssociationMapUV, const ClusterAssociationMap &clusterAssociationMapVW, const ClusterAssociationMap &clusterAssociationMapWU, ParticleList &particleList) const |
Create candidate particles using three primary clusters. | |
void | MatchTwoViews (const pandora::ClusterVector &clusterVectorU, const pandora::ClusterVector &clusterVectorV, const pandora::ClusterVector &clusterVectorW, const ClusterAssociationMap &clusterAssociationMapUV, const ClusterAssociationMap &clusterAssociationMapVW, const ClusterAssociationMap &clusterAssociationMapWU, ParticleList &particleList) const |
Create candidate particles using two primary clusters and one pair of broken clusters. | |
void | MatchOneView (const pandora::ClusterVector &clusterVectorU, const pandora::ClusterVector &clusterVectorV, const pandora::ClusterVector &clusterVectorW, const ClusterAssociationMap &clusterAssociationMapUV, const ClusterAssociationMap &clusterAssociationMapVW, const ClusterAssociationMap &clusterAssociationMapWU, ParticleList &particleList) const |
Create candidate particles using one primary cluster and one pair of broken clusters. | |
void | BuildVetoList (const ParticleList &particleList, pandora::ClusterSet &vetoList) const |
Build the list of clusters already used to create particles. | |
void | RemoveAmbiguities (const ParticleList &inputParticleList, ParticleList &outputParticleList) const |
Remove particles with duplicate clusters. | |
void | MergeClusters (const pandora::ClusterList &inputClusterList, pandora::ClusterList &outputClusterList) const |
Merge broken clusters into a single cluster. | |
void | BuildParticles (const ParticleList &particleList) |
Build particle flow objects. | |
Private Attributes | |
float | m_clusterMinLength |
float | m_clusterMinSpanZ |
float | m_clusterMinOverlapX |
float | m_clusterMaxDeltaX |
unsigned int | m_clusterMinHits |
std::string | m_inputClusterListNameU |
std::string | m_inputClusterListNameV |
std::string | m_inputClusterListNameW |
std::string | m_outputPfoListName |
CosmicRayTrackRecoveryAlgorithm class.
Definition at line 21 of file CosmicRayTrackRecoveryAlgorithm.h.
class lar_content::CosmicRayTrackRecoveryAlgorithm::Particle |
Particle class.
Definition at line 37 of file CosmicRayTrackRecoveryAlgorithm.h.
Class Members | ||
---|---|---|
ClusterList | m_clusterList |
|
private |
Definition at line 44 of file CosmicRayTrackRecoveryAlgorithm.h.
|
private |
Definition at line 43 of file CosmicRayTrackRecoveryAlgorithm.h.
|
private |
Definition at line 45 of file CosmicRayTrackRecoveryAlgorithm.h.
lar_content::CosmicRayTrackRecoveryAlgorithm::CosmicRayTrackRecoveryAlgorithm | ( | ) |
Default constructor.
Definition at line 22 of file CosmicRayTrackRecoveryAlgorithm.cc.
|
private |
Build particle flow objects.
particleList | the input list of candidate particles |
Definition at line 654 of file CosmicRayTrackRecoveryAlgorithm.cc.
|
private |
Build the map of sliding fit results.
clusterVector | the input cluster vector |
slidingFitResultMap | the output sliding fit result map |
Definition at line 131 of file CosmicRayTrackRecoveryAlgorithm.cc.
|
private |
Build the list of clusters already used to create particles.
particleList | the current list of candidate particles |
vetoList | the list of clusters that belong to the candidate particles |
Definition at line 596 of file CosmicRayTrackRecoveryAlgorithm.cc.
|
private |
Get a vector of available clusters.
inputClusterListName | the input name of the cluster list |
clusterVector | the output vector of available clusters |
Definition at line 76 of file CosmicRayTrackRecoveryAlgorithm.cc.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineprotectedvirtualinherited |
Perform any operations that must occur after reading settings, but before running the process.
Reimplemented in lar_content::BdtBeamParticleIdTool, lar_content::BeamParticleIdTool, lar_content::CosmicRayTaggingTool, lar_content::EventReadingAlgorithm, lar_content::EventWritingAlgorithm, lar_content::LArPseudoLayerPlugin, lar_content::LArRotationalTransformationPlugin, EventReadingAlgorithm, and EventWritingAlgorithm.
Definition at line 126 of file Process.h.
|
private |
Match a seed cluster with a list of target clusters and populate the cluster association map.
pSeedCluster | the input seed cluster |
targetClusters | the input list of target clusters |
slidingFitResultMap | the input map of sliding linear fit results |
clusterAssociationMap | the output map of cluster associations |
Definition at line 170 of file CosmicRayTrackRecoveryAlgorithm.cc.
|
private |
Create candidate particles using one primary cluster and one pair of broken clusters.
clusterVectorU | input vector of clusters from the U view |
clusterVectorV | input vector of clusters from the V view |
clusterVectorW | input vector of clusters from the W view |
clusterAssociationMapUV | map of cluster associations between the U and V views |
clusterAssociationMapVW | map of cluster associations between the V and W views |
clusterAssociationMapWU | map of cluster associations between the W and U views |
particleList | the output list of candidate particles |
Definition at line 508 of file CosmicRayTrackRecoveryAlgorithm.cc.
|
private |
Create candidate particles using three primary clusters.
clusterVectorU | input vector of clusters from the U view |
clusterVectorV | input vector of clusters from the V view |
clusterVectorW | input vector of clusters from the W view |
clusterAssociationMapUV | map of cluster associations between the U and V views |
clusterAssociationMapVW | map of cluster associations between the V and W views |
clusterAssociationMapWU | map of cluster associations between the W and U views |
particleList | the output list of candidate particles |
Definition at line 312 of file CosmicRayTrackRecoveryAlgorithm.cc.
|
private |
Create candidate particles using two primary clusters and one pair of broken clusters.
clusterVectorU | input vector of clusters from the U view |
clusterVectorV | input vector of clusters from the V view |
clusterVectorW | input vector of clusters from the W view |
clusterAssociationMapUV | map of cluster associations between the U and V views |
clusterAssociationMapVW | map of cluster associations between the V and W views |
clusterAssociationMapWU | map of cluster associations between the W and U views |
particleList | the output list of candidate particles |
Definition at line 412 of file CosmicRayTrackRecoveryAlgorithm.cc.
|
private |
Match a pair of cluster vectors and populate the cluster association map.
clusterVector1 | the input vector of clusters from the first view |
clusterVector2 | the input vector of clusters from the second view |
slidingFitResultMap | the input map of sliding linear fit results |
clusterAssociationMap | the output map of cluster associations |
Definition at line 158 of file CosmicRayTrackRecoveryAlgorithm.cc.
|
private |
Merge broken clusters into a single cluster.
inputClusterList | the input list of broken clusters |
outputClusterList | the output list of merged clusters |
Definition at line 692 of file CosmicRayTrackRecoveryAlgorithm.cc.
|
privatevirtual |
Read the algorithm settings.
xmlHandle | the relevant xml handle |
Implements pandora::Process.
Definition at line 730 of file CosmicRayTrackRecoveryAlgorithm.cc.
|
inlineprotectedinherited |
Register i) the pandora instance that will run the process and ii) the process type.
pPandora | address of the pandora object that will run the process |
type | the process type |
instanceName | the process instance name |
Definition at line 146 of file Process.h.
|
private |
Remove particles with duplicate clusters.
inputParticleList | the input list of candidate particles |
outputParticleList | the input list of candidate particles with duplications removed |
Definition at line 607 of file CosmicRayTrackRecoveryAlgorithm.cc.
|
inlineprotectedvirtualinherited |
Perform any operations when pandora is reset, typically at the end of each event.
Reimplemented in lar_content::MasterAlgorithm, lar_content::PostProcessingAlgorithm, and lar_content::PreProcessingAlgorithm.
Definition at line 133 of file Process.h.
|
privatevirtual |
Run the algorithm.
Implements pandora::Algorithm.
Definition at line 33 of file CosmicRayTrackRecoveryAlgorithm.cc.
|
private |
Select a set of clusters judged to be clean.
inputVector | the input vector of all available clusters |
outputVector | the output vector of clean clusters |
Definition at line 103 of file CosmicRayTrackRecoveryAlgorithm.cc.
|
private |
Definition at line 172 of file CosmicRayTrackRecoveryAlgorithm.h.
|
private |
Definition at line 173 of file CosmicRayTrackRecoveryAlgorithm.h.
|
private |
Definition at line 169 of file CosmicRayTrackRecoveryAlgorithm.h.
|
private |
Definition at line 171 of file CosmicRayTrackRecoveryAlgorithm.h.
|
private |
Definition at line 170 of file CosmicRayTrackRecoveryAlgorithm.h.
|
private |
Definition at line 175 of file CosmicRayTrackRecoveryAlgorithm.h.
|
private |
Definition at line 176 of file CosmicRayTrackRecoveryAlgorithm.h.
|
private |
Definition at line 177 of file CosmicRayTrackRecoveryAlgorithm.h.
|
protectedinherited |
|
private |
Definition at line 178 of file CosmicRayTrackRecoveryAlgorithm.h.
|
protectedinherited |
|
protectedinherited |