DeltaRayIdentificationAlgorithm class.
More...
#include "DeltaRayIdentificationAlgorithm.h"
|
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.
|
|
|
pandora::StatusCode | Run () |
| Run the algorithm.
|
|
void | GetPfos (const std::string &inputPfoListName, pandora::PfoVector &outputPfoVector) const |
| Get the vector of Pfos, given the input list name.
|
|
void | BuildAssociationMap (const pandora::PfoVector &inputPfos, const pandora::PfoVector &outputPfos, PfoAssociationMap &pfoAssociationMap) const |
| Build parent/daughter associations between PFOs.
|
|
bool | IsAssociated (const pandora::ParticleFlowObject *const pDaughterPfo, const pandora::ParticleFlowObject *const pParentPfo, float &displacement) const |
| Determine if a given pair of Pfos have a parent/daughter association.
|
|
float | GetTwoDSeparation (const pandora::ParticleFlowObject *const pDaughterPfo, const pandora::ParticleFlowObject *const pParentPfo) const |
| Calculate 2D separation between two Pfos.
|
|
void | GetTwoDVertices (const pandora::ParticleFlowObject *const pPfo, const pandora::HitType &hitType, pandora::CartesianPointVector &vertexVector) const |
| Calculate 2D separation between two Pfos.
|
|
float | GetClosestDistance (const pandora::CartesianPointVector &vertexVector, const pandora::ClusterList &clusterList) const |
| Calculate closest 2D separation between a set of vertices and a set of clusters.
|
|
void | BuildParentDaughterLinks (const PfoAssociationMap &pfoAssociationMap, pandora::PfoList &outputPfoList) const |
| Build the parent/daughter links from the map of parent/daughter associations.
|
|
const pandora::ParticleFlowObject * | GetParent (const PfoAssociationMap &pfoAssociationMap, const pandora::ParticleFlowObject *const pPfo) const |
| For a given daughter, follow the parent/daughter links to find the overall parent.
|
|
pandora::StatusCode | ReadSettings (const pandora::TiXmlHandle xmlHandle) |
| Read the algorithm settings.
|
|
◆ PfoAssociationMap
◆ DeltaRayIdentificationAlgorithm()
lar_content::DeltaRayIdentificationAlgorithm::DeltaRayIdentificationAlgorithm |
( |
| ) |
|
◆ BuildAssociationMap()
Build parent/daughter associations between PFOs.
- Parameters
-
inputPfos | the input vector of current parent Pfos |
outputPfos | the input vector of current daughter Pfos |
pfoAssociationMap | the output map of parent/daughter associations |
Definition at line 76 of file DeltaRayIdentificationAlgorithm.cc.
◆ BuildParentDaughterLinks()
Build the parent/daughter links from the map of parent/daughter associations.
- Parameters
-
pfoAssociationMap | the map of parent/daughter associations |
outputPfoList | the output list of daughter Pfos |
Definition at line 275 of file DeltaRayIdentificationAlgorithm.cc.
◆ GetClosestDistance()
Calculate closest 2D separation between a set of vertices and a set of clusters.
- Parameters
-
vertexVector | the vector of possible vertex positions |
clusterList | the list of clusters |
Definition at line 249 of file DeltaRayIdentificationAlgorithm.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.
◆ GetParent()
For a given daughter, follow the parent/daughter links to find the overall parent.
- Parameters
-
pfoAssociationMap | the map of parent/daughter associations |
pPfo | the daughter Pfo |
- Returns
- the parent Pfo
Definition at line 304 of file DeltaRayIdentificationAlgorithm.cc.
◆ GetPfos()
void lar_content::DeltaRayIdentificationAlgorithm::GetPfos |
( |
const std::string & |
inputPfoListName, |
|
|
pandora::PfoVector & |
outputPfoVector |
|
) |
| const |
|
private |
Get the vector of Pfos, given the input list name.
- Parameters
-
inputPfoListName | the input Pfo list name |
outputPfoVector | the output vector of Pfos |
Definition at line 62 of file DeltaRayIdentificationAlgorithm.cc.
◆ GetTwoDSeparation()
Calculate 2D separation between two Pfos.
- Parameters
-
pDaughterPfo | the input daughter Pfo |
pParentPfo | the input parent Pfo |
- Returns
- average displacement between parent and daughter
Definition at line 186 of file DeltaRayIdentificationAlgorithm.cc.
◆ GetTwoDVertices()
Calculate 2D separation between two Pfos.
- Parameters
-
pPfo | the input daughter Pfo |
hitType | the hit type |
vertexVector | the vector of possible vertex positions |
Definition at line 230 of file DeltaRayIdentificationAlgorithm.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 |
◆ IsAssociated()
Determine if a given pair of Pfos have a parent/daughter association.
- Parameters
-
pDaughterPfo | the input daughter Pfo |
pParentPfo | the input parent Pfo |
displacement | the average displacement between parent and daughter |
- Returns
- boolean
Definition at line 149 of file DeltaRayIdentificationAlgorithm.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.
◆ Reset()
|
inlineprotectedvirtualinherited |
◆ Run()
StatusCode lar_content::DeltaRayIdentificationAlgorithm::Run |
( |
| ) |
|
|
privatevirtual |
◆ m_daughterPfoListName
std::string lar_content::DeltaRayIdentificationAlgorithm::m_daughterPfoListName |
|
private |
◆ m_distanceForMatching
float lar_content::DeltaRayIdentificationAlgorithm::m_distanceForMatching |
|
private |
◆ m_instanceName
std::string pandora::Process::m_instanceName |
|
protectedinherited |
The process instance name.
Definition at line 89 of file Process.h.
◆ m_maxDaughterLengthSquared
float lar_content::DeltaRayIdentificationAlgorithm::m_maxDaughterLengthSquared |
|
private |
◆ m_minParentLengthSquared
float lar_content::DeltaRayIdentificationAlgorithm::m_minParentLengthSquared |
|
private |
◆ m_parentPfoListName
std::string lar_content::DeltaRayIdentificationAlgorithm::m_parentPfoListName |
|
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: