#include <PndFieldMap.h>
|
| | PndFieldMap () |
| |
| | PndFieldMap (const char *mapName, const char *fileType="R") |
| |
| | PndFieldMap (PndFieldPar *fieldPar) |
| |
| virtual | ~PndFieldMap () |
| |
| virtual void | Init () |
| |
| virtual Double_t | GetBx (Double_t x, Double_t y, Double_t z) |
| |
| virtual Double_t | GetBy (Double_t x, Double_t y, Double_t z) |
| |
| virtual Double_t | GetBz (Double_t x, Double_t y, Double_t z) |
| |
| 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 | WriteAsciiFile (const char *fileName) |
| |
| void | WriteRootFile (const char *fileName, const char *mapName) |
| |
| void | SetPosition (Double_t x, Double_t y, Double_t z) |
| |
| void | SetScale (Double_t factor) |
| |
| Double_t | GetXmin () const |
| |
| Double_t | GetYmin () const |
| |
| Double_t | GetZmin () const |
| |
| Double_t | GetXmax () const |
| |
| Double_t | GetYmax () const |
| |
| Double_t | GetZmax () const |
| |
| Double_t | GetXstep () const |
| |
| Double_t | GetYstep () const |
| |
| Double_t | GetZstep () const |
| |
| Int_t | GetNx () const |
| |
| Int_t | GetNy () const |
| |
| Int_t | GetNz () const |
| |
| Double_t | GetUnit () const |
| |
| Double_t | GetPositionX () const |
| |
| Double_t | GetPositionY () const |
| |
| Double_t | GetPositionZ () const |
| |
| Double_t | GetScale () const |
| |
| TArrayF * | GetBx () const |
| |
| TArrayF * | GetBy () const |
| |
| TArrayF * | GetBz () const |
| |
| const char * | GetFileName () |
| |
| virtual void | Print () |
| |
Definition at line 21 of file PndFieldMap.h.
◆ PndFieldMap() [1/3]
| PndFieldMap::PndFieldMap |
( |
| ) |
|
◆ PndFieldMap() [2/3]
| PndFieldMap::PndFieldMap |
( |
const char * |
mapName, |
|
|
const char * |
fileType = "R" |
|
) |
| |
Standard constructor
- Parameters
-
| name | Name of field map |
| fileType | R = ROOT file, A = ASCII |
◆ PndFieldMap() [3/3]
◆ ~PndFieldMap()
| virtual PndFieldMap::~PndFieldMap |
( |
| ) |
|
|
virtual |
◆ GetBx() [1/2]
| virtual Double_t PndFieldMap::GetBx |
( |
Double_t |
x, |
|
|
Double_t |
y, |
|
|
Double_t |
z |
|
) |
| |
|
virtual |
Get the field components at a certain point
- Parameters
-
| x,y,z | Point coordinates (global) [cm] Bx,By,Bz Field components [kG] |
◆ GetBx() [2/2]
| TArrayF* PndFieldMap::GetBx |
( |
| ) |
const |
|
inline |
Accessors to the field value arrays
Definition at line 95 of file PndFieldMap.h.
References fBx.
◆ GetBy() [1/2]
| virtual Double_t PndFieldMap::GetBy |
( |
Double_t |
x, |
|
|
Double_t |
y, |
|
|
Double_t |
z |
|
) |
| |
|
virtual |
◆ GetBy() [2/2]
| TArrayF* PndFieldMap::GetBy |
( |
| ) |
const |
|
inline |
◆ GetBz() [1/2]
| virtual Double_t PndFieldMap::GetBz |
( |
Double_t |
x, |
|
|
Double_t |
y, |
|
|
Double_t |
z |
|
) |
| |
|
virtual |
◆ GetBz() [2/2]
| TArrayF* PndFieldMap::GetBz |
( |
| ) |
const |
|
inline |
◆ GetFileName()
| const char* PndFieldMap::GetFileName |
( |
| ) |
|
|
inline |
◆ GetNx()
| Int_t PndFieldMap::GetNx |
( |
| ) |
const |
|
inline |
◆ GetNy()
| Int_t PndFieldMap::GetNy |
( |
| ) |
const |
|
inline |
◆ GetNz()
| Int_t PndFieldMap::GetNz |
( |
| ) |
const |
|
inline |
◆ GetPositionX()
| Double_t PndFieldMap::GetPositionX |
( |
| ) |
const |
|
inline |
Accessor to field centre position in global system
Definition at line 87 of file PndFieldMap.h.
References fPosX.
◆ GetPositionY()
| Double_t PndFieldMap::GetPositionY |
( |
| ) |
const |
|
inline |
◆ GetPositionZ()
| Double_t PndFieldMap::GetPositionZ |
( |
| ) |
const |
|
inline |
◆ GetScale()
| Double_t PndFieldMap::GetScale |
( |
| ) |
const |
|
inline |
◆ GetUnit()
| Double_t PndFieldMap::GetUnit |
( |
| ) |
const |
|
inline |
◆ GetXmax()
| Double_t PndFieldMap::GetXmax |
( |
| ) |
const |
|
inline |
◆ GetXmin()
| Double_t PndFieldMap::GetXmin |
( |
| ) |
const |
|
inline |
Accessors to field parameters in local coordinate system
Definition at line 71 of file PndFieldMap.h.
References fXmin.
◆ GetXstep()
| Double_t PndFieldMap::GetXstep |
( |
| ) |
const |
|
inline |
◆ GetYmax()
| Double_t PndFieldMap::GetYmax |
( |
| ) |
const |
|
inline |
◆ GetYmin()
| Double_t PndFieldMap::GetYmin |
( |
| ) |
const |
|
inline |
◆ GetYstep()
| Double_t PndFieldMap::GetYstep |
( |
| ) |
const |
|
inline |
◆ GetZmax()
| Double_t PndFieldMap::GetZmax |
( |
| ) |
const |
|
inline |
◆ GetZmin()
| Double_t PndFieldMap::GetZmin |
( |
| ) |
const |
|
inline |
◆ GetZstep()
| Double_t PndFieldMap::GetZstep |
( |
| ) |
const |
|
inline |
◆ Init()
| virtual void PndFieldMap::Init |
( |
| ) |
|
|
virtual |
Initialisation (read map from file)
◆ Interpolate()
| Double_t PndFieldMap::Interpolate |
( |
Double_t |
dx, |
|
|
Double_t |
dy, |
|
|
Double_t |
dz |
|
) |
| |
|
protected |
Get field values by interpolation of the grid.
- Parameters
-
| dx,dy,dz | Relative distance from grid point [cell units] |
Referenced by GetFileName().
◆ IsInside()
| virtual Bool_t PndFieldMap::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 |
|
) |
| |
|
virtual |
Determine whether a point is inside the field map
- Parameters
-
| x,y,z | Point coordinates (global) [cm] |
| ix,iy,iz | (return) Grid cell |
| dx,dy,dz | (return) Distance from grid point [cm] if inside kTRUE if inside map, else kFALSE |
Reimplemented in PndSolenoidMap, PndDipoleMap, and PndTransMap.
◆ Print()
| virtual void PndFieldMap::Print |
( |
| ) |
|
|
virtual |
◆ ReadAsciiFile()
| void PndFieldMap::ReadAsciiFile |
( |
const char * |
fileName | ) |
|
|
protected |
Read the field map from an ASCII file
Referenced by GetFileName().
◆ ReadRootFile()
| void PndFieldMap::ReadRootFile |
( |
const char * |
fileName, |
|
|
const char * |
mapName |
|
) |
| |
|
protected |
◆ Reset()
| void PndFieldMap::Reset |
( |
| ) |
|
|
protected |
◆ SetField()
◆ SetPosition()
| void PndFieldMap::SetPosition |
( |
Double_t |
x, |
|
|
Double_t |
y, |
|
|
Double_t |
z |
|
) |
| |
Set the position of the field centre
◆ SetScale()
| void PndFieldMap::SetScale |
( |
Double_t |
factor | ) |
|
|
inline |
◆ WriteAsciiFile()
| void PndFieldMap::WriteAsciiFile |
( |
const char * |
fileName | ) |
|
Write the field map to an ASCII file
◆ WriteRootFile()
| void PndFieldMap::WriteRootFile |
( |
const char * |
fileName, |
|
|
const char * |
mapName |
|
) |
| |
Write field map data to a ROOT file
◆ fBx
| TArrayF* PndFieldMap::fBx |
|
protected |
◆ fBy
| TArrayF* PndFieldMap::fBy |
|
protected |
◆ fBz
| TArrayF* PndFieldMap::fBz |
|
protected |
◆ fFileName
| TString PndFieldMap::fFileName |
|
protected |
◆ fHa
| Double_t PndFieldMap::fHa[2][2][2] |
|
protected |
Variables for temporary storage Used in the very frequently called method GetFieldValue
Definition at line 154 of file PndFieldMap.h.
◆ fHb
| Double_t PndFieldMap::fHb[2][2] |
|
protected |
◆ fHc
| Double_t PndFieldMap::fHc[2] |
|
protected |
◆ fNx
◆ fNy
◆ fNz
◆ fPosX
| Double_t PndFieldMap::fPosX |
|
protected |
◆ fPosY
| Double_t PndFieldMap::fPosY |
|
protected |
◆ fPosZ
| Double_t PndFieldMap::fPosZ |
|
protected |
◆ fScale
| Double_t PndFieldMap::fScale |
|
protected |
◆ funit
| Double_t PndFieldMap::funit |
|
protected |
◆ fXmax
| Double_t PndFieldMap::fXmax |
|
protected |
◆ fXmin
| Double_t PndFieldMap::fXmin |
|
protected |
◆ fXstep
| Double_t PndFieldMap::fXstep |
|
protected |
◆ fYmax
| Double_t PndFieldMap::fYmax |
|
protected |
◆ fYmin
| Double_t PndFieldMap::fYmin |
|
protected |
◆ fYstep
| Double_t PndFieldMap::fYstep |
|
protected |
◆ fZmax
| Double_t PndFieldMap::fZmax |
|
protected |
◆ fZmin
| Double_t PndFieldMap::fZmin |
|
protected |
◆ fZstep
| Double_t PndFieldMap::fZstep |
|
protected |
The documentation for this class was generated from the following file: