DeltaRaySplittingAlgorithm class.
More...
#include "DeltaRaySplittingAlgorithm.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.
|
|
|
void | FindBestSplitPosition (const TwoDSlidingFitResult &branchSlidingFit, const TwoDSlidingFitResult &replacementSlidingFit, pandora::CartesianVector &replacementStartPosition, pandora::CartesianVector &branchSplitPosition, pandora::CartesianVector &branchSplitDirection) const |
| Output the best split positions in branch and replacement clusters.
|
|
pandora::StatusCode | ReadSettings (const pandora::TiXmlHandle xmlHandle) |
| Read the algorithm settings.
|
|
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, const unsigned int halfWindowLayers, TwoDSlidingFitResultMap &slidingFitResultMap) const |
| Build the map of sliding fit results.
|
|
void | BuildClusterExtensionList (const pandora::ClusterVector &clusterVector, const TwoDSlidingFitResultMap &branchResultMap, const TwoDSlidingFitResultMap &replacementResultMap, ClusterExtensionList &clusterExtensionList) const |
| Build a list of candidate splits.
|
|
void | PruneClusterExtensionList (const ClusterExtensionList &inputList, const TwoDSlidingFitResultMap &branchResultMap, const TwoDSlidingFitResultMap &replacementResultMap, ClusterExtensionList &outputList) const |
| Finalize the list of candidate splits.
|
|
float | CalculateBranchChi2 (const pandora::Cluster *const pCluster, const pandora::CartesianVector &splitPosition, const pandora::CartesianVector &splitDirection) const |
| Calculate RMS deviation of branch hits relative to the split direction.
|
|
void | SplitBranchCluster (const pandora::Cluster *const pCluster, const pandora::CartesianVector &splitPosition, const pandora::CartesianVector &splitDirection, pandora::CaloHitList &principalCaloHitList, pandora::CaloHitList &branchCaloHitList) const |
| Separate cluster into the branch hits to be split from the primary cluster.
|
|
pandora::StatusCode | RunSplitAndExtension (const ClusterExtensionList &splitList, TwoDSlidingFitResultMap &branchResultMap, TwoDSlidingFitResultMap &replacementResultMap) const |
| Run the machinary that performs the cluster splitting and extending.
|
|
pandora::StatusCode | ReplaceBranch (const pandora::Cluster *const pBranchCluster, const pandora::Cluster *const pReplacementCluster, const pandora::CartesianVector &branchSplitPosition, const pandora::CartesianVector &branchSplitDirection) const |
| Remove a branch from a cluster and replace it with a second cluster.
|
|
◆ ClusterExtensionList
◆ DeltaRaySplittingAlgorithm()
lar_content::DeltaRaySplittingAlgorithm::DeltaRaySplittingAlgorithm |
( |
| ) |
|
◆ BuildClusterExtensionList()
Build a list of candidate splits.
- Parameters
-
clusterVector | the input cluster vector |
branchResultMap | the sliding fit result map for branch clusters |
replacementResultMap | the sliding fit result map for replacement clusters |
clusterExtensionList | the output list of candidate splits |
Definition at line 121 of file TwoDSlidingFitSplittingAndSplicingAlgorithm.cc.
◆ BuildSlidingFitResultMap()
void lar_content::TwoDSlidingFitSplittingAndSplicingAlgorithm::BuildSlidingFitResultMap |
( |
const pandora::ClusterVector & |
clusterVector, |
|
|
const unsigned int |
halfWindowLayers, |
|
|
TwoDSlidingFitResultMap & |
slidingFitResultMap |
|
) |
| const |
|
privateinherited |
Build the map of sliding fit results.
- Parameters
-
clusterVector | the input cluster vector |
halfWindowLayers | the half-window to use for the sliding fits |
slidingFitResultMap | the output sliding fit result map |
Definition at line 94 of file TwoDSlidingFitSplittingAndSplicingAlgorithm.cc.
◆ CalculateBranchChi2()
Calculate RMS deviation of branch hits relative to the split direction.
- Parameters
-
pCluster | the input branch cluster |
splitPosition | the start position of the branch |
splitDirection | the start direction of the branch |
Definition at line 293 of file TwoDSlidingFitSplittingAndSplicingAlgorithm.cc.
◆ FindBestSplitPosition()
Output the best split positions in branch and replacement clusters.
- Parameters
-
branchSlidingFit | the inputted sliding fit result for possible branch cluster |
pReplacementCluster | the inputted sliding fit result for possible replacement cluster |
replacementStartPosition | the outputted start position of the replacement |
branchSplitPosition | the outputted start position of the branch |
branchSplitDirection | the outputted start direction of the branch |
Implements lar_content::TwoDSlidingFitSplittingAndSplicingAlgorithm.
Definition at line 30 of file DeltaRaySplittingAlgorithm.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 77 of file TwoDSlidingFitSplittingAndSplicingAlgorithm.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 |
◆ PruneClusterExtensionList()
Finalize the list of candidate splits.
- Parameters
-
inputList | the input list of possible splits |
branchResultMap | the sliding fit result map for branch clusters |
replacementResultMap | the sliding fit result map for replacement clusters |
outputList | the output list of definite splits |
Definition at line 225 of file TwoDSlidingFitSplittingAndSplicingAlgorithm.cc.
◆ 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.
◆ ReplaceBranch()
Remove a branch from a cluster and replace it with a second cluster.
- Parameters
-
pBranchCluster | the cluster containing a branch to be removed |
pReplacementCluster | the replacement cluster |
branchSplitPosition | the position at the start of the branch |
branchSplitDirection | the direction at the start of the branch |
Definition at line 392 of file TwoDSlidingFitSplittingAndSplicingAlgorithm.cc.
◆ Reset()
|
inlineprotectedvirtualinherited |
◆ Run()
StatusCode lar_content::TwoDSlidingFitSplittingAndSplicingAlgorithm::Run |
( |
| ) |
|
|
protectedvirtualinherited |
◆ RunSplitAndExtension()
Run the machinary that performs the cluster splitting and extending.
- Parameters
-
splitList | the input list of candidate splits |
branchResultMap | the sliding fit result map for branch clusters |
replacementResultMap | the sliding fit result map for replacement clusters |
Definition at line 349 of file TwoDSlidingFitSplittingAndSplicingAlgorithm.cc.
◆ SplitBranchCluster()
Separate cluster into the branch hits to be split from the primary cluster.
- Parameters
-
pCluster | the input branch cluster |
splitPosition | the start position of the branch |
splitDirection | the start direction of the branch |
principalCaloHitList | the hits to be added to the principal cluster |
branchCaloHitList | the hits to be split off into the output branch cluster |
Definition at line 322 of file TwoDSlidingFitSplittingAndSplicingAlgorithm.cc.
◆ m_instanceName
std::string pandora::Process::m_instanceName |
|
protectedinherited |
The process instance name.
Definition at line 89 of file Process.h.
◆ m_longHalfWindowLayers
unsigned int lar_content::TwoDSlidingFitSplittingAndSplicingAlgorithm::m_longHalfWindowLayers |
|
privateinherited |
◆ m_maxLongitudinalDisplacement
float lar_content::DeltaRaySplittingAlgorithm::m_maxLongitudinalDisplacement |
|
private |
◆ m_maxTransverseDisplacement
float lar_content::DeltaRaySplittingAlgorithm::m_maxTransverseDisplacement |
|
private |
◆ m_minClusterLength
float lar_content::TwoDSlidingFitSplittingAndSplicingAlgorithm::m_minClusterLength |
|
privateinherited |
◆ m_minCosRelativeAngle
float lar_content::DeltaRaySplittingAlgorithm::m_minCosRelativeAngle |
|
private |
◆ 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_runCosmicMode
bool lar_content::TwoDSlidingFitSplittingAndSplicingAlgorithm::m_runCosmicMode |
|
privateinherited |
◆ m_shortHalfWindowLayers
unsigned int lar_content::TwoDSlidingFitSplittingAndSplicingAlgorithm::m_shortHalfWindowLayers |
|
privateinherited |
◆ m_stepSize
float lar_content::DeltaRaySplittingAlgorithm::m_stepSize |
|
private |
◆ m_type
std::string pandora::Process::m_type |
|
protectedinherited |
The process type.
Definition at line 88 of file Process.h.
◆ m_vetoDisplacement
float lar_content::TwoDSlidingFitSplittingAndSplicingAlgorithm::m_vetoDisplacement |
|
privateinherited |
The documentation for this class was generated from the following files: