CbmRoot
Loading...
Searching...
No Matches
CbmFieldConst.h
Go to the documentation of this file.
1/* Copyright (C) 2004-2020 GSI Helmholtzzentrum fuer Schwerionenforschung, Darmstadt
2 SPDX-License-Identifier: GPL-3.0-only
3 Authors: Mohammad Al-Turany, Denis Bertini [committer] */
4
5// -------------------------------------------------------------------------
6// ----- CbmFieldConst header file -----
7// ----- Created 12/01/04 by M. Al-Turany -----
8// ----- Redesign 13/02/06 by V. Friese -----
9// -------------------------------------------------------------------------
10
11
22#ifndef CBMFIELDCONST_H
23#define CBMFIELDCONST_H 1
24
25#include <FairField.h> // for FairField
26
27#include <Rtypes.h> // for THashConsistencyHolder, ClassDef
28#include <RtypesCore.h> // for Double_t, Option_t
29
30class CbmFieldPar;
31
32class CbmFieldConst : public FairField {
33
34public:
37
38
46 CbmFieldConst(const char* name, Double_t xMin, Double_t xMax, Double_t yMin, Double_t yMax, Double_t zMin,
47 Double_t zMax, Double_t bX, Double_t bY, Double_t bZ);
48
49
51 CbmFieldConst(CbmFieldPar* fieldPar);
52
53
55 virtual ~CbmFieldConst();
56
57
63 void SetFieldRegion(Double_t xMin, Double_t xMax, Double_t yMin, Double_t yMax, Double_t zMin, Double_t zMax);
64
65
69 void SetField(Double_t bX, Double_t bY, Double_t bZ);
70
71
75 virtual Double_t GetBx(Double_t x, Double_t y, Double_t z);
76 virtual Double_t GetBy(Double_t x, Double_t y, Double_t z);
77 virtual Double_t GetBz(Double_t x, Double_t y, Double_t z);
78
79
81 Double_t GetXmin() const { return fXmin; }
82 Double_t GetXmax() const { return fXmax; }
83 Double_t GetYmin() const { return fYmin; }
84 Double_t GetYmax() const { return fYmax; }
85 Double_t GetZmin() const { return fZmin; }
86 Double_t GetZmax() const { return fZmax; }
87
88
90 Double_t GetBx() const { return fBx; }
91 Double_t GetBy() const { return fBy; }
92 Double_t GetBz() const { return fBz; }
93
94
96 virtual void Print(Option_t* = "") const;
97
98
99private:
101 Double_t fXmin;
102 Double_t fXmax;
103 Double_t fYmin;
104 Double_t fYmax;
105 Double_t fZmin;
106 Double_t fZmax;
107
109 Double_t fBx;
110 Double_t fBy;
111 Double_t fBz;
112
114};
115
116
117#endif
Double_t GetXmax() const
Double_t GetBz() const
Double_t GetBy() const
Double_t GetBx() const
Double_t GetZmax() const
Double_t GetZmin() const
ClassDef(CbmFieldConst, 1)
void SetFieldRegion(Double_t xMin, Double_t xMax, Double_t yMin, Double_t yMax, Double_t zMin, Double_t zMax)
Double_t GetYmin() const
void SetField(Double_t bX, Double_t bY, Double_t bZ)
Double_t GetXmin() const
Double_t GetYmax() const
virtual void Print(Option_t *="") const
virtual ~CbmFieldConst()