ClearTracksTool class.
More...
#include <ClearTracksTool.h>
ClearTracksTool class.
Definition at line 19 of file ClearTracksTool.h.
lar_content::ClearTracksTool::ClearTracksTool |
( |
| ) |
|
Default constructor.
Definition at line 17 of file ClearTracksTool.cc.
float m_minMatchedFraction
The min matched sampling point fraction for particle creation.
float m_minXOverlapFraction
The min x overlap fraction (in each view) 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 39 of file ClearTracksTool.cc.
49 const XOverlap &xOverlap(iter->GetOverlapResult().GetXOverlap());
51 if ((xOverlap.GetXSpanU() < std::numeric_limits<float>::epsilon()) || (xOverlap.GetXOverlapSpan() / xOverlap.GetXSpanU() <
m_minXOverlapFraction))
54 if ((xOverlap.GetXSpanV() < std::numeric_limits<float>::epsilon()) || (xOverlap.GetXOverlapSpan() / xOverlap.GetXSpanV() <
m_minXOverlapFraction))
57 if ((xOverlap.GetXSpanW() < std::numeric_limits<float>::epsilon()) || (xOverlap.GetXOverlapSpan() / xOverlap.GetXSpanW() <
m_minXOverlapFraction))
60 ProtoParticle protoParticle;
61 protoParticle.m_clusterList.push_back(iter->GetClusterU());
62 protoParticle.m_clusterList.push_back(iter->GetClusterV());
63 protoParticle.m_clusterList.push_back(iter->GetClusterW());
64 protoParticleVector.push_back(protoParticle);
67 particlesMade |= pAlgorithm->CreateThreeDParticles(protoParticleVector);
std::vector< ProtoParticle > ProtoParticleVector
float m_minMatchedFraction
The min matched sampling point fraction for particle creation.
float m_minXOverlapFraction
The min x overlap fraction (in each view) for particle creation.
StatusCode lar_content::ClearTracksTool::ReadSettings |
( |
const pandora::TiXmlHandle |
xmlHandle | ) |
|
|
private |
Definition at line 72 of file ClearTracksTool.cc.
74 PANDORA_RETURN_RESULT_IF_AND_IF(
75 STATUS_CODE_SUCCESS, STATUS_CODE_NOT_FOUND, !=, XmlHelper::ReadValue(xmlHandle,
"MinMatchedFraction",
m_minMatchedFraction));
77 PANDORA_RETURN_RESULT_IF_AND_IF(
78 STATUS_CODE_SUCCESS, STATUS_CODE_NOT_FOUND, !=, XmlHelper::ReadValue(xmlHandle,
"MinXOverlapFraction",
m_minXOverlapFraction));
80 return STATUS_CODE_SUCCESS;
float m_minMatchedFraction
The min matched sampling point fraction for particle creation.
float m_minXOverlapFraction
The min x overlap fraction (in each view) for particle creation.
Run the algorithm tool.
- Parameters
-
pAlgorithm | address of the calling algorithm |
overlapTensor | the overlap tensor |
- Returns
- whether changes have been made by the tool
Implements lar_content::TransverseTensorTool.
Definition at line 23 of file ClearTracksTool.cc.
25 if (PandoraContentApi::GetSettings(*pAlgorithm)->ShouldDisplayAlgorithmInfo())
26 std::cout <<
"----> Running Algorithm Tool: " << this->GetInstanceName() <<
", " << this->GetType() <<
std::endl;
28 bool particlesMade(
false);
31 overlapTensor.GetUnambiguousElements(
true, elementList);
void CreateThreeDParticles(ThreeViewTransverseTracksAlgorithm *const pAlgorithm, const TensorType::ElementList &elementList, bool &particlesMade) const
Create three dimensional particles for a given tensor element list.
std::vector< Element > ElementList
QTextStream & endl(QTextStream &s)
float lar_content::ClearTracksTool::m_minMatchedFraction |
|
private |
The min matched sampling point fraction for particle creation.
Definition at line 41 of file ClearTracksTool.h.
float lar_content::ClearTracksTool::m_minXOverlapFraction |
|
private |
The min x overlap fraction (in each view) for particle creation.
Definition at line 42 of file ClearTracksTool.h.
The documentation for this class was generated from the following files:
- larpandoracontent/larpandoracontent/LArThreeDReco/LArTransverseTrackMatching/ClearTracksTool.h
- larpandoracontent/larpandoracontent/LArThreeDReco/LArTransverseTrackMatching/ClearTracksTool.cc