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

ThreeViewRemnantsAlgorithm class. More...

#include "ThreeViewRemnantsAlgorithm.h"

Inheritance diagram for lar_content::ThreeViewRemnantsAlgorithm:
Collaboration diagram for lar_content::ThreeViewRemnantsAlgorithm:

Public Types

typedef NViewMatchingAlgorithm< ThreeViewMatchingControl< float > > BaseAlgorithm
 
typedef ThreeViewMatchingControl< float > MatchingType
 

Public Member Functions

 ThreeViewRemnantsAlgorithm ()
 Default constructor.
 
void SelectInputClusters (const pandora::ClusterList *const pInputClusterList, pandora::ClusterList &selectedClusterList) const
 Select a subset of input clusters for processing in this algorithm.
 
void UpdateForNewCluster (const pandora::Cluster *const pNewCluster)
 Update to reflect addition of a new cluster to the problem space.
 
void UpdateUponDeletion (const pandora::Cluster *const pDeletedCluster)
 Update to reflect cluster deletion.
 
const std::string & GetClusterListName (const pandora::HitType hitType) const
 Get the cluster list name corresponding to a specified hit type.
 
const pandora::ClusterListGetInputClusterList (const pandora::HitType hitType) const
 Get the input cluster list corresponding to a specified hit type.
 
const pandora::ClusterListGetSelectedClusterList (const pandora::HitType hitType) const
 Get the selected cluster list corresponding to a specified hit type.
 
virtual void PrepareInputClusters (pandora::ClusterList &preparedClusterList)
 Perform any preparatory steps required on the input clusters, e.g. caching expensive fit results.
 
virtual bool MakeClusterMerges (const ClusterMergeMap &clusterMergeMap)
 Merge clusters together.
 
virtual bool CreateThreeDParticles (const ProtoParticleVector &protoParticleVector)
 Create particles using findings from recent algorithm processing.
 
virtual void SetPfoParameters (const ProtoParticle &protoParticle, PandoraContentApi::ParticleFlowObject::Parameters &pfoParameters) const
 Set Pfo properties.
 
virtual void SetPfoParticleId (PandoraContentApi::ParticleFlowObject::Parameters &pfoParameters) const
 Set pfo particle id.
 
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

MatchingTypeGetMatchingControl ()
 Get the matching control.
 
virtual void SelectAllInputClusters ()
 Select a subset of input clusters for processing in this algorithm.
 
virtual void PrepareAllInputClusters ()
 Perform any preparatory steps required, e.g. caching expensive fit results for clusters.
 
virtual void PerformMainLoop ()
 Main loop over cluster combinations in order to populate the overlap container. Responsible for calling CalculateOverlapResult.
 
virtual void TidyUp ()
 Tidy member variables in derived class.
 
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

MatchingType m_matchingControl
 The matching control.
 
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 Types

typedef std::vector< RemnantTensorTool * > RemnantTensorToolVector
 

Private Member Functions

void CalculateOverlapResult (const pandora::Cluster *const pClusterU, const pandora::Cluster *const pClusterV, const pandora::Cluster *const pClusterW)
 Calculate cluster overlap result and store in container.
 
void ExamineOverlapContainer ()
 Examine contents of overlap container, collect together best-matching 2D particles and modify clusters as required.
 
pandora::StatusCode ReadSettings (const pandora::TiXmlHandle xmlHandle)
 Read the algorithm settings.
 
pandora::StatusCode Run ()
 Run the algorithm.
 

Private Attributes

RemnantTensorToolVector m_algorithmToolVector
 The algorithm tool list.
 
unsigned int m_nMaxTensorToolRepeats
 The maximum number of repeat loops over tensor tools.
 
unsigned int m_minClusterCaloHits
 The selection cut on the number of cluster calo hits.
 
float m_xOverlapWindow
 The sampling pitch in the x coordinate.
 
float m_pseudoChi2Cut
 The selection cut on the matched chi2.
 
std::string m_outputPfoListName
 The output pfo list name.
 

Detailed Description

ThreeViewRemnantsAlgorithm class.

Definition at line 27 of file ThreeViewRemnantsAlgorithm.h.

Member Typedef Documentation

◆ BaseAlgorithm

◆ MatchingType

typedef ThreeViewMatchingControl< float > lar_content::NViewMatchingAlgorithm< ThreeViewMatchingControl< float > >::MatchingType
inherited

Definition at line 23 of file NViewMatchingAlgorithm.h.

◆ RemnantTensorToolVector

Constructor & Destructor Documentation

◆ ThreeViewRemnantsAlgorithm()

lar_content::ThreeViewRemnantsAlgorithm::ThreeViewRemnantsAlgorithm ( )

Default constructor.

Definition at line 21 of file ThreeViewRemnantsAlgorithm.cc.

Member Function Documentation

◆ CalculateOverlapResult()

void lar_content::ThreeViewRemnantsAlgorithm::CalculateOverlapResult ( const pandora::Cluster *const  pCluster1,
const pandora::Cluster *const  pCluster2,
const pandora::Cluster *const  pCluster3 
)
privatevirtual

Calculate cluster overlap result and store in container.

Parameters
pCluster1address of cluster1
pCluster2address of cluster2
pCluster3address of cluster3

Implements lar_content::MatchingBaseAlgorithm.

Definition at line 49 of file ThreeViewRemnantsAlgorithm.cc.

Here is the call graph for this function:

◆ CreateThreeDParticles()

bool lar_content::MatchingBaseAlgorithm::CreateThreeDParticles ( const ProtoParticleVector protoParticleVector)
virtualinherited

Create particles using findings from recent algorithm processing.

Parameters
protoParticleVectorthe proto particle vector
whetherparticles were created

Definition at line 88 of file MatchingBaseAlgorithm.cc.

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

◆ ExamineOverlapContainer()

void lar_content::ThreeViewRemnantsAlgorithm::ExamineOverlapContainer ( )
privatevirtual

Examine contents of overlap container, collect together best-matching 2D particles and modify clusters as required.

Implements lar_content::MatchingBaseAlgorithm.

Definition at line 91 of file ThreeViewRemnantsAlgorithm.cc.

◆ GetClusterListName()

const std::string & lar_content::NViewMatchingAlgorithm< ThreeViewMatchingControl< float > >::GetClusterListName ( const pandora::HitType  hitType) const
virtualinherited

Get the cluster list name corresponding to a specified hit type.

Parameters
hitTypethe hit type
Returns
the cluster list name

Implements lar_content::MatchingBaseAlgorithm.

Definition at line 37 of file NViewMatchingAlgorithm.cc.

◆ GetInputClusterList()

const pandora::ClusterList & lar_content::NViewMatchingAlgorithm< ThreeViewMatchingControl< float > >::GetInputClusterList ( const pandora::HitType  hitType) const
virtualinherited

Get the input cluster list corresponding to a specified hit type.

Parameters
hitTypethe hit type
Returns
the input cluster list

Implements lar_content::MatchingBaseAlgorithm.

Definition at line 38 of file NViewMatchingAlgorithm.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.

◆ GetMatchingControl()

ThreeViewMatchingControl< float > & lar_content::NViewMatchingAlgorithm< ThreeViewMatchingControl< float > >::GetMatchingControl ( )
inlineprotectedinherited

Get the matching control.

Definition at line 45 of file NViewMatchingAlgorithm.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.

◆ GetSelectedClusterList()

const pandora::ClusterList & lar_content::NViewMatchingAlgorithm< ThreeViewMatchingControl< float > >::GetSelectedClusterList ( const pandora::HitType  hitType) const
virtualinherited

Get the selected cluster list corresponding to a specified hit type.

Parameters
hitTypethe hit type
Returns
the selected cluster list

Implements lar_content::MatchingBaseAlgorithm.

Definition at line 39 of file NViewMatchingAlgorithm.cc.

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

◆ MakeClusterMerges()

bool lar_content::MatchingBaseAlgorithm::MakeClusterMerges ( const ClusterMergeMap clusterMergeMap)
virtualinherited

Merge clusters together.

Parameters
clusterMergeMapthe cluster merge map
Returns
whether changes to the overlap container have been made

Definition at line 48 of file MatchingBaseAlgorithm.cc.

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

◆ PerformMainLoop()

void lar_content::NViewMatchingAlgorithm< ThreeViewMatchingControl< float > >::PerformMainLoop ( )
protectedvirtualinherited

Main loop over cluster combinations in order to populate the overlap container. Responsible for calling CalculateOverlapResult.

Implements lar_content::MatchingBaseAlgorithm.

Definition at line 49 of file NViewMatchingAlgorithm.cc.

◆ PrepareAllInputClusters()

void lar_content::NViewMatchingAlgorithm< ThreeViewMatchingControl< float > >::PrepareAllInputClusters ( )
protectedvirtualinherited

Perform any preparatory steps required, e.g. caching expensive fit results for clusters.

Implements lar_content::MatchingBaseAlgorithm.

Definition at line 48 of file NViewMatchingAlgorithm.cc.

◆ PrepareInputClusters()

◆ ReadSettings()

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

Read the algorithm settings.

Parameters
xmlHandlethe relevant xml handle

Reimplemented from lar_content::NViewMatchingAlgorithm< ThreeViewMatchingControl< float > >.

Definition at line 113 of file ThreeViewRemnantsAlgorithm.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()

StatusCode lar_content::MatchingBaseAlgorithm::Run ( )
privatevirtualinherited

Run the algorithm.

Implements pandora::Algorithm.

Definition at line 135 of file MatchingBaseAlgorithm.cc.

Here is the call graph for this function:

◆ SelectAllInputClusters()

void lar_content::NViewMatchingAlgorithm< ThreeViewMatchingControl< float > >::SelectAllInputClusters ( )
protectedvirtualinherited

Select a subset of input clusters for processing in this algorithm.

Implements lar_content::MatchingBaseAlgorithm.

Definition at line 47 of file NViewMatchingAlgorithm.cc.

◆ SelectInputClusters()

void lar_content::ThreeViewRemnantsAlgorithm::SelectInputClusters ( const pandora::ClusterList *const  pInputClusterList,
pandora::ClusterList selectedClusterList 
) const
virtual

Select a subset of input clusters for processing in this algorithm.

Parameters
pInputClusterListaddress of an input cluster list
selectedClusterListto receive the selected cluster list

Reimplemented from lar_content::MatchingBaseAlgorithm.

Definition at line 31 of file ThreeViewRemnantsAlgorithm.cc.

Here is the call graph for this function:

◆ SetPfoParameters()

void lar_content::MatchingBaseAlgorithm::SetPfoParameters ( const ProtoParticle protoParticle,
PandoraContentApi::ParticleFlowObject::Parameters &  pfoParameters 
) const
virtualinherited

Set Pfo properties.

Parameters
protoParticlethe input proto particle
pfoParametersthe output pfo parameters

Definition at line 116 of file MatchingBaseAlgorithm.cc.

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

◆ SetPfoParticleId()

void lar_content::MatchingBaseAlgorithm::SetPfoParticleId ( PandoraContentApi::ParticleFlowObject::Parameters &  pfoParameters) const
virtualinherited

◆ TidyUp()

void lar_content::NViewMatchingAlgorithm< ThreeViewMatchingControl< float > >::TidyUp ( )
protectedvirtualinherited

Tidy member variables in derived class.

Implements lar_content::MatchingBaseAlgorithm.

Definition at line 50 of file NViewMatchingAlgorithm.cc.

◆ UpdateForNewCluster()

void lar_content::NViewMatchingAlgorithm< ThreeViewMatchingControl< float > >::UpdateForNewCluster ( const pandora::Cluster *const  pNewCluster)
virtualinherited

Update to reflect addition of a new cluster to the problem space.

Parameters
pNewClusteraddress of the new cluster

Implements lar_content::MatchingBaseAlgorithm.

Definition at line 35 of file NViewMatchingAlgorithm.cc.

◆ UpdateUponDeletion()

void lar_content::NViewMatchingAlgorithm< ThreeViewMatchingControl< float > >::UpdateUponDeletion ( const pandora::Cluster *const  pDeletedCluster)
virtualinherited

Update to reflect cluster deletion.

Parameters
pDeletedClusteraddress of the deleted cluster

Implements lar_content::MatchingBaseAlgorithm.

Definition at line 36 of file NViewMatchingAlgorithm.cc.

Member Data Documentation

◆ m_algorithmToolVector

RemnantTensorToolVector lar_content::ThreeViewRemnantsAlgorithm::m_algorithmToolVector
private

The algorithm tool list.

Definition at line 46 of file ThreeViewRemnantsAlgorithm.h.

◆ m_instanceName

std::string pandora::Process::m_instanceName
protectedinherited

The process instance name.

Definition at line 89 of file Process.h.

◆ m_matchingControl

MatchingType lar_content::NViewMatchingAlgorithm< ThreeViewMatchingControl< float > >::m_matchingControl
protectedinherited

The matching control.

Definition at line 53 of file NViewMatchingAlgorithm.h.

◆ m_minClusterCaloHits

unsigned int lar_content::ThreeViewRemnantsAlgorithm::m_minClusterCaloHits
private

The selection cut on the number of cluster calo hits.

Definition at line 49 of file ThreeViewRemnantsAlgorithm.h.

◆ m_nMaxTensorToolRepeats

unsigned int lar_content::ThreeViewRemnantsAlgorithm::m_nMaxTensorToolRepeats
private

The maximum number of repeat loops over tensor tools.

Definition at line 48 of file ThreeViewRemnantsAlgorithm.h.

◆ m_outputPfoListName

std::string lar_content::MatchingBaseAlgorithm::m_outputPfoListName
privateinherited

The output pfo list name.

Definition at line 181 of file MatchingBaseAlgorithm.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_pseudoChi2Cut

float lar_content::ThreeViewRemnantsAlgorithm::m_pseudoChi2Cut
private

The selection cut on the matched chi2.

Definition at line 51 of file ThreeViewRemnantsAlgorithm.h.

◆ m_type

std::string pandora::Process::m_type
protectedinherited

The process type.

Definition at line 88 of file Process.h.

◆ m_xOverlapWindow

float lar_content::ThreeViewRemnantsAlgorithm::m_xOverlapWindow
private

The sampling pitch in the x coordinate.

Definition at line 50 of file ThreeViewRemnantsAlgorithm.h.


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