BmnRoot
26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Toggle main menu visibility
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
18
public
:
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
{
23
fX
= x;
24
fY
= y;
25
fZ
= z;
26
fBx
= bx;
27
fBy
= by;
28
fBz
= bz;
29
}
30
31
BmnFieldPoint
&
operator=
(
BmnFieldPoint
& right)
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)
51
Double_t
fX
;
52
Double_t
fY
;
53
Double_t
fZ
;
54
// magnetic field (Tm)
55
Double_t
fBx
;
56
Double_t
fBy
;
57
Double_t
fBz
;
58
};
59
60
#endif
// BMN_FIELD_POINT_H_
Double_t
double Double_t
Rtypes.h
TMath.h
BmnFieldPoint
Definition
BmnFieldPoint.h:16
BmnFieldPoint::GetY
Double_t GetY()
Definition
BmnFieldPoint.h:43
BmnFieldPoint::GetZ
Double_t GetZ()
Definition
BmnFieldPoint.h:44
BmnFieldPoint::GetBy
Double_t GetBy()
Definition
BmnFieldPoint.h:46
BmnFieldPoint::GetBz
Double_t GetBz()
Definition
BmnFieldPoint.h:47
BmnFieldPoint::GetBx
Double_t GetBx()
Definition
BmnFieldPoint.h:45
BmnFieldPoint::fY
Double_t fY
Definition
BmnFieldPoint.h:52
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::fX
Double_t fX
Definition
BmnFieldPoint.h:51
BmnFieldPoint::operator=
BmnFieldPoint & operator=(BmnFieldPoint &right)
Definition
BmnFieldPoint.h:31
BmnFieldPoint::fBx
Double_t fBx
Definition
BmnFieldPoint.h:55
BmnFieldPoint::BmnFieldPoint
BmnFieldPoint()
Definition
BmnFieldPoint.h:19
BmnFieldPoint::GetX
Double_t GetX()
Definition
BmnFieldPoint.h:42
BmnFieldPoint::fBy
Double_t fBy
Definition
BmnFieldPoint.h:56
BmnFieldPoint::fBz
Double_t fBz
Definition
BmnFieldPoint.h:57
BmnFieldPoint::fZ
Double_t fZ
Definition
BmnFieldPoint.h:53
BmnFieldPoint::~BmnFieldPoint
~BmnFieldPoint()
Definition
BmnFieldPoint.h:20
TMath
install
include
BmnFieldPoint.h
Generated on
for BmnRoot by
1.17.0