10 #ifndef PERFECTFRAGMENTREMOVALALGORITHM_H
11 #define PERFECTFRAGMENTREMOVALALGORITHM_H 1
13 #include "Pandora/Algorithm.h"
15 namespace april_content
27 class Factory :
public pandora::AlgorithmFactory
30 pandora::Algorithm *CreateAlgorithm()
const;
42 pandora::StatusCode Run();
43 pandora::StatusCode ReadSettings(
const pandora::TiXmlHandle xmlHandle);
45 typedef std::map<const pandora::MCParticle*, pandora::ClusterList*> MCParticleToClusterListMap;
46 typedef std::map<const pandora::MCParticle*, const pandora::Track*> MCParticleToTrackMap;
55 void SimpleMCParticleCollection(
const pandora::Cluster*
const pCaloHit, MCParticleToClusterListMap &mcParticleToClusterListMap)
const;
72 void AddToClusterListMap(
const pandora::Cluster *
const pClusterToAdd,
const pandora::MCParticle *
const pMCParticle, MCParticleToClusterListMap &mcParticleToClusterListMap)
const;
79 pandora::StatusCode
MergeClusters(
const MCParticleToClusterListMap &mcParticleToClusterListMap)
const;
90 inline pandora::Algorithm *PerfectFragmentRemovalAlgorithm::Factory::CreateAlgorithm()
const
97 #endif // PERFECTFRAGMENTREMOVALALGORITHM_H
PerfectFragmentRemovalAlgorithm()
Default constructor.
Definition: PerfectFragmentRemovalAlgorithm.cc:20
void SimpleMCParticleCollection(const pandora::Cluster *const pCaloHit, MCParticleToClusterListMap &mcParticleToClusterListMap) const
Simple mc particle collection, using main mc particle associated with each calo hit.
Definition: PerfectFragmentRemovalAlgorithm.cc:60
PerfectFragmentRemovalAlgorithm class.
Definition: PerfectFragmentRemovalAlgorithm.h:21
void AddToClusterListMap(const pandora::Cluster *const pClusterToAdd, const pandora::MCParticle *const pMCParticle, MCParticleToClusterListMap &mcParticleToClusterListMap) const
Full mc particle collection, using map of mc particles to hit weights; fragment calo hits where neces...
Definition: PerfectFragmentRemovalAlgorithm.cc:69
pandora::StatusCode MergeClusters(const MCParticleToClusterListMap &mcParticleToClusterListMap) const
Create clusters based on information in the mc particle to hit list map.
Definition: PerfectFragmentRemovalAlgorithm.cc:88
Factory class for instantiating algorithm.
Definition: PerfectFragmentRemovalAlgorithm.h:27