Public Member Functions | Private Attributes | List of all members
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...
 
- Public Member Functions inherited from genf::GFAbsBField
 GFAbsBField ()
 
virtual ~GFAbsBField ()
 

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.

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

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.

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

Member Data Documentation

double genf::GFConstField::fF1
private

Definition at line 48 of file GFConstField.h.

double genf::GFConstField::fF2
private

Definition at line 48 of file GFConstField.h.

double genf::GFConstField::fF3
private

Definition at line 48 of file GFConstField.h.


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