FairRoot
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
MyConstField Class Reference

#include <MyConstField.h>

Inheritance diagram for MyConstField:
FairField FairField

Public Member Functions

 MyConstField ()
 
 MyConstField (const char *name, Double_t xMin, Double_t xMax, Double_t yMin, Double_t yMax, Double_t zMin, Double_t zMax, Double_t bX, Double_t bY, Double_t bZ)
 
 MyConstField (MyFieldPar *fieldPar)
 
virtual ~MyConstField ()
 
void SetFieldRegion (Double_t xMin, Double_t xMax, Double_t yMin, Double_t yMax, Double_t zMin, Double_t zMax)
 
void SetField (Double_t bX, Double_t bY, Double_t bZ)
 
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)
 
Double_t GetXmin () const
 
Double_t GetXmax () const
 
Double_t GetYmin () const
 
Double_t GetYmax () const
 
Double_t GetZmin () const
 
Double_t GetZmax () const
 
Double_t GetBx () const
 
Double_t GetBy () const
 
Double_t GetBz () const
 
virtual void Print ()
 
 MyConstField ()
 
 MyConstField (const char *name, Double_t xMin, Double_t xMax, Double_t yMin, Double_t yMax, Double_t zMin, Double_t zMax, Double_t bX, Double_t bY, Double_t bZ)
 
 MyConstField (MyFieldPar *fieldPar)
 
virtual ~MyConstField ()
 
void SetFieldRegion (Double_t xMin, Double_t xMax, Double_t yMin, Double_t yMax, Double_t zMin, Double_t zMax)
 
void SetField (Double_t bX, Double_t bY, Double_t bZ)
 
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)
 
Double_t GetXmin () const
 
Double_t GetXmax () const
 
Double_t GetYmin () const
 
Double_t GetYmax () const
 
Double_t GetZmin () const
 
Double_t GetZmax () const
 
Double_t GetBx () const
 
Double_t GetBy () const
 
Double_t GetBz () const
 
virtual void Print ()
 
- Public Member Functions inherited from FairField
 FairField ()
 
 FairField (const char *name, const char *title="FAIR Magnetic Field")
 
FairFieldoperator= (const FairField &)
 
virtual ~FairField ()
 
virtual void Init ()
 
Bool_t IsConst ()
 
Bool_t IsMap ()
 
Int_t GetType () const
 
virtual void GetFieldValue (const Double_t point[3], Double_t *bField)
 
void Field (const Double_t point[3], Double_t *B)
 
virtual void Print (Option_t *) const
 
virtual void GetBxyz (const Double_t[3], Double_t *)
 
virtual void FillParContainer ()
 

Additional Inherited Members

- Protected Attributes inherited from FairField
Int_t fType
 

Detailed Description

Definition at line 29 of file MyConstField.h.

Constructor & Destructor Documentation

MyConstField::MyConstField ( )

Default constructor

Definition at line 27 of file MyConstField.cxx.

MyConstField::MyConstField ( const char *  name,
Double_t  xMin,
Double_t  xMax,
Double_t  yMin,
Double_t  yMax,
Double_t  zMin,
Double_t  zMax,
Double_t  bX,
Double_t  bY,
Double_t  bZ 
)

Standard constructor

Parameters
nameObject name
xMin,xMaxx region of field (global coordinates)
yMin,yMaxy region of field (global coordinates)
zMin,zMaxz region of field (global coordinates)
bX,bY,bZField values [kG]

Definition at line 44 of file MyConstField.cxx.

MyConstField::MyConstField ( MyFieldPar fieldPar)

Constructor from MyFieldPar

Definition at line 70 of file MyConstField.cxx.

MyConstField::~MyConstField ( )
virtual

Destructor

Definition at line 101 of file MyConstField.cxx.

MyConstField::MyConstField ( )

Default constructor

MyConstField::MyConstField ( const char *  name,
Double_t  xMin,
Double_t  xMax,
Double_t  yMin,
Double_t  yMax,
Double_t  zMin,
Double_t  zMax,
Double_t  bX,
Double_t  bY,
Double_t  bZ 
)

Standard constructor

Parameters
nameObject name
xMin,xMaxx region of field (global coordinates)
yMin,yMaxy region of field (global coordinates)
zMin,zMaxz region of field (global coordinates)
bX,bY,bZField values [kG]
MyConstField::MyConstField ( MyFieldPar fieldPar)

Constructor from MyFieldPar

virtual MyConstField::~MyConstField ( )
virtual

Destructor

Member Function Documentation

Double_t MyConstField::GetBx ( Double_t  x,
Double_t  y,
Double_t  z 
)
virtual

Get components of field at a given point

Parameters
x,y,zPoint coordinates [cm]

Reimplemented from FairField.

Definition at line 131 of file MyConstField.cxx.

virtual Double_t MyConstField::GetBx ( Double_t  x,
Double_t  y,
Double_t  z 
)
virtual

Get components of field at a given point

Parameters
x,y,zPoint coordinates [cm]

Reimplemented from FairField.

Double_t MyConstField::GetBx ( ) const
inline

Accessors to field values

Definition at line 88 of file MyConstField.h.

Double_t MyConstField::GetBx ( ) const
inline

Accessors to field values

Definition at line 88 of file MyConstField.h.

Double_t MyConstField::GetBy ( Double_t  ,
Double_t  ,
Double_t   
)
virtual

Get y component of magnetic field [kG]

Parameters
x,y,zPosition [cm]

Reimplemented from FairField.

Definition at line 140 of file MyConstField.cxx.

virtual Double_t MyConstField::GetBy ( Double_t  ,
Double_t  ,
Double_t   
)
virtual

Get y component of magnetic field [kG]

Parameters
x,y,zPosition [cm]

Reimplemented from FairField.

Double_t MyConstField::GetBy ( ) const
inline

Definition at line 89 of file MyConstField.h.

Double_t MyConstField::GetBy ( ) const
inline

Definition at line 89 of file MyConstField.h.

Double_t MyConstField::GetBz ( Double_t  ,
Double_t  ,
Double_t   
)
virtual

Get z component of magnetic field [kG]

Parameters
x,y,zPosition [cm]

Reimplemented from FairField.

Definition at line 149 of file MyConstField.cxx.

virtual Double_t MyConstField::GetBz ( Double_t  ,
Double_t  ,
Double_t   
)
virtual

Get z component of magnetic field [kG]

Parameters
x,y,zPosition [cm]

Reimplemented from FairField.

Double_t MyConstField::GetBz ( ) const
inline

Definition at line 90 of file MyConstField.h.

Double_t MyConstField::GetBz ( ) const
inline

Definition at line 90 of file MyConstField.h.

Double_t MyConstField::GetXmax ( ) const
inline

Definition at line 81 of file MyConstField.h.

Double_t MyConstField::GetXmax ( ) const
inline

Definition at line 81 of file MyConstField.h.

Double_t MyConstField::GetXmin ( ) const
inline

Accessors to field region

Definition at line 80 of file MyConstField.h.

Double_t MyConstField::GetXmin ( ) const
inline

Accessors to field region

Definition at line 80 of file MyConstField.h.

Double_t MyConstField::GetYmax ( ) const
inline

Definition at line 83 of file MyConstField.h.

Double_t MyConstField::GetYmax ( ) const
inline

Definition at line 83 of file MyConstField.h.

Double_t MyConstField::GetYmin ( ) const
inline

Definition at line 82 of file MyConstField.h.

Double_t MyConstField::GetYmin ( ) const
inline

Definition at line 82 of file MyConstField.h.

Double_t MyConstField::GetZmax ( ) const
inline

Definition at line 85 of file MyConstField.h.

Double_t MyConstField::GetZmax ( ) const
inline

Definition at line 85 of file MyConstField.h.

Double_t MyConstField::GetZmin ( ) const
inline

Definition at line 84 of file MyConstField.h.

Double_t MyConstField::GetZmin ( ) const
inline

Definition at line 84 of file MyConstField.h.

void MyConstField::Print ( )
virtual

Screen output

Definition at line 158 of file MyConstField.cxx.

virtual void MyConstField::Print ( )
virtual

Screen output

void MyConstField::SetField ( Double_t  bX,
Double_t  bY,
Double_t  bZ 
)

Set the field values

Parameters
bX,bY,bZField values [kG]
void MyConstField::SetField ( Double_t  bX,
Double_t  bY,
Double_t  bZ 
)

Set the field values

Parameters
bX,bY,bZField values [kG]

Definition at line 122 of file MyConstField.cxx.

void MyConstField::SetFieldRegion ( Double_t  xMin,
Double_t  xMax,
Double_t  yMin,
Double_t  yMax,
Double_t  zMin,
Double_t  zMax 
)

Set the field region

Parameters
xMin,xMaxx region of field (global coordinates)
yMin,yMaxy region of field (global coordinates)
zMin,zMaxz region of field (global coordinates)

Definition at line 105 of file MyConstField.cxx.

void MyConstField::SetFieldRegion ( Double_t  xMin,
Double_t  xMax,
Double_t  yMin,
Double_t  yMax,
Double_t  zMin,
Double_t  zMax 
)

Set the field region

Parameters
xMin,xMaxx region of field (global coordinates)
yMin,yMaxy region of field (global coordinates)
zMin,zMaxz region of field (global coordinates)

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