RPhiFeatureTool class.
More...
#include "RPhiFeatureTool.h"
|
| RPhiFeatureTool () |
| Default constructor.
|
|
void | Run (LArMvaHelper::MvaFeatureVector &featureVector, const VertexSelectionBaseAlgorithm *const pAlgorithm, const pandora::Vertex *const pVertex, const VertexSelectionBaseAlgorithm::SlidingFitDataListMap &, const VertexSelectionBaseAlgorithm::ClusterListMap &, const VertexSelectionBaseAlgorithm::KDTreeMap &kdTreeMap, const VertexSelectionBaseAlgorithm::ShowerClusterListMap &, const float beamDeweightingScore, float &bestFastScore) |
| Run the tool.
|
|
virtual void | Run (MvaTypes::MvaFeatureVector &featureVector, Ts... args)=0 |
| Run the algorithm tool.
|
|
virtual void | Run (MvaTypes::MvaFeatureMap &featureMap, pandora::StringVector &featureOrder, const std::string &featureToolName, Ts...) |
|
const std::string & | GetType () const |
| Get the type.
|
|
const std::string & | GetInstanceName () const |
| Get the instance name.
|
|
const Pandora & | GetPandora () const |
| Get the associated pandora instance.
|
|
|
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 | ReadSettings (const pandora::TiXmlHandle xmlHandle) |
| Read the algorithm settings.
|
|
float | GetFastScore (const KernelEstimate &kernelEstimateU, const KernelEstimate &kernelEstimateV, const KernelEstimate &kernelEstimateW) const |
| Get the score for a trio of kernel estimations, using fast histogram approach.
|
|
float | GetMidwayScore (const KernelEstimate &kernelEstimateU, const KernelEstimate &kernelEstimateV, const KernelEstimate &kernelEstimateW) const |
| Get the score for a trio of kernel estimations, using kernel density estimation but with reduced (binned) sampling.
|
|
float | GetFullScore (const KernelEstimate &kernelEstimateU, const KernelEstimate &kernelEstimateV, const KernelEstimate &kernelEstimateW) const |
| Get the score for a trio of kernel estimations, using kernel density estimation and full hit-by-hit sampling.
|
|
void | FillKernelEstimate (const pandora::Vertex *const pVertex, const pandora::HitType hitType, VertexSelectionBaseAlgorithm::HitKDTree2D &kdTree, KernelEstimate &kernelEstimate) const |
| Use hits in clusters (in the provided kd tree) to fill a provided kernel estimate with hit-vertex relationship information.
|
|
bool | AcceptVertexLocation (const pandora::Vertex *const pVertex, const pandora::VertexList &selectedVertexList) const |
| Whether to accept a candidate vertex, based on its spatial position in relation to other selected candidates.
|
|
float | atan2Fast (const float y, const float x) const |
| Fast estimate of std::atan2 function. Rather coarse (max |error| > 0.01) but should suffice for this use-case.
|
|
|
bool | m_fastScoreCheck |
| Whether to use the fast histogram based score to selectively avoid calling full or midway scores.
|
|
bool | m_fastScoreOnly |
| Whether to use the fast histogram based score only.
|
|
bool | m_fullScore |
| Whether to use the full kernel density estimation score, as opposed to the midway score.
|
|
float | m_kernelEstimateSigma |
| The Gaussian width to use for kernel estimation.
|
|
float | m_kappa |
| Hit-deweighting offset, of form: weight = 1 / sqrt(distance + kappa), units cm.
|
|
float | m_maxHitVertexDisplacement1D |
| Max hit-vertex displacement in any one dimension for contribution to kernel estimation.
|
|
float | m_minFastScoreFraction |
| Fast score must be at least this fraction of best fast score to calculate full score.
|
|
unsigned int | m_fastHistogramNPhiBins |
| Number of bins to use for fast score histograms.
|
|
float | m_fastHistogramPhiMin |
| Min value for fast score histograms.
|
|
float | m_fastHistogramPhiMax |
| Max value for fast score histograms.
|
|
bool | m_enableFolding |
| Whether to enable folding of -pi -> +pi phi distribution into 0 -> +pi region only.
|
|
RPhiFeatureTool class.
Definition at line 21 of file RPhiFeatureTool.h.
◆ FeatureToolMap
◆ FeatureToolVector
◆ RPhiFeatureTool()
lar_content::RPhiFeatureTool::RPhiFeatureTool |
( |
| ) |
|
◆ AcceptVertexLocation()
Whether to accept a candidate vertex, based on its spatial position in relation to other selected candidates.
- Parameters
-
pVertex | the address of the vertex |
selectedVertexList | the selected vertex list |
- Returns
- boolean
◆ atan2Fast()
float lar_content::RPhiFeatureTool::atan2Fast |
( |
const float |
y, |
|
|
const float |
x |
|
) |
| const |
|
private |
Fast estimate of std::atan2 function. Rather coarse (max |error| > 0.01) but should suffice for this use-case.
- Parameters
-
y | the y coordinate |
x | the x coordinate |
- Returns
- estimate of std::atan2
Definition at line 198 of file RPhiFeatureTool.cc.
◆ FillKernelEstimate()
Use hits in clusters (in the provided kd tree) to fill a provided kernel estimate with hit-vertex relationship information.
- Parameters
-
pVertex | the address of the vertex |
hitType | the relevant hit type |
kdTree | the relevant kd tree |
kernelEstimate | to receive the populated kernel estimate |
Definition at line 166 of file RPhiFeatureTool.cc.
◆ GetFastScore()
Get the score for a trio of kernel estimations, using fast histogram approach.
- Parameters
-
kernelEstimateU | the kernel estimate for the u view |
kernelEstimateV | the kernel estimate for the v view |
kernelEstimateW | the kernel estimate for the w view |
- Returns
- the fast score
Definition at line 82 of file RPhiFeatureTool.cc.
◆ GetFullScore()
Get the score for a trio of kernel estimations, using kernel density estimation and full hit-by-hit sampling.
- Parameters
-
kernelEstimateU | the kernel estimate for the u view |
kernelEstimateV | the kernel estimate for the v view |
kernelEstimateW | the kernel estimate for the w view |
- Returns
- the full score
Definition at line 148 of file RPhiFeatureTool.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.
◆ GetMidwayScore()
Get the score for a trio of kernel estimations, using kernel density estimation but with reduced (binned) sampling.
- Parameters
-
kernelEstimateU | the kernel estimate for the u view |
kernelEstimateV | the kernel estimate for the v view |
kernelEstimateW | the kernel estimate for the w view |
- Returns
- the midway score
Definition at line 118 of file RPhiFeatureTool.cc.
◆ 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 |
◆ 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() [1/3]
Run the tool.
- Parameters
-
pAlgorithm | address of the calling algorithm |
pVertex | address of the vertex |
kdTreeMap | map of the hit kd trees |
beamDeweightingScore | the beam deweighting score for this vertex |
bestFastScore | the best fast score |
- Returns
- the r/phi feature
Definition at line 38 of file RPhiFeatureTool.cc.
◆ Run() [2/3]
◆ Run() [3/3]
Run the algorithm tool.
- Parameters
-
featureVector | the vector of features to append |
args | arguments to pass to the tool |
◆ m_enableFolding
bool lar_content::RPhiFeatureTool::m_enableFolding |
|
private |
Whether to enable folding of -pi -> +pi phi distribution into 0 -> +pi region only.
Definition at line 178 of file RPhiFeatureTool.h.
◆ m_fastHistogramNPhiBins
unsigned int lar_content::RPhiFeatureTool::m_fastHistogramNPhiBins |
|
private |
◆ m_fastHistogramPhiMax
float lar_content::RPhiFeatureTool::m_fastHistogramPhiMax |
|
private |
◆ m_fastHistogramPhiMin
float lar_content::RPhiFeatureTool::m_fastHistogramPhiMin |
|
private |
◆ m_fastScoreCheck
bool lar_content::RPhiFeatureTool::m_fastScoreCheck |
|
private |
Whether to use the fast histogram based score to selectively avoid calling full or midway scores.
Definition at line 165 of file RPhiFeatureTool.h.
◆ m_fastScoreOnly
bool lar_content::RPhiFeatureTool::m_fastScoreOnly |
|
private |
Whether to use the fast histogram based score only.
Definition at line 166 of file RPhiFeatureTool.h.
◆ m_fullScore
bool lar_content::RPhiFeatureTool::m_fullScore |
|
private |
Whether to use the full kernel density estimation score, as opposed to the midway score.
Definition at line 167 of file RPhiFeatureTool.h.
◆ m_instanceName
std::string pandora::Process::m_instanceName |
|
protectedinherited |
The process instance name.
Definition at line 89 of file Process.h.
◆ m_kappa
float lar_content::RPhiFeatureTool::m_kappa |
|
private |
Hit-deweighting offset, of form: weight = 1 / sqrt(distance + kappa), units cm.
Definition at line 170 of file RPhiFeatureTool.h.
◆ m_kernelEstimateSigma
float lar_content::RPhiFeatureTool::m_kernelEstimateSigma |
|
private |
◆ m_maxHitVertexDisplacement1D
float lar_content::RPhiFeatureTool::m_maxHitVertexDisplacement1D |
|
private |
Max hit-vertex displacement in any one dimension for contribution to kernel estimation.
Definition at line 171 of file RPhiFeatureTool.h.
◆ m_minFastScoreFraction
float lar_content::RPhiFeatureTool::m_minFastScoreFraction |
|
private |
Fast score must be at least this fraction of best fast score to calculate full score.
Definition at line 173 of file RPhiFeatureTool.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.
The documentation for this class was generated from the following files: