Pandora
Pandora source code navigator
Loading...
Searching...
No Matches
lar_content::SplitShowersTool Class Reference

SplitShowersTool class. More...

#include "SplitShowersTool.h"

Inheritance diagram for lar_content::SplitShowersTool:
Collaboration diagram for lar_content::SplitShowersTool:

Public Types

typedef ThreeViewShowersAlgorithm::MatchingType::TensorType TensorType
 
typedef std::vector< TensorType::ElementList::const_iteratorIteratorList
 

Public Member Functions

 SplitShowersTool ()
 Default constructor.
 
bool Run (ThreeViewShowersAlgorithm *const pAlgorithm, TensorType &overlapTensor)
 Run the algorithm tool.
 
const std::string & GetType () const
 Get the type.
 
const std::string & GetInstanceName () const
 Get the instance name.
 
const PandoraGetPandora () const
 Get the associated pandora instance.
 

Protected Member Functions

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.
 

Protected Attributes

const Pandoram_pPandora
 The pandora object that will run the process.
 
std::string m_type
 The process type.
 
std::string m_instanceName
 The process instance name.
 

Private Member Functions

void FindSplitShowers (ThreeViewShowersAlgorithm *const pAlgorithm, const TensorType &overlapTensor, ClusterMergeMap &clusterMergeMap) const
 Find split showers, using information from the overlap tensor.
 
bool PassesElementCuts (TensorType::ElementList::const_iterator eIter, const pandora::ClusterSet &usedClusters) const
 Whether a provided (iterator to a) tensor element passes the selection cuts for undershoots identification.
 
void SelectTensorElements (TensorType::ElementList::const_iterator eIter, const TensorType::ElementList &elementList, const pandora::ClusterSet &usedClusters, IteratorList &iteratorList) const
 Select elements representing possible components of interest due to undershoots in clustering.
 
void FindShowerMerges (ThreeViewShowersAlgorithm *const pAlgorithm, const IteratorList &iteratorList, pandora::ClusterSet &usedClusters, ClusterMergeMap &clusterMergeMap) const
 Get cluster merges specific elements of the tensor.
 
bool CheckClusterProximities (ThreeViewShowersAlgorithm *const pAlgorithm, const pandora::ClusterList &clusterList) const
 Check the clusters in a provided cluster list are in suitable proximity for merging.
 
bool CheckClusterVertexRelations (ThreeViewShowersAlgorithm *const pAlgorithm, const pandora::ClusterList &clusterList) const
 Check the consistency of the clusters in a provided cluster list with the event vertex, if available.
 
bool CheckClusterSplitPositions (ThreeViewShowersAlgorithm *const pAlgorithm, const pandora::ClusterList &clusterListU, const pandora::ClusterList &clusterListV, const pandora::ClusterList &clusterListW) const
 Check the consistency of the split positions in the provided u, v and w cluster lists.
 
void GetSplitXDetails (ThreeViewShowersAlgorithm *const pAlgorithm, const pandora::Cluster *const pClusterA, const pandora::Cluster *const pClusterB, float &splitXPosition, float &overlapX) const
 Get the x coordinate representing the midpoint between two clusters (hypothesis: clusters represent a split shower)
 
void SpecifyClusterMerges (ThreeViewShowersAlgorithm *const pAlgorithm, const pandora::ClusterList &clusterList, ClusterMergeMap &clusterMergeMap) const
 Populate the cluster merge map, based on the information contained in the provided cluster list.
 
bool ApplyChanges (ThreeViewShowersAlgorithm *const pAlgorithm, const ClusterMergeMap &clusterMergeMap) const
 Apply the changes cached in a cluster merge map and update the tensor accordingly.
 
pandora::StatusCode ReadSettings (const pandora::TiXmlHandle xmlHandle)
 Read the algorithm settings.
 

Private Attributes

unsigned int m_nCommonClusters
 The number of common clusters.
 
float m_minMatchedFraction
 The min matched sampling point fraction for use as a key tensor element.
 
unsigned int m_minMatchedSamplingPoints
 The min number of matched sampling points for use as a key tensor element.
 
bool m_checkClusterProximities
 Whether to check the proximities of the candidate split shower clusters.
 
float m_maxClusterSeparation
 The maximum separation for clusters to be merged.
 
bool m_checkClusterVertexRelations
 Whether to check the consistency of the clusters with the event vertex.
 
float m_minVertexLongitudinalDistance
 Vertex association check: min longitudinal distance cut.
 
float m_maxVertexLongitudinalDistance
 Vertex association check: max longitudinal distance cut.
 
float m_maxVertexTransverseDistance
 Vertex association check: max transverse distance cut.
 
float m_vertexAngularAllowance
 Vertex association check: pointing angular allowance in degrees.
 
unsigned int m_maxVertexAssociations
 The maximum number of vertex associations for clusters to be merged.
 
bool m_checkClusterSplitPositions
 Whether to check the cluster split positions, if there are splits in multiple views.
 
float m_vetoMergeXDifference
 The x distance between split positions in two views below which may refuse a merge.
 
float m_vetoMergeXOverlap
 The x overlap between candidate cluster sliding fits below which may refuse a merge.
 

Detailed Description

SplitShowersTool class.

Definition at line 19 of file SplitShowersTool.h.

Member Typedef Documentation

◆ IteratorList

◆ TensorType

Constructor & Destructor Documentation

◆ SplitShowersTool()

lar_content::SplitShowersTool::SplitShowersTool ( )

Default constructor.

Definition at line 24 of file SplitShowersTool.cc.

Member Function Documentation

◆ ApplyChanges()

bool lar_content::SplitShowersTool::ApplyChanges ( ThreeViewShowersAlgorithm *const  pAlgorithm,
const ClusterMergeMap clusterMergeMap 
) const
private

Apply the changes cached in a cluster merge map and update the tensor accordingly.

Parameters
pAlgorithmaddress of the calling algorithm
clusterMergeMapthe cluster merge map
Returns
whether changes to the tensor have been made

Definition at line 366 of file SplitShowersTool.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ CheckClusterProximities()

bool lar_content::SplitShowersTool::CheckClusterProximities ( ThreeViewShowersAlgorithm *const  pAlgorithm,
const pandora::ClusterList clusterList 
) const
private

Check the clusters in a provided cluster list are in suitable proximity for merging.

Parameters
pAlgorithmaddress of the calling algorithm
clusterListthe cluster list

Definition at line 221 of file SplitShowersTool.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ CheckClusterSplitPositions()

bool lar_content::SplitShowersTool::CheckClusterSplitPositions ( ThreeViewShowersAlgorithm *const  pAlgorithm,
const pandora::ClusterList clusterListU,
const pandora::ClusterList clusterListV,
const pandora::ClusterList clusterListW 
) const
private

Check the consistency of the split positions in the provided u, v and w cluster lists.

Parameters
pAlgorithmaddress of the calling algorithm
clusterListUthe u cluster list
clusterListVthe v cluster list
clusterListWthe w cluster list

Definition at line 288 of file SplitShowersTool.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ CheckClusterVertexRelations()

bool lar_content::SplitShowersTool::CheckClusterVertexRelations ( ThreeViewShowersAlgorithm *const  pAlgorithm,
const pandora::ClusterList clusterList 
) const
private

Check the consistency of the clusters in a provided cluster list with the event vertex, if available.

Parameters
pAlgorithmaddress of the calling algorithm
clusterListthe cluster list

Definition at line 245 of file SplitShowersTool.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ FindShowerMerges()

void lar_content::SplitShowersTool::FindShowerMerges ( ThreeViewShowersAlgorithm *const  pAlgorithm,
const IteratorList iteratorList,
pandora::ClusterSet usedClusters,
ClusterMergeMap clusterMergeMap 
) const
private

Get cluster merges specific elements of the tensor.

Parameters
pAlgorithmaddress of the calling algorithm
iteratorListlist of iterators to relevant tensor elements
usedClustersthe list of used clusters
clusterMergeMapto be populated with cluster merges

Definition at line 149 of file SplitShowersTool.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ FindSplitShowers()

void lar_content::SplitShowersTool::FindSplitShowers ( ThreeViewShowersAlgorithm *const  pAlgorithm,
const TensorType overlapTensor,
ClusterMergeMap clusterMergeMap 
) const
private

Find split showers, using information from the overlap tensor.

Parameters
pAlgorithmaddress of the calling algorithm
overlapTensorthe overlap tensor
clusterMergeMapto receive the list of cluster merges

Definition at line 57 of file SplitShowersTool.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ 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.

◆ GetSplitXDetails()

void lar_content::SplitShowersTool::GetSplitXDetails ( ThreeViewShowersAlgorithm *const  pAlgorithm,
const pandora::Cluster *const  pClusterA,
const pandora::Cluster *const  pClusterB,
float &  splitXPosition,
float &  overlapX 
) const
private

Get the x coordinate representing the midpoint between two clusters (hypothesis: clusters represent a split shower)

Parameters
pAlgorithmaddress of the calling algorithm
pClusterAthe address of cluster A
pClusterBthe address of cluster B
splitXPositionto receive the split position estimate
overlapXto receive the overlap estimate

Definition at line 317 of file SplitShowersTool.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetType()

const std::string & pandora::Process::GetType ( ) const
inlineinherited

Get the type.

Returns
The type

Definition at line 102 of file Process.h.

◆ Initialize()

StatusCode pandora::Process::Initialize ( )
inlineprotectedvirtualinherited

Perform any operations that must occur after reading settings, but before running the process.

Reimplemented in lar_content::BdtBeamParticleIdTool, lar_content::BeamParticleIdTool, lar_content::CosmicRayTaggingTool, lar_content::EventReadingAlgorithm, lar_content::EventWritingAlgorithm, lar_content::LArPseudoLayerPlugin, lar_content::LArRotationalTransformationPlugin, EventReadingAlgorithm, and EventWritingAlgorithm.

Definition at line 126 of file Process.h.

Here is the caller graph for this function:

◆ PassesElementCuts()

bool lar_content::SplitShowersTool::PassesElementCuts ( TensorType::ElementList::const_iterator  eIter,
const pandora::ClusterSet usedClusters 
) const
private

Whether a provided (iterator to a) tensor element passes the selection cuts for undershoots identification.

Parameters
eIterthe iterator to the tensor element
usedClustersthe list of used clusters

Definition at line 93 of file SplitShowersTool.cc.

Here is the caller graph for this function:

◆ ReadSettings()

StatusCode lar_content::SplitShowersTool::ReadSettings ( const pandora::TiXmlHandle  xmlHandle)
privatevirtual

Read the algorithm settings.

Parameters
xmlHandlethe relevant xml handle

Implements pandora::Process.

Definition at line 394 of file SplitShowersTool.cc.

Here is the call graph for this function:

◆ 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
pPandoraaddress of the pandora object that will run the process
typethe process type
instanceNamethe process instance name

Definition at line 146 of file Process.h.

Here is the caller graph for this function:

◆ Reset()

StatusCode pandora::Process::Reset ( )
inlineprotectedvirtualinherited

Perform any operations when pandora is reset, typically at the end of each event.

Reimplemented in lar_content::MasterAlgorithm, lar_content::PostProcessingAlgorithm, and lar_content::PreProcessingAlgorithm.

Definition at line 133 of file Process.h.

Here is the caller graph for this function:

◆ Run()

bool lar_content::SplitShowersTool::Run ( ThreeViewShowersAlgorithm *const  pAlgorithm,
TensorType overlapTensor 
)
virtual

Run the algorithm tool.

Parameters
pAlgorithmaddress of the calling algorithm
overlapTensorthe overlap tensor
Returns
whether changes have been made by the tool

Implements lar_content::ShowerTensorTool.

Definition at line 44 of file SplitShowersTool.cc.

Here is the call graph for this function:

◆ SelectTensorElements()

void lar_content::SplitShowersTool::SelectTensorElements ( TensorType::ElementList::const_iterator  eIter,
const TensorType::ElementList elementList,
const pandora::ClusterSet usedClusters,
IteratorList iteratorList 
) const
private

Select elements representing possible components of interest due to undershoots in clustering.

Parameters
eIteriterator to a candidate element
elementListthe provided element list
usedClustersthe list of used clusters
iteratorListto receive a list of iterators to relevant elements

Definition at line 109 of file SplitShowersTool.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SpecifyClusterMerges()

void lar_content::SplitShowersTool::SpecifyClusterMerges ( ThreeViewShowersAlgorithm *const  pAlgorithm,
const pandora::ClusterList clusterList,
ClusterMergeMap clusterMergeMap 
) const
private

Populate the cluster merge map, based on the information contained in the provided cluster list.

Parameters
pAlgorithmaddress of the calling algorithm
clusterListthe cluster list
clusterMergeMapto receive the populated cluster merge map

Definition at line 344 of file SplitShowersTool.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ m_checkClusterProximities

bool lar_content::SplitShowersTool::m_checkClusterProximities
private

Whether to check the proximities of the candidate split shower clusters.

Definition at line 133 of file SplitShowersTool.h.

◆ m_checkClusterSplitPositions

bool lar_content::SplitShowersTool::m_checkClusterSplitPositions
private

Whether to check the cluster split positions, if there are splits in multiple views.

Definition at line 143 of file SplitShowersTool.h.

◆ m_checkClusterVertexRelations

bool lar_content::SplitShowersTool::m_checkClusterVertexRelations
private

Whether to check the consistency of the clusters with the event vertex.

Definition at line 136 of file SplitShowersTool.h.

◆ 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::SplitShowersTool::m_maxClusterSeparation
private

The maximum separation for clusters to be merged.

Definition at line 134 of file SplitShowersTool.h.

◆ m_maxVertexAssociations

unsigned int lar_content::SplitShowersTool::m_maxVertexAssociations
private

The maximum number of vertex associations for clusters to be merged.

Definition at line 141 of file SplitShowersTool.h.

◆ m_maxVertexLongitudinalDistance

float lar_content::SplitShowersTool::m_maxVertexLongitudinalDistance
private

Vertex association check: max longitudinal distance cut.

Definition at line 138 of file SplitShowersTool.h.

◆ m_maxVertexTransverseDistance

float lar_content::SplitShowersTool::m_maxVertexTransverseDistance
private

Vertex association check: max transverse distance cut.

Definition at line 139 of file SplitShowersTool.h.

◆ m_minMatchedFraction

float lar_content::SplitShowersTool::m_minMatchedFraction
private

The min matched sampling point fraction for use as a key tensor element.

Definition at line 130 of file SplitShowersTool.h.

◆ m_minMatchedSamplingPoints

unsigned int lar_content::SplitShowersTool::m_minMatchedSamplingPoints
private

The min number of matched sampling points for use as a key tensor element.

Definition at line 131 of file SplitShowersTool.h.

◆ m_minVertexLongitudinalDistance

float lar_content::SplitShowersTool::m_minVertexLongitudinalDistance
private

Vertex association check: min longitudinal distance cut.

Definition at line 137 of file SplitShowersTool.h.

◆ m_nCommonClusters

unsigned int lar_content::SplitShowersTool::m_nCommonClusters
private

The number of common clusters.

Definition at line 129 of file SplitShowersTool.h.

◆ 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.

◆ m_vertexAngularAllowance

float lar_content::SplitShowersTool::m_vertexAngularAllowance
private

Vertex association check: pointing angular allowance in degrees.

Definition at line 140 of file SplitShowersTool.h.

◆ m_vetoMergeXDifference

float lar_content::SplitShowersTool::m_vetoMergeXDifference
private

The x distance between split positions in two views below which may refuse a merge.

Definition at line 144 of file SplitShowersTool.h.

◆ m_vetoMergeXOverlap

float lar_content::SplitShowersTool::m_vetoMergeXOverlap
private

The x overlap between candidate cluster sliding fits below which may refuse a merge.

Definition at line 145 of file SplitShowersTool.h.


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