BmnRoot
26.10.0-210-gc52d34b0
Software framework of the BM@N experiment
Toggle main menu visibility
Loading...
Searching...
No Matches
BmnConstPar.cxx
Go to the documentation of this file.
1
#include "
BmnConstPar.h
"
2
3
#include "
BmnFieldConst.h
"
4
#include "FairParamList.h"
5
6
// ------ Constructor --------------------------------------------------
7
BmnConstPar::BmnConstPar
(
const
char
* name,
const
char
* title,
const
char
* context)
8
:
BmnMapPar
(name, title, context)
9
{
10
fBx
=
fBy
=
fBz
= 0.;
11
fType
= 0;
12
}
13
14
//-----------------------------------------------------------------
15
BmnConstPar::BmnConstPar
()
16
{
17
fBx
=
fBy
=
fBz
= 0.;
18
fType
= 0;
19
}
20
21
//-----------------------------------------------------------------
22
BmnConstPar::~BmnConstPar
() {}
23
24
// ----------------------------------------------------------------
25
void
BmnConstPar::putParams
(FairParamList* list)
26
{
27
if
(!list)
28
return
;
29
30
list->add(
"Field Type"
,
fType
);
31
32
list->add(
"Field min x"
,
fXmin
);
33
list->add(
"Field max x"
,
fXmax
);
34
list->add(
"Field min y"
,
fYmin
);
35
list->add(
"Field max y"
,
fYmax
);
36
list->add(
"Field min z"
,
fZmin
);
37
list->add(
"Field max z"
,
fZmax
);
38
list->add(
"Field Bx"
,
fBx
);
39
list->add(
"Field By"
,
fBy
);
40
list->add(
"Field Bz"
,
fBz
);
41
}
42
43
//-----------------------------------------------------------------
44
Bool_t
BmnConstPar::getParams
(FairParamList* list)
45
{
46
if
(!list)
47
return
kFALSE
;
48
if
(!list->fill(
"Field Type"
, &
fType
))
49
return
kFALSE
;
50
if
(!list->fill(
"Field min x"
, &
fXmin
))
51
return
kFALSE
;
52
if
(!list->fill(
"Field max x"
, &
fXmax
))
53
return
kFALSE
;
54
if
(!list->fill(
"Field min y"
, &
fYmin
))
55
return
kFALSE
;
56
if
(!list->fill(
"Field max y"
, &
fYmax
))
57
return
kFALSE
;
58
if
(!list->fill(
"Field min z"
, &
fZmin
))
59
return
kFALSE
;
60
if
(!list->fill(
"Field max z"
, &
fZmax
))
61
return
kFALSE
;
62
if
(!list->fill(
"Field Bx"
, &
fBx
))
63
return
kFALSE
;
64
if
(!list->fill(
"Field By"
, &
fBy
))
65
return
kFALSE
;
66
if
(!list->fill(
"Field Bz"
, &
fBz
))
67
return
kFALSE
;
68
return
kTRUE
;
69
}
70
71
//------------------------------------------------------------------
72
void
BmnConstPar::SetParameters
(
FairField
* field)
73
{
74
BmnFieldConst
* fieldConst = (
BmnFieldConst
*)field;
75
fBx
= fieldConst->
GetBx
();
76
fBy
= fieldConst->
GetBy
();
77
fBz
= fieldConst->
GetBz
();
78
fXmin
= fieldConst->
GetXmin
();
79
fXmax
= fieldConst->
GetXmax
();
80
fYmin
= fieldConst->
GetYmin
();
81
fYmax
= fieldConst->
GetYmax
();
82
fZmin
= fieldConst->
GetZmin
();
83
fZmax
= fieldConst->
GetZmax
();
84
fMapName
=
""
;
85
fPosX
=
fPosY
=
fPosZ
=
fScale
= 0.;
86
fType
= fieldConst->GetType();
87
}
BmnConstPar.h
BmnFieldConst.h
Bool_t
bool Bool_t
kFALSE
constexpr Bool_t kFALSE
kTRUE
constexpr Bool_t kTRUE
BmnConstPar::SetParameters
void SetParameters(FairField *field)
Set parameters from FairField.
Definition
BmnConstPar.cxx:72
BmnConstPar::putParams
void putParams(FairParamList *list)
Put parameters.
Definition
BmnConstPar.cxx:25
BmnConstPar::fBy
Double_t fBy
Definition
BmnConstPar.h:36
BmnConstPar::~BmnConstPar
~BmnConstPar()
Destructor.
Definition
BmnConstPar.cxx:22
BmnConstPar::fBx
Double_t fBx
Field values in [kG].
Definition
BmnConstPar.h:36
BmnConstPar::BmnConstPar
BmnConstPar()
default constructor
Definition
BmnConstPar.cxx:15
BmnConstPar::fBz
Double_t fBz
Definition
BmnConstPar.h:36
BmnConstPar::getParams
Bool_t getParams(FairParamList *list)
Get parameters.
Definition
BmnConstPar.cxx:44
BmnFieldConst
Definition
BmnFieldConst.h:17
BmnFieldConst::GetZmin
Double_t GetZmin() const
Definition
BmnFieldConst.h:75
BmnFieldConst::GetYmin
Double_t GetYmin() const
Definition
BmnFieldConst.h:73
BmnFieldConst::GetBz
virtual Double_t GetBz(Double_t x, Double_t y, Double_t z)
Definition
BmnFieldConst.cxx:142
BmnFieldConst::GetZmax
Double_t GetZmax() const
Definition
BmnFieldConst.h:76
BmnFieldConst::GetYmax
Double_t GetYmax() const
Definition
BmnFieldConst.h:74
BmnFieldConst::GetXmin
Double_t GetXmin() const
Accessors to field region.
Definition
BmnFieldConst.h:71
BmnFieldConst::GetBy
virtual Double_t GetBy(Double_t x, Double_t y, Double_t z)
Definition
BmnFieldConst.cxx:134
BmnFieldConst::GetXmax
Double_t GetXmax() const
Definition
BmnFieldConst.h:72
BmnFieldConst::GetBx
virtual Double_t GetBx(Double_t x, Double_t y, Double_t z)
Get components of field at a given point.
Definition
BmnFieldConst.cxx:126
BmnMapPar::fYmin
Double_t fYmin
Definition
BmnMapPar.h:56
BmnMapPar::fXmin
Double_t fXmin
Field limits in case of constant field.
Definition
BmnMapPar.h:55
BmnMapPar::fZmax
Double_t fZmax
Definition
BmnMapPar.h:57
BmnMapPar::fMapName
TString fMapName
Field map name in case of field map.
Definition
BmnMapPar.h:60
BmnMapPar::fPosY
Double_t fPosY
Definition
BmnMapPar.h:63
BmnMapPar::BmnMapPar
BmnMapPar(const char *name, const char *title, const char *context)
Standard constructor.
Definition
BmnMapPar.cxx:11
BmnMapPar::fScale
Double_t fScale
Scaling factor for field map.
Definition
BmnMapPar.h:66
BmnMapPar::fPosZ
Double_t fPosZ
Definition
BmnMapPar.h:63
BmnMapPar::fType
Int_t fType
Field type 0 = constant field 1 = field map 2 = field map sym2 (symmetries in x and y) 3 = field map ...
Definition
BmnMapPar.h:52
BmnMapPar::fXmax
Double_t fXmax
Definition
BmnMapPar.h:55
BmnMapPar::fYmax
Double_t fYmax
Definition
BmnMapPar.h:56
BmnMapPar::fZmin
Double_t fZmin
Definition
BmnMapPar.h:57
BmnMapPar::fPosX
Double_t fPosX
Field centre position for field map.
Definition
BmnMapPar.h:63
FairField
field
BmnConstPar.cxx
Generated on
for BmnRoot by
1.17.0