APRILContent
Algorithm of Particle Reconstruction for ILC - implementation with PandoraSDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations
Classes | Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
april_content::CaloHitMergingTool Class Reference

CaloHitMergingTool class. More...

#include <CaloHitMergingTool.h>

Inheritance diagram for april_content::CaloHitMergingTool:

Classes

class  Factory
 Factory class for instantiating algorithm tool. More...
 

Public Member Functions

virtual pandora::StatusCode ReadSettings (const pandora::TiXmlHandle xmlHandle)
 Read settings from the xml handle. More...
 
virtual pandora::StatusCode MergeCaloHits (const pandora::Algorithm &algorithm, const pandora::CaloHitList &caloHitList, const pandora::ClusterVector &clusterVector)
 Merge the calo hit list in provided cluster list. More...
 

Private Types

typedef std::map< int, float > PidToDistanceMap
 The pid flag to max merging distance map typedef.
 

Private Member Functions

pandora::StatusCode FindCaloHitClusterMerging (const pandora::Algorithm &algorithm, const pandora::CaloHitList &caloHitList, const pandora::ClusterVector &clusterVector, CaloHitToClusterMap &caloHitToClusterMap) const
 Find a possible parent cluster for each hit. More...
 
pandora::StatusCode MergeCaloHits (const pandora::Algorithm &algorithm, const CaloHitToClusterMap &caloHitToClusterMap) const
 Merge the calo hits in their target cluster. More...
 
float GetMaxCaloHitDistance (const pandora::Algorithm &algorithm, const pandora::CaloHit *const pCaloHit, const pandora::Cluster *const pCluster) const
 Get the maximum distance to merge the calo hit into that cluster. More...
 

Private Attributes

float m_maxCaloHitDistanceFine
 The max distance to merge a hit in a cluster (fine granularity)
 
float m_maxCaloHitDistanceCoarse
 The max distance to merge a hit in a cluster (coarse granularity)
 
PidToDistanceMap m_maxCaloHitDistanceFineMap
 The map of cluster pid -> max distance to merge a hit in a cluster (fine granularity)
 
PidToDistanceMap m_maxCaloHitDistanceCoarseMap
 The map of cluster pid -> max distance to merge a hit in a cluster (coarse granularity)
 

Detailed Description

CaloHitMergingTool class.

Member Function Documentation

pandora::StatusCode april_content::CaloHitMergingTool::FindCaloHitClusterMerging ( const pandora::Algorithm &  algorithm,
const pandora::CaloHitList &  caloHitList,
const pandora::ClusterVector &  clusterVector,
CaloHitToClusterMap &  caloHitToClusterMap 
) const
private

Find a possible parent cluster for each hit.

Parameters
algorithmthe algorithm calling this function
caloHitListthe input calo hit list
clusterVectorthe input cluster list
caloHitToClusterMapthe map of calo hit to cluster to merge
float april_content::CaloHitMergingTool::GetMaxCaloHitDistance ( const pandora::Algorithm &  algorithm,
const pandora::CaloHit *const  pCaloHit,
const pandora::Cluster *const  pCluster 
) const
private

Get the maximum distance to merge the calo hit into that cluster.

Parameters
algorithmthe algorithm calling this function
pCaloHitthe calo hit to merge
pClusterthe potential cluster to merge the calo hit in
Returns
float the maximum distance to merge the calo hit into that cluster
pandora::StatusCode april_content::CaloHitMergingTool::MergeCaloHits ( const pandora::Algorithm &  algorithm,
const pandora::CaloHitList &  caloHitList,
const pandora::ClusterVector &  clusterVector 
)
virtual

Merge the calo hit list in provided cluster list.

Parameters
algorithmthe algorithm calling this function
caloHitListthe calo hits to merge
clusterVectorthe cluster list to enlarge with calo hits
pandora::StatusCode april_content::CaloHitMergingTool::MergeCaloHits ( const pandora::Algorithm &  algorithm,
const CaloHitToClusterMap &  caloHitToClusterMap 
) const
private

Merge the calo hits in their target cluster.

Parameters
algorithmthe algorithm calling this function
caloHitToClusterMapthe calo hit to cluster map to perform the merging
pandora::StatusCode april_content::CaloHitMergingTool::ReadSettings ( const pandora::TiXmlHandle  xmlHandle)
virtual

Read settings from the xml handle.

Parameters
xmlHandlethe xml handle to settings

The documentation for this class was generated from the following files: