er  dev
Public Member Functions | Private Member Functions | Private Attributes | List of all members
ERFieldConst Class Reference
Inheritance diagram for ERFieldConst:
Inheritance graph
[legend]
Collaboration diagram for ERFieldConst:
Collaboration graph
[legend]

Public Member Functions

 ERFieldConst ()
 
 ERFieldConst (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)
 
 ERFieldConst (ERFieldPar *fieldPar)
 
virtual ~ERFieldConst ()
 
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 (Option_t *="") const
 

Private Member Functions

 ClassDef (ERFieldConst, 1)
 

Private Attributes

Double_t fXmin
 
Double_t fXmax
 
Double_t fYmin
 
Double_t fYmax
 
Double_t fZmin
 
Double_t fZmax
 
Double_t fBx
 
Double_t fBy
 
Double_t fBz
 

Detailed Description

Definition at line 14 of file ERFieldConst.h.

Constructor & Destructor Documentation

ERFieldConst::ERFieldConst ( )

Default constructor

Definition at line 19 of file ERFieldConst.cxx.

ERFieldConst::ERFieldConst ( 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 36 of file ERFieldConst.cxx.

ERFieldConst::ERFieldConst ( ERFieldPar fieldPar)

Constructor from ERFieldPar

Definition at line 57 of file ERFieldConst.cxx.

ERFieldConst::~ERFieldConst ( )
virtual

Destructor

Definition at line 90 of file ERFieldConst.cxx.

Member Function Documentation

Double_t ERFieldConst::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]

Definition at line 115 of file ERFieldConst.cxx.

Double_t ERFieldConst::GetBx ( ) const
inline

Accessors to field values

Definition at line 69 of file ERFieldConst.h.

Double_t ERFieldConst::GetXmin ( ) const
inline

Accessors to field region

Definition at line 60 of file ERFieldConst.h.

void ERFieldConst::Print ( Option_t *  = "") const
virtual

Screen output

Definition at line 142 of file ERFieldConst.cxx.

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

Set the field values

Parameters
bX,bY,bZField values [kG]

Definition at line 107 of file ERFieldConst.cxx.

void ERFieldConst::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 94 of file ERFieldConst.cxx.

Member Data Documentation

Double_t ERFieldConst::fBx
private

Field components inside the field region

Definition at line 86 of file ERFieldConst.h.

Double_t ERFieldConst::fXmin
private

Limits of the field region

Definition at line 78 of file ERFieldConst.h.


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