LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
recob::tracking::Plane::TrigCache Struct Reference

Struct caching trigonometric function results. More...

Public Member Functions

 TrigCache (const Vector_t &planeDir)
 

Public Attributes

double fCosA
 
double fSinA
 
double fCosB
 
double fSinB
 

Detailed Description

Struct caching trigonometric function results.

Definition at line 41 of file TrackingPlane.h.

Constructor & Destructor Documentation

recob::tracking::Plane::TrigCache::TrigCache ( const Vector_t planeDir)
inline

Definition at line 43 of file TrackingPlane.h.

References fCosA, fCosB, fSinA, and fSinB.

44  {
45  const double diryz = std::hypot(planeDir.Y(), planeDir.Z());
46  fCosA = diryz;
47  fSinA = planeDir.X();
48  fCosB = (diryz != 0.0) ? planeDir.Z() / diryz : 1.0;
49  fSinB = (diryz != 0.0) ? -planeDir.Y() / diryz : 0.0;
50  }

Member Data Documentation


The documentation for this struct was generated from the following file: