LArSoft  v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
pma::bSegmentProjLess Class Reference

#include "Utilities.h"

Inheritance diagram for pma::bSegmentProjLess:

Public Member Functions

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

Private Attributes

TVector3 segStart
 
TVector3 segStop
 

Detailed Description

Definition at line 91 of file Utilities.h.

Constructor & Destructor Documentation

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

Definition at line 354 of file Utilities.cxx.

354  :
355  segStart(s0), segStop(s1)
356 {
357  if (s0 == s1) mf::LogError("pma::bSegmentProjLess") << "Vectors equal!";
358 }
MaybeLogger_< ELseverityLevel::ELsev_error, false > LogError

Member Function Documentation

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

Definition at line 97 of file Utilities.h.

References pma::GetSegmentProjVector().

98  {
99  if (p1 && p2)
100  {
101  double b1 = pma::GetSegmentProjVector(*p1, segStart, segStop);
102  double b2 = pma::GetSegmentProjVector(*p1, segStart, segStop);
103  return b1 < b2;
104  }
105  else return false;
106  }
double GetSegmentProjVector(const TVector2 &p, const TVector2 &p0, const TVector2 &p1)
Definition: Utilities.cxx:111

Member Data Documentation

TVector3 pma::bSegmentProjLess::segStart
private

Definition at line 109 of file Utilities.h.

TVector3 pma::bSegmentProjLess::segStop
private

Definition at line 109 of file Utilities.h.


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