Go to the documentation of this file.
20 #define CBMFIELDMAP_H 1
24 #include <RtypesCore.h>
27 #include <FairField.h>
46 CbmFieldMap(
const char* mapName,
const char* fileType =
"R");
76 virtual void Init(Int_t nX,
94 virtual Double_t
GetBx(Double_t
x, Double_t
y, Double_t z);
95 virtual Double_t
GetBy(Double_t
x, Double_t
y, Double_t z);
96 virtual Double_t
GetBz(Double_t
x, Double_t
y, Double_t z);
121 void WriteRootFile(
const char* fileName,
const char* mapName);
125 virtual void SetPosition(Double_t
x, Double_t
y, Double_t z);
168 virtual void Print(Option_t* =
"")
const;
183 void ReadRootFile(
const char* fileName,
const char* mapName);
193 Double_t
Interpolate(Double_t dx, Double_t dy, Double_t dz);
Double_t GetYstep() const
Double_t GetZstep() const
Double_t Interpolate(Double_t dx, Double_t dy, Double_t dz)
void ReadRootFile(const char *fileName, const char *mapName)
Double_t fBxOrigin
Interpolated field (1-dim)
Double_t GetPositionY() const
virtual void Print(Option_t *="") const
Double_t GetPositionZ() const
virtual void SetPosition(Double_t x, Double_t y, Double_t z)
Double_t fBzOrigin
y-component of the field at the origin
void SetField(const CbmFieldMapData *data)
virtual void SetScale(Double_t factor)
Double_t fHc[2]
Interpolated field (2-dim)
Double_t GetXstep() const
void ReadAsciiFile2018(const char *fileName)
CbmFieldMap(const CbmFieldMap &)
z-component of the field at the origin
CbmFieldMap & operator=(const CbmFieldMap &)
virtual Bool_t IsInside(Double_t x, Double_t y, Double_t z, Int_t &ix, Int_t &iy, Int_t &iz, Double_t &dx, Double_t &dy, Double_t &dz)
void WriteRootFile(const char *fileName, const char *mapName)
void ReadAsciiFile(const char *fileName)
void WriteAsciiFile(const char *fileName)
const char * GetFileName()
Double_t fHb[2][2]
Field at corners of a grid cell.
Double_t GetScale() const
Double_t fByOrigin
x-component of the field at the origin
Double_t GetPositionX() const