LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
pma::bSegmentProjLess Class Reference

#include "Utilities.h"

Public Member Functions

 bSegmentProjLess (const TVector3 &s0, const TVector3 &s1)
 
bool operator() (TVector3 *p1, TVector3 *p2) const
 

Private Attributes

TVector3 segStart
 
TVector3 segStop
 

Detailed Description

Definition at line 110 of file Utilities.h.

Constructor & Destructor Documentation

pma::bSegmentProjLess::bSegmentProjLess ( const TVector3 &  s0,
const TVector3 &  s1 
)

Definition at line 334 of file Utilities.cxx.

335  : segStart(s0), segStop(s1)
336 {
337  if (s0 == s1) mf::LogError("pma::bSegmentProjLess") << "Vectors equal!";
338 }
MaybeLogger_< ELseverityLevel::ELsev_error, false > LogError

Member Function Documentation

bool pma::bSegmentProjLess::operator() ( TVector3 *  p1,
TVector3 *  p2 
) const
inline

Definition at line 114 of file Utilities.h.

References pma::GetSegmentProjVector().

115  {
116  if (p1 && p2) {
117  double b1 = pma::GetSegmentProjVector(*p1, segStart, segStop);
118  double b2 = pma::GetSegmentProjVector(*p1, segStart, segStop);
119  return b1 < b2;
120  }
121  else
122  return false;
123  }
double GetSegmentProjVector(const TVector2 &p, const TVector2 &p0, const TVector2 &p1)
Definition: Utilities.cxx:112

Member Data Documentation

TVector3 pma::bSegmentProjLess::segStart
private

Definition at line 126 of file Utilities.h.

TVector3 pma::bSegmentProjLess::segStop
private

Definition at line 126 of file Utilities.h.


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