LArSoft  v07_13_02
Liquid Argon Software toolkit - http://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 36 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 39 of file GFConstField.h.

References fF1, fF2, and fF3.

39  {
40  fF1 = b1; fF2 = b2; fF3 = b3;
41  }

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.

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

Member Data Documentation

double genf::GFConstField::fF1
private

Definition at line 47 of file GFConstField.h.

Referenced by get(), and GFConstField().

double genf::GFConstField::fF2
private

Definition at line 47 of file GFConstField.h.

Referenced by get(), and GFConstField().

double genf::GFConstField::fF3
private

Definition at line 47 of file GFConstField.h.

Referenced by get(), and GFConstField().


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