All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 349 of file TrackShowerIdFeatureTool.h.

Constructor & Destructor Documentation

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

Constructor.

Definition at line 1202 of file TrackShowerIdFeatureTool.cc.

1202  : m_neutrinoVertex(vertexPosition2D)
1203 {
1204 }

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 1208 of file TrackShowerIdFeatureTool.cc.

1209 {
1210  const float distanceL((left->GetPositionVector() - m_neutrinoVertex).GetMagnitudeSquared());
1211  const float distanceR((right->GetPositionVector() - m_neutrinoVertex).GetMagnitudeSquared());
1212  return distanceL < distanceR;
1213 }
walls no left
Definition: selectors.fcl:105

Member Data Documentation

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

Definition at line 366 of file TrackShowerIdFeatureTool.h.


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