er  dev
ERFieldConst.h
1 // -------------------------------------------------------------------------
2 // ----- ERFieldConst header file -----
3 // ----- Created /01/04 by V.Schetinin -----
4 // -------------------------------------------------------------------------
5 
6 
7 #ifndef ERFieldConst_H
8 #define ERFieldConst_H 1
9 
10 #include "FairField.h"
11 
12 class ERFieldPar;
13 
14 class ERFieldConst : public FairField
15 {
16  public:
18  ERFieldConst();
26  ERFieldConst(const char* name, Double_t xMin, Double_t xMax,
27  Double_t yMin, Double_t yMax, Double_t zMin,
28  Double_t zMax, Double_t bX, Double_t bY, Double_t bZ);
29 
31  ERFieldConst(ERFieldPar* fieldPar);
32 
34  virtual ~ERFieldConst();
35 
42  void SetFieldRegion(Double_t xMin, Double_t xMax, Double_t yMin,
43  Double_t yMax, Double_t zMin, Double_t zMax);
44 
48  void SetField(Double_t bX, Double_t bY, Double_t bZ);
49 
54  virtual Double_t GetBx(Double_t x, Double_t y, Double_t z);
55  virtual Double_t GetBy(Double_t x, Double_t y, Double_t z);
56  virtual Double_t GetBz(Double_t x, Double_t y, Double_t z);
57 
60  Double_t GetXmin() const { return fXmin; }
61  Double_t GetXmax() const { return fXmax; }
62  Double_t GetYmin() const { return fYmin; }
63  Double_t GetYmax() const { return fYmax; }
64  Double_t GetZmin() const { return fZmin; }
65  Double_t GetZmax() const { return fZmax; }
66 
69  Double_t GetBx() const { return fBx; }
70  Double_t GetBy() const { return fBy; }
71  Double_t GetBz() const { return fBz; }
72 
74  virtual void Print(Option_t* = "") const;
75 
76  private:
78  Double_t fXmin;
79  Double_t fXmax;
80  Double_t fYmin;
81  Double_t fYmax;
82  Double_t fZmin;
83  Double_t fZmax;
84 
86  Double_t fBx;
87  Double_t fBy;
88  Double_t fBz;
89 
90  ClassDef(ERFieldConst, 1);
91 };
92 
93 #endif
virtual ~ERFieldConst()
Double_t GetXmin() const
Definition: ERFieldConst.h:60
Double_t fXmin
Definition: ERFieldConst.h:78
virtual void Print(Option_t *="") const
void SetField(Double_t bX, Double_t bY, Double_t bZ)
void SetFieldRegion(Double_t xMin, Double_t xMax, Double_t yMin, Double_t yMax, Double_t zMin, Double_t zMax)
Double_t GetBx() const
Definition: ERFieldConst.h:69
Double_t fBx
Definition: ERFieldConst.h:86