PandaRoot
PndConstField.h
Go to the documentation of this file.
1 
8 #ifndef PNDCONSTFIELD_H
9 #define PNDCONSTFIELD_H 1
10 
11 #include "FairField.h"
12 
13 class PndConstPar;
14 
15 class PndConstField : public FairField {
16 
17  public:
19  PndConstField();
20 
28  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);
29 
31  PndConstField(PndConstPar *fieldPar);
32 
34  virtual ~PndConstField();
35 
36  void FillParContainer();
37 
43  void SetFieldRegion(Double_t xMin, Double_t xMax, Double_t yMin, Double_t yMax, Double_t zMin, Double_t zMax);
44 
48  void SetField(Double_t bX, Double_t bY, Double_t bZ);
49 
53  virtual Double_t GetBx(Double_t x, Double_t y, Double_t z);
57  virtual Double_t GetBy(Double_t x, Double_t y, Double_t z);
61  virtual Double_t GetBz(Double_t x, Double_t y, Double_t z);
65  virtual void GetBxyz(const Double_t point[3], Double_t *bField);
66 
68  Double_t GetXmin() const { return fXmin; }
69  Double_t GetXmax() const { return fXmax; }
70  Double_t GetYmin() const { return fYmin; }
71  Double_t GetYmax() const { return fYmax; }
72  Double_t GetZmin() const { return fZmin; }
73  Double_t GetZmax() const { return fZmax; }
74 
76  Double_t GetBx() const { return fBx; }
77  Double_t GetBy() const { return fBy; }
78  Double_t GetBz() const { return fBz; }
79 
81  virtual void Print();
82 
84 
85  private:
87  Double_t fXmin;
88  Double_t fXmax;
89  Double_t fYmin;
90  Double_t fYmax;
91  Double_t fZmin;
92  Double_t fZmax;
93 
95  Double_t fBx;
96  Double_t fBy;
97  Double_t fBz;
98 };
99 
100 #endif
Double_t GetBx() const
Definition: PndConstField.h:76
Double_t GetYmax() const
Definition: PndConstField.h:71
Double_t GetBz() const
Definition: PndConstField.h:78
virtual void Print()
Double_t GetYmin() const
Definition: PndConstField.h:70
void SetFieldRegion(Double_t xMin, Double_t xMax, Double_t yMin, Double_t yMax, Double_t zMin, Double_t zMax)
ClassDef(PndConstField, 1)
void SetField(Double_t bX, Double_t bY, Double_t bZ)
Double_t GetZmax() const
Definition: PndConstField.h:73
void FillParContainer()
Double_t GetZmin() const
Definition: PndConstField.h:72
virtual void GetBxyz(const Double_t point[3], Double_t *bField)
Double_t GetXmin() const
Definition: PndConstField.h:68
virtual ~PndConstField()
Double_t GetXmax() const
Definition: PndConstField.h:69
Double_t GetBy() const
Definition: PndConstField.h:77