FairRoot/PandaRoot
Public Member Functions | List of all members
GFPandaField Class Reference

Constant Magnetic field. More...

#include <GFPandaField.h>

Inheritance diagram for GFPandaField:
GFAbsBField

Public Member Functions

 GFPandaField ()
 define the constant field in this ctor More...
 
TVector3 get (const TVector3 &pos) const
 return value at position More...
 

Detailed Description

Constant Magnetic field.

Author
Christian Höppner (Technische Universität München, original author)
Sebastian Neubert (Technische Universität München, original author)

Definition at line 35 of file GFPandaField.h.

Constructor & Destructor Documentation

GFPandaField::GFPandaField ( )
inline

define the constant field in this ctor

Definition at line 38 of file GFPandaField.h.

38  {
39 
40  }

Member Function Documentation

TVector3 GFPandaField::get ( const TVector3 &  pos) const
virtual

return value at position

Implements GFAbsBField.

Definition at line 23 of file GFPandaField.cxx.

References x.

23  {
24  double x[3] = {pos.X(), pos.Y(), pos.Z()};
25  double B[3] = {0,0,0};
26  FairRunAna::Instance()->GetField()->Field(x,B);
27  return TVector3(B[0], B[1], B[2]);
28 }
TVector3 pos
Double_t x

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