Public Member Functions | Public Attributes | List of all members
lar_content::ThreeDChargeFeatureTool::VertexComparator Class Reference

VertexComparator class for comparison of two points wrt neutrino vertex position. More...

#include <TrackShowerIdFeatureTool.h>

Public Member Functions

 VertexComparator (const pandora::CartesianVector vertexPosition2D)
 Constructor. More...
 
bool operator() (const pandora::CaloHit *const left, const pandora::CaloHit *const right) const
 operator < More...
 

Public Attributes

pandora::CartesianVector m_neutrinoVertex
 

Detailed Description

VertexComparator class for comparison of two points wrt neutrino vertex position.

Definition at line 270 of file TrackShowerIdFeatureTool.h.

Constructor & Destructor Documentation

lar_content::ThreeDChargeFeatureTool::VertexComparator::VertexComparator ( const pandora::CartesianVector  vertexPosition2D)

Constructor.

Definition at line 851 of file TrackShowerIdFeatureTool.cc.

851  : m_neutrinoVertex(vertexPosition2D)
852 {
853 }

Member Function Documentation

bool lar_content::ThreeDChargeFeatureTool::VertexComparator::operator() ( const pandora::CaloHit *const  left,
const pandora::CaloHit *const  right 
) const

operator <

Parameters
rhsobject for comparison
Returns
boolean

Definition at line 857 of file TrackShowerIdFeatureTool.cc.

858 {
859  const float distanceL((left->GetPositionVector() - m_neutrinoVertex).GetMagnitudeSquared());
860  const float distanceR((right->GetPositionVector() - m_neutrinoVertex).GetMagnitudeSquared());
861  return distanceL < distanceR;
862 }

Member Data Documentation

pandora::CartesianVector lar_content::ThreeDChargeFeatureTool::VertexComparator::m_neutrinoVertex

Definition at line 287 of file TrackShowerIdFeatureTool.h.


The documentation for this class was generated from the following files: