LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
|
CheatingClusterCreationAlgorithm class. More...
#include "CheatingClusterCreationAlgorithm.h"
Public Member Functions | |
CheatingClusterCreationAlgorithm () | |
Default constructor. More... | |
Private Types | |
typedef std::unordered_map< const pandora::MCParticle *, pandora::CaloHitList > | MCParticleToHitListMap |
Private Member Functions | |
pandora::StatusCode | Run () |
pandora::StatusCode | ReadSettings (const pandora::TiXmlHandle xmlHandle) |
void | GetMCParticleToHitListMap (MCParticleToHitListMap &mcParticleToHitListMap) const |
Create map between each (primary) MC particle and associated calo hits. More... | |
void | SimpleMCParticleCollection (const pandora::CaloHit *const pCaloHit, const LArMCParticleHelper::MCRelationMap &mcPrimaryMap, MCParticleToHitListMap &mcParticleToHitListMap) const |
Simple mc particle collection, using main mc particle associated with each calo hit. More... | |
bool | SelectMCParticlesForClustering (const pandora::MCParticle *const pMCParticle) const |
Check whether mc particle is of a type specified for inclusion in cheated clustering. More... | |
void | CreateClusters (const MCParticleToHitListMap &mcParticleToHitListMap) const |
Create clusters based on information in the mc particle to hit list map. More... | |
Private Attributes | |
bool | m_collapseToPrimaryMCParticles |
Whether to collapse mc particle hierarchies to primary particles. More... | |
std::string | m_mcParticleListName |
The mc particle list name, required if want to collapse mc particle hierarchy. More... | |
pandora::IntVector | m_particleIdList |
list of particle ids of MCPFOs to be selected More... | |
CheatingClusterCreationAlgorithm class.
Definition at line 23 of file CheatingClusterCreationAlgorithm.h.
|
private |
Definition at line 35 of file CheatingClusterCreationAlgorithm.h.
lar_content::CheatingClusterCreationAlgorithm::CheatingClusterCreationAlgorithm | ( | ) |
Default constructor.
Definition at line 18 of file CheatingClusterCreationAlgorithm.cc.
|
private |
Create clusters based on information in the mc particle to hit list map.
mcParticleToHitListMap | the mc particle to hit list map |
Definition at line 107 of file CheatingClusterCreationAlgorithm.cc.
References lar_content::LArMCParticleHelper::SortByMomentum().
Referenced by Run().
|
private |
Create map between each (primary) MC particle and associated calo hits.
mcParticleToHitListMap | to receive the mc particle to hit list map |
Definition at line 36 of file CheatingClusterCreationAlgorithm.cc.
References lar_content::LArMCParticleHelper::GetMCPrimaryMap(), m_collapseToPrimaryMCParticles, m_mcParticleListName, and SimpleMCParticleCollection().
Referenced by Run().
|
private |
Definition at line 148 of file CheatingClusterCreationAlgorithm.cc.
References m_collapseToPrimaryMCParticles, m_mcParticleListName, and m_particleIdList.
|
private |
Definition at line 25 of file CheatingClusterCreationAlgorithm.cc.
References CreateClusters(), and GetMCParticleToHitListMap().
|
private |
Check whether mc particle is of a type specified for inclusion in cheated clustering.
pMCParticle | the mc particle to hit list map |
Definition at line 91 of file CheatingClusterCreationAlgorithm.cc.
References m_particleIdList.
Referenced by SimpleMCParticleCollection().
|
private |
Simple mc particle collection, using main mc particle associated with each calo hit.
pCaloHit | address of the calo hit |
mcPrimaryMap | the mapping between mc particles and their parents |
mcParticleToHitListMap | the mc particle to hit list map |
Definition at line 68 of file CheatingClusterCreationAlgorithm.cc.
References m_collapseToPrimaryMCParticles, and SelectMCParticlesForClustering().
Referenced by GetMCParticleToHitListMap().
|
private |
Whether to collapse mc particle hierarchies to primary particles.
Definition at line 70 of file CheatingClusterCreationAlgorithm.h.
Referenced by GetMCParticleToHitListMap(), ReadSettings(), and SimpleMCParticleCollection().
|
private |
The mc particle list name, required if want to collapse mc particle hierarchy.
Definition at line 71 of file CheatingClusterCreationAlgorithm.h.
Referenced by GetMCParticleToHitListMap(), and ReadSettings().
|
private |
list of particle ids of MCPFOs to be selected
Definition at line 73 of file CheatingClusterCreationAlgorithm.h.
Referenced by ReadSettings(), and SelectMCParticlesForClustering().