34 #if ROOT_VERSION_CODE < 333824
36 #ifndef ROOT_TVirtualMagField
37 #define ROOT_TVirtualMagField
47 virtual void Field(
const Double_t*
x, Double_t* B) = 0;
56 #include "TVirtualMagField.h"
73 FairField(
const char*
name,
const char*
title =
"FAIR Magnetic Field");
75 FairField& operator=(
const FairField&) {
return *
this;}
84 virtual void Init() { };
95 Int_t GetType()
const {
return fType; }
101 virtual Double_t GetBx(Double_t
x, Double_t
y, Double_t
z) {std::cout <<
"GetBx Should be implimented" << std::endl;
return 0;}
107 virtual Double_t GetBy(Double_t x, Double_t y, Double_t z) {std::cout <<
"GetBy Should be implimented" << std::endl;
return 0;}
113 virtual Double_t GetBz(Double_t x, Double_t y, Double_t z) {std::cout <<
"GetBz Should be implimented" << std::endl;
return 0;}
120 virtual void GetFieldValue(
const Double_t
point[3], Double_t*
bField);
123 void Field(
const Double_t point[3], Double_t* B) {GetFieldValue(point,B);}
127 virtual void Print(Option_t* option =
"")
const {;}
128 virtual void GetBxyz(
const Double_t point[3], Double_t* bField) { std::cout <<
"GetBz Should be implimented" << std::endl;};
134 virtual void FillParContainer() {
printf(
"This should implimented in the exp. part \n");}
144 FairField(
const FairField&);
147 ClassDef(FairField,3);