ClearTrackFragmentsTool class.
More...
#include "ClearTrackFragmentsTool.h"
|
typedef ThreeViewTrackFragmentsAlgorithm::MatchingType::TensorType | TensorType |
|
typedef std::vector< TensorType::ElementList::const_iterator > | IteratorList |
|
|
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.
|
|
|
bool | FindTrackFragments (ThreeViewTrackFragmentsAlgorithm *const pAlgorithm, const TensorType &overlapTensor) const |
| Find suitable matching track fragments in the overlap tensor to use for 3D particle creation, return value indicates whether particles are made.
|
|
bool | GetAndCheckElementList (const TensorType &overlapTensor, const pandora::Cluster *const pCluster, TensorType::ElementList &elementList) const |
| Get the list of elements connected to a given cluster and check its suitability (no ambiguities)
|
|
bool | CheckOverlapResult (const TensorType::OverlapResult &overlapResult) const |
| Check whether the overlap result passes matched sampling point and number of matched hit checks.
|
|
void | SelectClearElements (const TensorType::ElementList &elementList, IteratorList &iteratorList) const |
| Select a list of clear track-like elements from a set of connected tensor elements.
|
|
void | ProcessTensorElement (ThreeViewTrackFragmentsAlgorithm *const pAlgorithm, const TensorType &overlapTensor, const TensorType::OverlapResult &overlapResult, const pandora::Cluster *&pFragmentCluster) const |
| Process a tensor element, reclustering the fragments as required.
|
|
void | Recluster (ThreeViewTrackFragmentsAlgorithm *const pAlgorithm, const pandora::Cluster *const pCluster, const pandora::CaloHitList &daughterHits, const pandora::CaloHitList &separateHits, pandora::ClusterSet &deletedClusters, pandora::ClusterSet &badClusters, const pandora::Cluster *&pFragmentCluster) const |
| Rearrange the hits in a cluster from the fragment list, using the Pandora fragmentation mechanism.
|
|
void | RebuildClusters (ThreeViewTrackFragmentsAlgorithm *const pAlgorithm, const pandora::ClusterList &modifiedClusters, pandora::ClusterList &newClusters) const |
| Rebuild clusters after fragmentation.
|
|
void | GetAffectedKeyClusters (const TensorType &overlapTensor, const pandora::ClusterList &clustersToRemoveFromTensor, pandora::ClusterList &affectedKeyClusters) const |
| Get a list of the tensor key clusters for which tensor elements have been impacted by fragmentation operations.
|
|
pandora::StatusCode | ReadSettings (const pandora::TiXmlHandle xmlHandle) |
| Read the algorithm settings.
|
|
◆ IteratorList
◆ TensorType
◆ ClearTrackFragmentsTool()
lar_content::ClearTrackFragmentsTool::ClearTrackFragmentsTool |
( |
| ) |
|
◆ CheckOverlapResult()
bool lar_content::ClearTrackFragmentsTool::CheckOverlapResult |
( |
const TensorType::OverlapResult & |
overlapResult | ) |
const |
|
private |
Check whether the overlap result passes matched sampling point and number of matched hit checks.
- Parameters
-
overlapResult | the overlap result |
- Returns
- boolean
Definition at line 136 of file ClearTrackFragmentsTool.cc.
◆ FindTrackFragments()
Find suitable matching track fragments in the overlap tensor to use for 3D particle creation, return value indicates whether particles are made.
- Parameters
-
pAlgorithm | address of the calling algorithm |
overlapTensor | the overlap tensor |
- Returns
- boolean
Definition at line 36 of file ClearTrackFragmentsTool.cc.
◆ GetAffectedKeyClusters()
Get a list of the tensor key clusters for which tensor elements have been impacted by fragmentation operations.
- Parameters
-
overlapTensor | the overlap tensor |
clustersToRemoveFromTensor | the list of clusters removed from the tensor by fragmentation operations |
affectedKeyClusters | to receive the list of tensor key clusters that have been affected by fragmentation operations |
Definition at line 365 of file ClearTrackFragmentsTool.cc.
◆ GetAndCheckElementList()
bool lar_content::ClearTrackFragmentsTool::GetAndCheckElementList |
( |
const TensorType & |
overlapTensor, |
|
|
const pandora::Cluster *const |
pCluster, |
|
|
TensorType::ElementList & |
elementList |
|
) |
| const |
|
private |
Get the list of elements connected to a given cluster and check its suitability (no ambiguities)
- Parameters
-
overlapTensor | the overlap tensor |
pCluster | address of the key cluster |
elementList | to receive the element list |
- Returns
- boolean
Definition at line 109 of file ClearTrackFragmentsTool.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.
◆ 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 |
◆ ProcessTensorElement()
Process a tensor element, reclustering the fragments as required.
- Parameters
-
pAlgorithm | address of the calling algorithm |
overlapTensor | the overlap tensor |
overlapResult | the overlap result |
pFragmentCluster | to receive the address of the new fragment cluster |
Definition at line 204 of file ClearTrackFragmentsTool.cc.
◆ ReadSettings()
◆ RebuildClusters()
Rebuild clusters after fragmentation.
- Parameters
-
pAlgorithm | address of the calling algorithm |
modifiedClusters | the list of clusters to rebuild |
newClusters | the list of new clusters |
Definition at line 348 of file ClearTrackFragmentsTool.cc.
◆ Recluster()
Rearrange the hits in a cluster from the fragment list, using the Pandora fragmentation mechanism.
- Parameters
-
pAlgorithm | address of the calling algorithm |
pCluster | address of the input cluster |
daughterHits | the full list of hits to place in the new fragment cluster |
separateHits | the full list of hits that are not to be placed in the new fragment cluster |
deletedClusters | to receive the set of deleted clusters |
badClusters | the set of clusters that should not be dereferenced |
pFragmentCluster | to receive the address of the new fragment cluster |
Definition at line 299 of file ClearTrackFragmentsTool.cc.
◆ 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.
◆ Reset()
|
inlineprotectedvirtualinherited |
◆ Run()
◆ SelectClearElements()
void lar_content::ClearTrackFragmentsTool::SelectClearElements |
( |
const TensorType::ElementList & |
elementList, |
|
|
IteratorList & |
iteratorList |
|
) |
| const |
|
private |
Select a list of clear track-like elements from a set of connected tensor elements.
- Parameters
-
elementList | the full list of connected tensor elements |
iteratorList | to receive a list of iterators to long track-like elements |
Definition at line 150 of file ClearTrackFragmentsTool.cc.
◆ m_instanceName
std::string pandora::Process::m_instanceName |
|
protectedinherited |
The process instance name.
Definition at line 89 of file Process.h.
◆ m_minMatchedHits
unsigned int lar_content::ClearTrackFragmentsTool::m_minMatchedHits |
|
private |
◆ m_minMatchedSamplingPointFraction
float lar_content::ClearTrackFragmentsTool::m_minMatchedSamplingPointFraction |
|
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_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: