LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
genf::GFConstField Class Reference

#include "GFConstField.h"

Inheritance diagram for genf::GFConstField:
genf::GFAbsBField

Public Member Functions

 GFConstField (double b1, double b2, double b3)
 define the constant field in this ctor More...
 
TVector3 get (const TVector3 &pos) const
 return value at position More...
 

Private Attributes

double fF1
 
double fF2
 
double fF3
 

Detailed Description

Definition at line 37 of file GFConstField.h.

Constructor & Destructor Documentation

genf::GFConstField::GFConstField ( double  b1,
double  b2,
double  b3 
)
inline

define the constant field in this ctor

Definition at line 40 of file GFConstField.h.

References fF1, fF2, and fF3.

41  {
42  fF1 = b1;
43  fF2 = b2;
44  fF3 = b3;
45  }

Member Function Documentation

TVector3 genf::GFConstField::get ( const TVector3 &  pos) const
virtual

return value at position

Implements genf::GFAbsBField.

Definition at line 21 of file GFConstField.cxx.

References fF1, fF2, and fF3.

22 {
23  return TVector3(fF1, fF2, fF3);
24 }

Member Data Documentation

double genf::GFConstField::fF1
private

Definition at line 51 of file GFConstField.h.

Referenced by get(), and GFConstField().

double genf::GFConstField::fF2
private

Definition at line 51 of file GFConstField.h.

Referenced by get(), and GFConstField().

double genf::GFConstField::fF3
private

Definition at line 51 of file GFConstField.h.

Referenced by get(), and GFConstField().


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