LArSoft  v07_13_02
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 93 of file Utilities.h.

Constructor & Destructor Documentation

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

Definition at line 343 of file Utilities.cxx.

343  :
344  segStart(s0), segStop(s1)
345 {
346  if (s0 == s1) mf::LogError("pma::bSegmentProjLess") << "Vectors equal!";
347 }
MaybeLogger_< ELseverityLevel::ELsev_error, false > LogError

Member Function Documentation

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

Definition at line 99 of file Utilities.h.

References pma::GetSegmentProjVector().

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

Member Data Documentation

TVector3 pma::bSegmentProjLess::segStart
private

Definition at line 111 of file Utilities.h.

TVector3 pma::bSegmentProjLess::segStop
private

Definition at line 111 of file Utilities.h.


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