![]() |
LArSoft
v10_04_05
Liquid Argon Software toolkit - https://larsoft.org/
|
CheatingClusterMergingAlgorithm class. More...
#include "CheatingClusterMergingAlgorithm.h"
Public Member Functions | |
CheatingClusterMergingAlgorithm () | |
Default constructor. More... | |
Private Member Functions | |
pandora::StatusCode | Run () |
pandora::StatusCode | ReadSettings (const pandora::TiXmlHandle xmlHandle) |
void | CheatedClusterMerging (const pandora::ClusterList *const pClusterList, const std::string &listName) const |
Cheated Cluster Merging. Use MC to match clusters based on the main MC particle. More... | |
const pandora::MCParticle * | GetMCForCluster (const pandora::Cluster *const cluster, std::map< const pandora::Cluster *, const pandora::MCParticle * > &clusterToMCMap) const |
Get the MC particle for a given cluster, caching to a map. More... | |
bool | IsValidToUse (const pandora::Cluster *const cluster, std::map< const pandora::Cluster *, bool > &clusterIsUsed) const |
If a cluster is valid to use: Is a shower tagged cluster, and not been used yet. More... | |
Private Attributes | |
pandora::StringVector | m_inputClusterListNames |
The names of the input cluster lists. More... | |
std::string | m_mcParticleListName |
Input MC particle list name. More... | |
float | m_minNCaloHits |
The minimum number of hits for a cluster to be deemed true for IsAvailableToUse. More... | |
CheatingClusterMergingAlgorithm class.
Definition at line 20 of file CheatingClusterMergingAlgorithm.h.
lar_content::CheatingClusterMergingAlgorithm::CheatingClusterMergingAlgorithm | ( | ) |
Default constructor.
Definition at line 26 of file CheatingClusterMergingAlgorithm.cc.
|
private |
Cheated Cluster Merging. Use MC to match clusters based on the main MC particle.
pClusterList | the list of clusters |
listName | the name of the current cluster list (ClustersU, ClustersV, ClustersW normally) |
Definition at line 101 of file CheatingClusterMergingAlgorithm.cc.
References GetMCForCluster(), and IsValidToUse().
Referenced by Run().
|
private |
Get the MC particle for a given cluster, caching to a map.
cluster | The current cluster to lookup |
clusterToMCMap | Map from Cluster to MC to cache results. |
Definition at line 59 of file CheatingClusterMergingAlgorithm.cc.
References e.
Referenced by CheatedClusterMerging().
|
private |
If a cluster is valid to use: Is a shower tagged cluster, and not been used yet.
cluster | The current cluster to lookup |
clusterIsUsed | Map from Cluster to bool to check if a cluster has been used yet. |
Definition at line 85 of file CheatingClusterMergingAlgorithm.cc.
References m_minNCaloHits.
Referenced by CheatedClusterMerging().
|
private |
Definition at line 158 of file CheatingClusterMergingAlgorithm.cc.
References m_inputClusterListNames, m_mcParticleListName, and m_minNCaloHits.
|
private |
Definition at line 32 of file CheatingClusterMergingAlgorithm.cc.
References CheatedClusterMerging(), and m_inputClusterListNames.
|
private |
The names of the input cluster lists.
Definition at line 57 of file CheatingClusterMergingAlgorithm.h.
Referenced by ReadSettings(), and Run().
|
private |
Input MC particle list name.
Definition at line 58 of file CheatingClusterMergingAlgorithm.h.
Referenced by ReadSettings().
|
private |
The minimum number of hits for a cluster to be deemed true for IsAvailableToUse.
Definition at line 59 of file CheatingClusterMergingAlgorithm.h.
Referenced by IsValidToUse(), and ReadSettings().