TwoViewClearTracksTool class.
More...
#include <TwoViewClearTracksTool.h>
lar_content::TwoViewClearTracksTool::TwoViewClearTracksTool |
( |
| ) |
|
Default constructor.
Definition at line 20 of file TwoViewClearTracksTool.cc.
float m_minMatchingScore
The min global matching score for particle creation.
float m_minXOverlapFraction
The min x overlap fraction value for particle creation.
float m_minLocallyMatchedFraction
The min locally matched fraction for particle creation.
Create three dimensional particles for a given tensor element list.
- Parameters
-
pAlgorithm | address of the calling algorithm (ultimately responsible for the particles) |
elementList | the tensor element list |
particlesMade | receive boolean indicating whether particles have been made |
Definition at line 42 of file TwoViewClearTracksTool.cc.
49 if (iter->GetOverlapResult().GetTwoViewXOverlap().GetXOverlapFraction0() -
m_minXOverlapFraction < -1.f * std::numeric_limits<float>::epsilon())
51 if (iter->GetOverlapResult().GetTwoViewXOverlap().GetXOverlapFraction1() -
m_minXOverlapFraction < -1.f * std::numeric_limits<float>::epsilon())
54 if (iter->GetOverlapResult().GetMatchingScore() - m_minMatchingScore < std::numeric_limits<float>::epsilon())
57 if (iter->GetOverlapResult().GetLocallyMatchedFraction() - m_minLocallyMatchedFraction < std::numeric_limits<float>::epsilon())
60 ProtoParticle protoParticle;
61 protoParticle.m_clusterList.push_back(iter->GetCluster1());
62 protoParticle.m_clusterList.push_back(iter->GetCluster2());
63 protoParticleVector.push_back(protoParticle);
66 particlesMade |= pAlgorithm->CreateThreeDParticles(protoParticleVector);
std::vector< ProtoParticle > ProtoParticleVector
float m_minXOverlapFraction
The min x overlap fraction value for particle creation.
StatusCode lar_content::TwoViewClearTracksTool::ReadSettings |
( |
const pandora::TiXmlHandle |
xmlHandle | ) |
|
|
private |
Definition at line 71 of file TwoViewClearTracksTool.cc.
73 PANDORA_RETURN_RESULT_IF_AND_IF(
74 STATUS_CODE_SUCCESS, STATUS_CODE_NOT_FOUND, !=, XmlHelper::ReadValue(xmlHandle,
"MinMatchingScore",
m_minMatchingScore));
76 PANDORA_RETURN_RESULT_IF_AND_IF(STATUS_CODE_SUCCESS, STATUS_CODE_NOT_FOUND, !=,
79 PANDORA_RETURN_RESULT_IF_AND_IF(
80 STATUS_CODE_SUCCESS, STATUS_CODE_NOT_FOUND, !=, XmlHelper::ReadValue(xmlHandle,
"MinXOverlapFraction",
m_minXOverlapFraction));
82 return STATUS_CODE_SUCCESS;
float m_minMatchingScore
The min global matching score for particle creation.
float m_minXOverlapFraction
The min x overlap fraction value for particle creation.
float m_minLocallyMatchedFraction
The min locally matched fraction for particle creation.
Run the algorithm tool.
- Parameters
-
pAlgorithm | address of the calling algorithm |
overlapMatrix | the overlap matrix |
- Returns
- whether changes have been made by the tool
Implements lar_content::TransverseMatrixTool.
Definition at line 26 of file TwoViewClearTracksTool.cc.
28 if (PandoraContentApi::GetSettings(*pAlgorithm)->ShouldDisplayAlgorithmInfo())
29 std::cout <<
"----> Running Algorithm Tool: " << this->GetInstanceName() <<
", " << this->GetType() <<
std::endl;
31 bool particlesMade(
false);
34 overlapMatrix.GetUnambiguousElements(
true, elementList);
std::vector< Element > ElementList
void CreateThreeDParticles(TwoViewTransverseTracksAlgorithm *const pAlgorithm, const MatrixType::ElementList &elementList, bool &particlesMade) const
Create three dimensional particles for a given tensor element list.
QTextStream & endl(QTextStream &s)
float lar_content::TwoViewClearTracksTool::m_minLocallyMatchedFraction |
|
private |
float lar_content::TwoViewClearTracksTool::m_minMatchingScore |
|
private |
float lar_content::TwoViewClearTracksTool::m_minXOverlapFraction |
|
private |
The documentation for this class was generated from the following files: