ThreeViewShowersAlgorithm class.
More...
#include "ThreeViewShowersAlgorithm.h"
|
MatchingType & | GetMatchingControl () |
| 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 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 | TidyUp () |
| Tidy member variables in derived class.
|
|
void | AddToSlidingFitCache (const pandora::Cluster *const pCluster) |
| Add a new sliding fit result, for the specified cluster, to the algorithm cache.
|
|
void | RemoveFromSlidingFitCache (const pandora::Cluster *const pCluster) |
| Remova an existing sliding fit result, for the specified cluster, from the algorithm cache.
|
|
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.
|
|
pandora::StatusCode | CalculateOverlapResult (const pandora::Cluster *const pClusterU, const pandora::Cluster *const pClusterV, const pandora::Cluster *const pClusterW, ShowerOverlapResult &overlapResult) |
| Calculate the overlap result for given group of clusters.
|
|
void | GetShowerPositionMaps (const TwoDSlidingShowerFitResult &fitResultU, const TwoDSlidingShowerFitResult &fitResultV, const TwoDSlidingShowerFitResult &fitResultW, const XSampling &xSampling, ShowerPositionMapPair &positionMapsU, ShowerPositionMapPair &positionMapsV, ShowerPositionMapPair &positionMapsW) const |
| Get the shower position maps.
|
|
void | GetBestHitOverlapFraction (const pandora::Cluster *const pCluster, const XSampling &xSampling, const ShowerPositionMapPair &positionMaps, unsigned int &nSampledHits, unsigned int &nMatchedHits) const |
| Get the best fraction of hits, in the common x-overlap range, contained within the provided pair of shower boundaries.
|
|
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.
|
|
◆ BaseAlgorithm
◆ MatchingType
◆ ShowerPositionMapPair
◆ TensorToolVector
◆ ThreeViewShowersAlgorithm()
lar_content::ThreeViewShowersAlgorithm::ThreeViewShowersAlgorithm |
( |
| ) |
|
◆ AddToSlidingFitCache()
void lar_content::ThreeViewShowersAlgorithm::AddToSlidingFitCache |
( |
const pandora::Cluster *const |
pCluster | ) |
|
|
private |
Add a new sliding fit result, for the specified cluster, to the algorithm cache.
- Parameters
-
pCluster | address of the relevant cluster |
Definition at line 136 of file ThreeViewShowersAlgorithm.cc.
◆ CalculateOverlapResult() [1/2]
◆ CalculateOverlapResult() [2/2]
Calculate the overlap result for given group of clusters.
- Parameters
-
pClusterU | the cluster from the U view |
pClusterV | the cluster from the V view |
pClusterW | the cluster from the W view |
overlapResult | to receive the overlap result |
Definition at line 169 of file ThreeViewShowersAlgorithm.cc.
◆ CreateThreeDParticles()
bool lar_content::MatchingBaseAlgorithm::CreateThreeDParticles |
( |
const ProtoParticleVector & |
protoParticleVector | ) |
|
|
virtualinherited |
Create particles using findings from recent algorithm processing.
- Parameters
-
protoParticleVector | the proto particle vector |
whether | particles were created |
Definition at line 88 of file MatchingBaseAlgorithm.cc.
◆ ExamineOverlapContainer()
void lar_content::ThreeViewShowersAlgorithm::ExamineOverlapContainer |
( |
| ) |
|
|
privatevirtual |
◆ GetBestHitOverlapFraction()
void lar_content::ThreeViewShowersAlgorithm::GetBestHitOverlapFraction |
( |
const pandora::Cluster *const |
pCluster, |
|
|
const XSampling & |
xSampling, |
|
|
const ShowerPositionMapPair & |
positionMaps, |
|
|
unsigned int & |
nSampledHits, |
|
|
unsigned int & |
nMatchedHits |
|
) |
| const |
|
private |
Get the best fraction of hits, in the common x-overlap range, contained within the provided pair of shower boundaries.
- Parameters
-
pCluster | the address of the candidate cluster |
xSampling | the x sampling details |
positionMaps | the shower edge position maps |
nSampledHits | to receive the number of hits in the common x-overlap range |
nMatchedHits | to receive the number of sampled hits contained within the shower edges |
Definition at line 282 of file ThreeViewShowersAlgorithm.cc.
◆ GetCachedSlidingFitResult()
Get a sliding shower fit result from the algorithm cache.
- Parameters
-
pCluster | address of the relevant cluster |
Definition at line 35 of file ThreeViewShowersAlgorithm.cc.
◆ GetClusterListName()
◆ GetInputClusterList()
◆ 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()
◆ 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()
◆ GetShowerPositionMaps()
Get the shower position maps.
- Parameters
-
fitResultU | the sliding shower fit result for the u view |
fitResultV | the sliding shower fit result for the v view |
fitResultW | the sliding shower fit result for the w view |
xSampling | the x sampling details |
positionMapsU | to receive the shower position maps for the u view |
positionMapsV | to receive the shower position maps for the v view |
positionMapsW | to receive the shower position maps for the w view |
Definition at line 219 of file ThreeViewShowersAlgorithm.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()
|
inlineprotectedvirtualinherited |
◆ MakeClusterMerges()
bool lar_content::MatchingBaseAlgorithm::MakeClusterMerges |
( |
const ClusterMergeMap & |
clusterMergeMap | ) |
|
|
virtualinherited |
Merge clusters together.
- Parameters
-
clusterMergeMap | the cluster merge map |
- Returns
- whether changes to the overlap container have been made
Definition at line 48 of file MatchingBaseAlgorithm.cc.
◆ PerformMainLoop()
|
protectedvirtualinherited |
◆ PrepareAllInputClusters()
|
protectedvirtualinherited |
◆ PrepareInputClusters()
void lar_content::ThreeViewShowersAlgorithm::PrepareInputClusters |
( |
pandora::ClusterList & |
preparedClusterList | ) |
|
|
virtual |
Perform any preparatory steps required on the input clusters, e.g. caching expensive fit results.
- Parameters
-
preparedClusterList | to receive the prepared cluster list, non const so as to be able to modify input selected list |
Reimplemented from lar_content::MatchingBaseAlgorithm.
Definition at line 100 of file ThreeViewShowersAlgorithm.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.
◆ RemoveFromSlidingFitCache()
void lar_content::ThreeViewShowersAlgorithm::RemoveFromSlidingFitCache |
( |
const pandora::Cluster *const |
pCluster | ) |
|
|
private |
Remova an existing sliding fit result, for the specified cluster, from the algorithm cache.
- Parameters
-
pCluster | address of the relevant cluster |
Definition at line 147 of file ThreeViewShowersAlgorithm.cc.
◆ Reset()
|
inlineprotectedvirtualinherited |
◆ Run()
StatusCode lar_content::MatchingBaseAlgorithm::Run |
( |
| ) |
|
|
privatevirtualinherited |
◆ SelectAllInputClusters()
|
protectedvirtualinherited |
◆ SelectInputClusters()
◆ SetPfoParameters()
void lar_content::MatchingBaseAlgorithm::SetPfoParameters |
( |
const ProtoParticle & |
protoParticle, |
|
|
PandoraContentApi::ParticleFlowObject::Parameters & |
pfoParameters |
|
) |
| const |
|
virtualinherited |
Set Pfo properties.
- Parameters
-
protoParticle | the input proto particle |
pfoParameters | the output pfo parameters |
Definition at line 116 of file MatchingBaseAlgorithm.cc.
◆ SetPfoParticleId()
void lar_content::MatchingBaseAlgorithm::SetPfoParticleId |
( |
PandoraContentApi::ParticleFlowObject::Parameters & |
pfoParameters | ) |
const |
|
virtualinherited |
◆ TidyUp()
void lar_content::ThreeViewShowersAlgorithm::TidyUp |
( |
| ) |
|
|
privatevirtual |
◆ UpdateForNewCluster()
void lar_content::ThreeViewShowersAlgorithm::UpdateForNewCluster |
( |
const pandora::Cluster *const |
pNewCluster | ) |
|
|
virtual |
◆ UpdateUponDeletion()
void lar_content::ThreeViewShowersAlgorithm::UpdateUponDeletion |
( |
const pandora::Cluster *const |
pDeletedCluster | ) |
|
|
virtual |
◆ m_algorithmToolVector
◆ m_ignoreUnavailableClusters
bool lar_content::ThreeViewShowersAlgorithm::m_ignoreUnavailableClusters |
|
private |
◆ m_instanceName
std::string pandora::Process::m_instanceName |
|
protectedinherited |
The process instance name.
Definition at line 89 of file Process.h.
◆ m_matchingControl
◆ m_minClusterCaloHits
unsigned int lar_content::ThreeViewShowersAlgorithm::m_minClusterCaloHits |
|
private |
◆ m_minClusterLengthSquared
float lar_content::ThreeViewShowersAlgorithm::m_minClusterLengthSquared |
|
private |
◆ m_minShowerMatchedFraction
float lar_content::ThreeViewShowersAlgorithm::m_minShowerMatchedFraction |
|
private |
◆ m_minShowerMatchedPoints
unsigned int lar_content::ThreeViewShowersAlgorithm::m_minShowerMatchedPoints |
|
private |
◆ m_nMaxTensorToolRepeats
unsigned int lar_content::ThreeViewShowersAlgorithm::m_nMaxTensorToolRepeats |
|
private |
◆ m_outputPfoListName
std::string lar_content::MatchingBaseAlgorithm::m_outputPfoListName |
|
privateinherited |
◆ 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_slidingFitResultMap
◆ m_slidingFitWindow
unsigned int lar_content::ThreeViewShowersAlgorithm::m_slidingFitWindow |
|
private |
◆ m_type
std::string pandora::Process::m_type |
|
protectedinherited |
The process type.
Definition at line 88 of file Process.h.
◆ m_visualize
bool lar_content::ThreeViewShowersAlgorithm::m_visualize |
|
private |
The documentation for this class was generated from the following files: