CbmRoot
CbmFieldConst.h
Go to the documentation of this file.
1 // -------------------------------------------------------------------------
2 // ----- CbmFieldConst header file -----
3 // ----- Created 12/01/04 by M. Al-Turany -----
4 // ----- Redesign 13/02/06 by V. Friese -----
5 // -------------------------------------------------------------------------
6 
7 
18 #ifndef CBMFIELDCONST_H
19 #define CBMFIELDCONST_H 1
20 
21 #include <Rtypes.h> // for THashConsistencyHolder, ClassDef
22 #include <RtypesCore.h> // for Double_t, Option_t
23 
24 #include <FairField.h> // for FairField
25 
26 class CbmFieldPar;
27 
28 class CbmFieldConst : public FairField {
29 
30 public:
32  CbmFieldConst();
33 
34 
42  CbmFieldConst(const char* name,
43  Double_t xMin,
44  Double_t xMax,
45  Double_t yMin,
46  Double_t yMax,
47  Double_t zMin,
48  Double_t zMax,
49  Double_t bX,
50  Double_t bY,
51  Double_t bZ);
52 
53 
55  CbmFieldConst(CbmFieldPar* fieldPar);
56 
57 
59  virtual ~CbmFieldConst();
60 
61 
67  void SetFieldRegion(Double_t xMin,
68  Double_t xMax,
69  Double_t yMin,
70  Double_t yMax,
71  Double_t zMin,
72  Double_t zMax);
73 
74 
78  void SetField(Double_t bX, Double_t bY, Double_t bZ);
79 
80 
84  virtual Double_t GetBx(Double_t x, Double_t y, Double_t z);
85  virtual Double_t GetBy(Double_t x, Double_t y, Double_t z);
86  virtual Double_t GetBz(Double_t x, Double_t y, Double_t z);
87 
88 
90  Double_t GetXmin() const { return fXmin; }
91  Double_t GetXmax() const { return fXmax; }
92  Double_t GetYmin() const { return fYmin; }
93  Double_t GetYmax() const { return fYmax; }
94  Double_t GetZmin() const { return fZmin; }
95  Double_t GetZmax() const { return fZmax; }
96 
97 
99  Double_t GetBx() const { return fBx; }
100  Double_t GetBy() const { return fBy; }
101  Double_t GetBz() const { return fBz; }
102 
103 
105  virtual void Print(Option_t* = "") const;
106 
107 
108 private:
110  Double_t fXmin;
111  Double_t fXmax;
112  Double_t fYmin;
113  Double_t fYmax;
114  Double_t fZmin;
115  Double_t fZmax;
116 
118  Double_t fBx;
119  Double_t fBy;
120  Double_t fBz;
121 
123 };
124 
125 
126 #endif
CbmFieldConst::CbmFieldConst
CbmFieldConst()
Definition: CbmFieldConst.cxx:24
CbmFieldConst::fBy
Double_t fBy
Definition: CbmFieldConst.h:119
CbmFieldConst::fBz
Double_t fBz
Definition: CbmFieldConst.h:120
CbmFieldConst::GetBz
Double_t GetBz() const
Definition: CbmFieldConst.h:101
CbmFieldConst::GetZmax
Double_t GetZmax() const
Definition: CbmFieldConst.h:95
CbmFieldConst::fYmax
Double_t fYmax
Definition: CbmFieldConst.h:113
CbmFieldConst::fYmin
Double_t fYmin
Definition: CbmFieldConst.h:112
CbmFieldConst::GetXmin
Double_t GetXmin() const
Definition: CbmFieldConst.h:90
CbmFieldConst::~CbmFieldConst
virtual ~CbmFieldConst()
Definition: CbmFieldConst.cxx:99
CbmFieldConst::fBx
Double_t fBx
Definition: CbmFieldConst.h:118
CbmFieldConst::GetXmax
Double_t GetXmax() const
Definition: CbmFieldConst.h:91
CbmFieldConst::GetZmin
Double_t GetZmin() const
Definition: CbmFieldConst.h:94
CbmFieldConst::GetBx
Double_t GetBx() const
Definition: CbmFieldConst.h:99
CbmFieldConst::fXmin
Double_t fXmin
Definition: CbmFieldConst.h:110
CbmFieldConst::fZmin
Double_t fZmin
Definition: CbmFieldConst.h:114
CbmFieldConst::GetYmin
Double_t GetYmin() const
Definition: CbmFieldConst.h:92
CbmFieldConst::GetBy
Double_t GetBy() const
Definition: CbmFieldConst.h:100
CbmFieldConst::Print
virtual void Print(Option_t *="") const
Definition: CbmFieldConst.cxx:160
x
Double_t x
Definition: CbmMvdSensorDigiToHitTask.cxx:68
y
Double_t y
Definition: CbmMvdSensorDigiToHitTask.cxx:68
CbmFieldConst::SetFieldRegion
void SetFieldRegion(Double_t xMin, Double_t xMax, Double_t yMin, Double_t yMax, Double_t zMin, Double_t zMax)
Definition: CbmFieldConst.cxx:104
CbmFieldConst::fZmax
Double_t fZmax
Definition: CbmFieldConst.h:115
CbmFieldConst
Definition: CbmFieldConst.h:28
CbmFieldConst::SetField
void SetField(Double_t bX, Double_t bY, Double_t bZ)
Definition: CbmFieldConst.cxx:121
CbmFieldConst::GetYmax
Double_t GetYmax() const
Definition: CbmFieldConst.h:93
CbmFieldConst::fXmax
Double_t fXmax
Definition: CbmFieldConst.h:111
CbmFieldPar
Definition: CbmFieldPar.h:31
CbmFieldConst::ClassDef
ClassDef(CbmFieldConst, 1)