PandaRoot
PndConstField Class Reference

#include <PndConstField.h>

Inheritance diagram for PndConstField:

Public Member Functions

 PndConstField ()
 
 PndConstField (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)
 
 PndConstField (PndConstPar *fieldPar)
 
virtual ~PndConstField ()
 
void FillParContainer ()
 
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)
 
virtual void GetBxyz (const Double_t point[3], Double_t *bField)
 
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 ()
 
 ClassDef (PndConstField, 1)
 

Detailed Description

Definition at line 15 of file PndConstField.h.

Constructor & Destructor Documentation

◆ PndConstField() [1/3]

PndConstField::PndConstField ( )

Default constructor

◆ PndConstField() [2/3]

PndConstField::PndConstField ( 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]

◆ PndConstField() [3/3]

PndConstField::PndConstField ( PndConstPar fieldPar)

Constructor from PndFieldPar

◆ ~PndConstField()

virtual PndConstField::~PndConstField ( )
virtual

Destructor

Member Function Documentation

◆ ClassDef()

PndConstField::ClassDef ( PndConstField  ,
 
)

Referenced by GetBz().

◆ FillParContainer()

void PndConstField::FillParContainer ( )

◆ GetBx() [1/2]

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

Get X component of field at a given point

Parameters
x,y,zPoint coordinates [cm]

◆ GetBx() [2/2]

Double_t PndConstField::GetBx ( ) const
inline

Accessors to field values

Definition at line 76 of file PndConstField.h.

76 { return fBx; }

◆ GetBxyz()

virtual void PndConstField::GetBxyz ( const Double_t  point[3],
Double_t *  bField 
)
virtual

Get all components of field at a given point

Parameters
x,y,zPoint coordinates [cm]

◆ GetBy() [1/2]

virtual Double_t PndConstField::GetBy ( Double_t  x,
Double_t  y,
Double_t  z 
)
virtual

Get Y component of field at a given point

Parameters
x,y,zPoint coordinates [cm]

◆ GetBy() [2/2]

Double_t PndConstField::GetBy ( ) const
inline

Definition at line 77 of file PndConstField.h.

77 { return fBy; }

◆ GetBz() [1/2]

virtual Double_t PndConstField::GetBz ( Double_t  x,
Double_t  y,
Double_t  z 
)
virtual

Get Z component of field at a given point

Parameters
x,y,zPoint coordinates [cm]

◆ GetBz() [2/2]

Double_t PndConstField::GetBz ( ) const
inline

Definition at line 78 of file PndConstField.h.

References ClassDef(), and Print().

78 { return fBz; }

◆ GetXmax()

Double_t PndConstField::GetXmax ( ) const
inline

Definition at line 69 of file PndConstField.h.

69 { return fXmax; }

◆ GetXmin()

Double_t PndConstField::GetXmin ( ) const
inline

Accessors to field region

Definition at line 68 of file PndConstField.h.

68 { return fXmin; }

◆ GetYmax()

Double_t PndConstField::GetYmax ( ) const
inline

Definition at line 71 of file PndConstField.h.

71 { return fYmax; }

◆ GetYmin()

Double_t PndConstField::GetYmin ( ) const
inline

Definition at line 70 of file PndConstField.h.

70 { return fYmin; }

◆ GetZmax()

Double_t PndConstField::GetZmax ( ) const
inline

Definition at line 73 of file PndConstField.h.

73 { return fZmax; }

◆ GetZmin()

Double_t PndConstField::GetZmin ( ) const
inline

Definition at line 72 of file PndConstField.h.

72 { return fZmin; }

◆ Print()

virtual void PndConstField::Print ( )
virtual

Screen output

Referenced by GetBz().

◆ SetField()

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

Set the field values

Parameters
bX,bY,bZField values [kG]

◆ SetFieldRegion()

void PndConstField::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 file: