TwoDVertexDistanceFeatureTool class for the calculation of 2d distance to neutrino vertex.
More...
#include <TrackShowerIdFeatureTool.h>
|
pandora::StatusCode | ReadSettings (const pandora::TiXmlHandle xmlHandle) |
|
float | CalculateVertexDistance (const pandora::Algorithm *const pAlgorithm, const pandora::Cluster *const pCluster) const |
| Calculation of vertex distance. More...
|
|
TwoDVertexDistanceFeatureTool class for the calculation of 2d distance to neutrino vertex.
Definition at line 92 of file TrackShowerIdFeatureTool.h.
lar_content::TwoDVertexDistanceFeatureTool::TwoDVertexDistanceFeatureTool |
( |
| ) |
|
float lar_content::TwoDVertexDistanceFeatureTool::CalculateVertexDistance |
( |
const pandora::Algorithm *const |
pAlgorithm, |
|
|
const pandora::Cluster *const |
pCluster |
|
) |
| const |
|
private |
Calculation of vertex distance.
- Parameters
-
pCluster | the cluster we are characterizing |
- Returns
- distance to neutrino vertex
StatusCode lar_content::TwoDVertexDistanceFeatureTool::ReadSettings |
( |
const pandora::TiXmlHandle |
xmlHandle | ) |
|
|
private |
Definition at line 235 of file TrackShowerIdFeatureTool.cc.
237 PANDORA_RETURN_RESULT_IF_AND_IF(
238 STATUS_CODE_SUCCESS, STATUS_CODE_NOT_FOUND, !=, XmlHelper::ReadValue(xmlHandle,
"SlidingLinearFitWindow",
m_slidingLinearFitWindow));
240 return STATUS_CODE_SUCCESS;
unsigned int m_slidingLinearFitWindow
The sliding linear fit window.
void lar_content::TwoDVertexDistanceFeatureTool::Run |
( |
LArMvaHelper::MvaFeatureVector & |
featureVector, |
|
|
const pandora::Algorithm *const |
pAlgorithm, |
|
|
const pandora::Cluster *const |
pCluster |
|
) |
| |
Definition at line 212 of file TrackShowerIdFeatureTool.cc.
215 if (PandoraContentApi::GetSettings(*pAlgorithm)->ShouldDisplayAlgorithmInfo())
216 std::cout <<
"----> Running Algorithm Tool: " << this->GetInstanceName() <<
", " << this->GetType() <<
std::endl;
218 float straightLineLength(-1.
f),
ratio(-1.
f);
222 straightLineLength = (slidingFitResultLarge.GetGlobalMaxLayerPosition() - slidingFitResultLarge.GetGlobalMinLayerPosition()).GetMagnitude();
223 if (straightLineLength > std::numeric_limits<float>::epsilon())
226 catch (
const StatusCodeException &)
230 featureVector.push_back(
ratio);
static float GetVertexDistance(const pandora::Algorithm *const pAlgorithm, const pandora::Cluster *const pCluster)
Get the distance between the interaction vertex (if present in the current vertex list) and a provide...
static float GetWireZPitch(const pandora::Pandora &pandora, const float maxWirePitchDiscrepancy=0.01)
Return the wire pitch.
unsigned int m_slidingLinearFitWindow
The sliding linear fit window.
QTextStream & endl(QTextStream &s)
unsigned int lar_content::TwoDVertexDistanceFeatureTool::m_slidingLinearFitWindow |
|
private |
The documentation for this class was generated from the following files: