BmnRoot
Loading...
Searching...
No Matches
BmnFieldPoint.h
Go to the documentation of this file.
1// -------------------------------------------------------------------------
2// ----- BmnFieldPoint header file -----
3// ----- Created 28/06/22 by M.Mamaev, S.Merts -----
4// -------------------------------------------------------------------------
5
6#ifndef BMN_FIELD_POINT_H_
7#define BMN_FIELD_POINT_H_
8
9#include "Rtypes.h"
10#include "TMath.h"
11
12using namespace TMath;
13
14// The basic structure to store the field point
15class BmnFieldPoint {
16
17public:
18
21 BmnFieldPoint(Double_t x, Double_t y, Double_t z, Double_t bx, Double_t by, Double_t bz) {
22 fX = x;
23 fY = y;
24 fZ = z;
25 fBx = bx;
26 fBy = by;
27 fBz = bz;
28 }
29
31 fX = right.GetX();
32 fY = right.GetY();
33 fZ = right.GetZ();
34 fBx = right.GetBx();
35 fBy = right.GetBy();
36 fBz = right.GetBz();
37 return *this;
38 }
39
40 Double_t GetX() { return fX; }
41 Double_t GetY() { return fY; }
42 Double_t GetZ() { return fZ; }
43 Double_t GetBx() { return fBx; }
44 Double_t GetBy() { return fBy; }
45 Double_t GetBz() { return fBz; }
46
47private:
48 // coordinates (mm)
49 Double_t fX;
50 Double_t fY;
51 Double_t fZ;
52 // magnetic field (Tm)
53 Double_t fBx;
54 Double_t fBy;
55 Double_t fBz;
56};
57
58
59
60#endif // BMN_FIELD_POINT_H_
Double_t GetY()
Double_t GetZ()
Double_t GetBy()
Double_t GetBz()
Double_t GetBx()
BmnFieldPoint(Double_t x, Double_t y, Double_t z, Double_t bx, Double_t by, Double_t bz)
BmnFieldPoint & operator=(BmnFieldPoint &right)
Double_t GetX()