CrossedTrackSplittingAlgorithm class.
More...
#include "CrossedTrackSplittingAlgorithm.h"
|
virtual pandora::StatusCode | Run () |
| Run the algorithm.
|
|
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.
|
|
|
pandora::StatusCode | ReadSettings (const pandora::TiXmlHandle xmlHandle) |
| Read the algorithm settings.
|
|
pandora::StatusCode | PreparationStep (const pandora::ClusterVector &clusterVector) |
| Perform any preparatory actions, such as caching information for subsequent expensive calculations.
|
|
pandora::StatusCode | TidyUpStep () |
| Tidy up any information cached in e.g. the preparation step.
|
|
pandora::StatusCode | FindBestSplitPosition (const TwoDSlidingFitResult &slidingFit1, const TwoDSlidingFitResult &slidingFit2, pandora::CartesianVector &splitPosition, pandora::CartesianVector &direction1, pandora::CartesianVector &direction2) const |
| Find the best split position and direction for a pair of clusters.
|
|
void | FindCandidateSplitPositions (const pandora::Cluster *const pCluster1, const pandora::Cluster *const pCluster2, pandora::CartesianPointVector &candidateVector) const |
| Find average positions of pairs of hits within a maximum separation.
|
|
void | GetListOfCleanClusters (const pandora::ClusterList *const pClusterList, pandora::ClusterVector &clusterVector) const |
| Populate cluster vector with subset of cluster list, containing clusters judged to be clean.
|
|
void | BuildSlidingFitResultMap (const pandora::ClusterVector &clusterVector, TwoDSlidingFitResultMap &slidingFitResultMap) const |
| Build the map of sliding fit results.
|
|
void | SplitCluster (const pandora::Cluster *const pCluster, const pandora::CartesianVector &splitPosition, const pandora::CartesianVector &splitDirection, pandora::CaloHitList &firstCaloHitList, pandora::CaloHitList &secondCaloHitList) const |
| Split cluster at a given position and direction.
|
|
pandora::StatusCode | ReplaceClusters (const pandora::Cluster *const pCluster1, const pandora::Cluster *const pCluster2, const pandora::CartesianVector &splitPosition, const pandora::CartesianVector &firstDirection, const pandora::CartesianVector &secondDirection) const |
| Replace crossed clusters with un-crossed clusters.
|
|
◆ ClusterToClustersMap
◆ HitKDNode2D
◆ HitKDNode2DList
◆ HitKDTree2D
◆ HitToClusterMap
◆ CrossedTrackSplittingAlgorithm()
lar_content::CrossedTrackSplittingAlgorithm::CrossedTrackSplittingAlgorithm |
( |
| ) |
|
◆ BuildSlidingFitResultMap()
◆ FindBestSplitPosition()
Find the best split position and direction for a pair of clusters.
- Parameters
-
slidingFit1 | the sliding linear fit to the first cluster |
slidingFit2 | the sliding linear fit to the second cluster |
splitPosition | the output split position |
direction1 | the output direction of the first new cluster |
direction2 | the output direction of the second new cluster |
Implements lar_content::TwoDSlidingFitSplittingAndSwitchingAlgorithm.
Definition at line 86 of file CrossedTrackSplittingAlgorithm.cc.
◆ FindCandidateSplitPositions()
Find average positions of pairs of hits within a maximum separation.
- Parameters
-
pCluster1 | the first cluster |
pCluster2 | the second cluster |
candidateVector | to receive the average positions |
Definition at line 241 of file CrossedTrackSplittingAlgorithm.cc.
◆ GetInstanceName()
const std::string & pandora::Process::GetInstanceName |
( |
| ) |
const |
|
inlineinherited |
Get the instance name.
- Returns
- The instance name
Definition at line 109 of file Process.h.
◆ GetListOfCleanClusters()
Populate cluster vector with subset of cluster list, containing clusters judged to be clean.
- Parameters
-
pClusterList | address of the cluster list |
clusterVector | to receive the populated cluster vector |
Definition at line 115 of file TwoDSlidingFitSplittingAndSwitchingAlgorithm.cc.
◆ GetPandora()
const Pandora & pandora::Process::GetPandora |
( |
| ) |
const |
|
inlineinherited |
Get the associated pandora instance.
- Returns
- the associated pandora instance
Definition at line 116 of file Process.h.
◆ GetType()
const std::string & pandora::Process::GetType |
( |
| ) |
const |
|
inlineinherited |
Get the type.
- Returns
- The type
Definition at line 102 of file Process.h.
◆ Initialize()
|
inlineprotectedvirtualinherited |
◆ PreparationStep()
◆ ReadSettings()
◆ RegisterDetails()
StatusCode pandora::Process::RegisterDetails |
( |
const Pandora *const |
pPandora, |
|
|
const std::string & |
type, |
|
|
const std::string & |
instanceName |
|
) |
| |
|
inlineprotectedinherited |
Register i) the pandora instance that will run the process and ii) the process type.
- Parameters
-
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.
◆ ReplaceClusters()
Replace crossed clusters with un-crossed clusters.
- Parameters
-
pCluster1 | the first cluster to be deleted |
pCluster2 | the second cluster to be deleted |
splitPosition | the split position |
firstDirection | the direction of the first new cluster |
secondDirection | the direction of the second new cluster |
Definition at line 182 of file TwoDSlidingFitSplittingAndSwitchingAlgorithm.cc.
◆ Reset()
|
inlineprotectedvirtualinherited |
◆ Run()
StatusCode lar_content::TwoDSlidingFitSplittingAndSwitchingAlgorithm::Run |
( |
| ) |
|
|
protectedvirtualinherited |
◆ SplitCluster()
Split cluster at a given position and direction.
- Parameters
-
pCluster | the cluster |
splitPosition | the position at which to split the cluster |
splitDirection | the direction of the un-crossed cluster |
firstCaloHitList | the hits to be added to the first new cluster |
secondCaloHitList | the hits to be added to the second new cluster |
Definition at line 159 of file TwoDSlidingFitSplittingAndSwitchingAlgorithm.cc.
◆ TidyUpStep()
StatusCode lar_content::CrossedTrackSplittingAlgorithm::TidyUpStep |
( |
| ) |
|
|
privatevirtual |
◆ m_halfWindowLayers
unsigned int lar_content::TwoDSlidingFitSplittingAndSwitchingAlgorithm::m_halfWindowLayers |
|
privateinherited |
◆ m_instanceName
std::string pandora::Process::m_instanceName |
|
protectedinherited |
The process instance name.
Definition at line 89 of file Process.h.
◆ m_maxClusterSeparation
float lar_content::CrossedTrackSplittingAlgorithm::m_maxClusterSeparation |
|
private |
◆ m_maxClusterSeparationSquared
float lar_content::CrossedTrackSplittingAlgorithm::m_maxClusterSeparationSquared |
|
private |
◆ m_minClusterLength
float lar_content::TwoDSlidingFitSplittingAndSwitchingAlgorithm::m_minClusterLength |
|
privateinherited |
◆ m_minCosRelativeAngle
float lar_content::CrossedTrackSplittingAlgorithm::m_minCosRelativeAngle |
|
private |
◆ m_nearbyClusters
◆ m_pPandora
const Pandora* pandora::Process::m_pPandora |
|
protectedinherited |
The pandora object that will run the process.
Definition at line 87 of file Process.h.
◆ m_searchRegion1D
float lar_content::CrossedTrackSplittingAlgorithm::m_searchRegion1D |
|
private |
◆ m_type
std::string pandora::Process::m_type |
|
protectedinherited |
The process type.
Definition at line 88 of file Process.h.
The documentation for this class was generated from the following files: