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

Magnetic field. More...

#include <PndGenfitField.h>

Inheritance diagram for PndGenfitField:
GFAbsBField

Public Member Functions

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

Detailed Description

Magnetic field.

Author
Promme (Prometeusz Jasinski)

Definition at line 12 of file PndGenfitField.h.

Constructor & Destructor Documentation

PndGenfitField::PndGenfitField ( )

define the field in this ctor (?)

Definition at line 7 of file PndGenfitField.cxx.

7  : GFAbsBField()
8 {
9 }

Member Function Documentation

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

return value at position

Implements GFAbsBField.

Definition at line 11 of file PndGenfitField.cxx.

References x.

12 {
13  double x[3] = {pos.X(), pos.Y(), pos.Z()};
14  double B[3] = {0,0,0};
15  if(FairRun::Instance()->IsAna()){
16  FairRunAna::Instance()->GetField()->Field(x,B);
17  }else{
18  FairRunSim::Instance()->GetField()->Field(x,B);
19  }
20  return TVector3(B[0], B[1], B[2]);
21 }
TVector3 pos
Double_t x

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