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
12
using namespace
TMath;
13
14
// The basic structure to store the field point
15
class
BmnFieldPoint
{
16
17
public
:
18
19
BmnFieldPoint
() {}
20
~BmnFieldPoint
() {}
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
30
BmnFieldPoint
&
operator=
(
BmnFieldPoint
& right) {
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
47
private
:
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_
BmnFieldPoint
Definition
BmnFieldPoint.h:15
BmnFieldPoint::GetY
Double_t GetY()
Definition
BmnFieldPoint.h:41
BmnFieldPoint::GetZ
Double_t GetZ()
Definition
BmnFieldPoint.h:42
BmnFieldPoint::GetBy
Double_t GetBy()
Definition
BmnFieldPoint.h:44
BmnFieldPoint::GetBz
Double_t GetBz()
Definition
BmnFieldPoint.h:45
BmnFieldPoint::GetBx
Double_t GetBx()
Definition
BmnFieldPoint.h:43
BmnFieldPoint::BmnFieldPoint
BmnFieldPoint(Double_t x, Double_t y, Double_t z, Double_t bx, Double_t by, Double_t bz)
Definition
BmnFieldPoint.h:21
BmnFieldPoint::operator=
BmnFieldPoint & operator=(BmnFieldPoint &right)
Definition
BmnFieldPoint.h:30
BmnFieldPoint::BmnFieldPoint
BmnFieldPoint()
Definition
BmnFieldPoint.h:19
BmnFieldPoint::GetX
Double_t GetX()
Definition
BmnFieldPoint.h:40
BmnFieldPoint::~BmnFieldPoint
~BmnFieldPoint()
Definition
BmnFieldPoint.h:20
install
include
BmnFieldPoint.h
Generated on Fri May 15 2026 10:40:54 for BmnRoot by
1.9.8