BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
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
16{
17
18 public:
22 {
23 fX = x;
24 fY = y;
25 fZ = z;
26 fBx = bx;
27 fBy = by;
28 fBz = bz;
29 }
30
32 {
33 fX = right.GetX();
34 fY = right.GetY();
35 fZ = right.GetZ();
36 fBx = right.GetBx();
37 fBy = right.GetBy();
38 fBz = right.GetBz();
39 return *this;
40 }
41
42 Double_t GetX() { return fX; }
43 Double_t GetY() { return fY; }
44 Double_t GetZ() { return fZ; }
45 Double_t GetBx() { return fBx; }
46 Double_t GetBy() { return fBy; }
47 Double_t GetBz() { return fBz; }
48
49 private:
50 // coordinates (mm)
54 // magnetic field (Tm)
58};
59
60#endif // BMN_FIELD_POINT_H_
double Double_t
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()