BmnRoot
26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Toggle main menu visibility
Loading...
Searching...
No Matches
BmnFieldPar.h
Go to the documentation of this file.
1
// -------------------------------------------------------------------------
2
// ----- BmnFieldPar header file -----
3
// ----- Created 20/02/06 by V. Friese -----
4
// -------------------------------------------------------------------------
5
6
/** BmnFieldPar.h
7
** @author V.Friese <v.friese@gsi.de>
8
** @since 20.02.2006
9
** @version 1.0
10
**
11
** Parameter set for the CBM magnetic field. For the runtime database.
12
**/
13
14
#ifndef CBMFIELDPAR_H
15
#define CBMFIELDPAR_H 1
16
17
#include "FairParGenericSet.h"
18
19
class
FairField
;
20
class
FairParamList;
21
22
const
int
kMaxFieldMapType
= 5;
23
const
int
kTypeDistorted
= 4;
24
25
class
BmnFieldPar
:
public
FairParGenericSet
26
{
27
28
public
:
29
/** Standard constructor **/
30
BmnFieldPar
(
const
char
* name,
const
char
* title,
const
char
* context);
31
32
/** default constructor **/
33
BmnFieldPar
();
34
35
/** Destructor **/
36
~BmnFieldPar
();
37
38
/** Put parameters **/
39
virtual
void
putParams
(FairParamList* list);
40
41
/** Get parameters **/
42
virtual
Bool_t
getParams
(FairParamList* list);
43
44
/** Set parameters from BmnField **/
45
void
SetParameters
(
FairField
* field);
46
47
/** Accessors **/
48
Int_t
GetType
()
const
{
return
fType
; }
49
Double_t
GetXmin
()
const
{
return
fXmin
; }
50
Double_t
GetXmax
()
const
{
return
fXmax
; }
51
Double_t
GetYmin
()
const
{
return
fYmin
; }
52
Double_t
GetYmax
()
const
{
return
fYmax
; }
53
Double_t
GetZmin
()
const
{
return
fZmin
; }
54
Double_t
GetZmax
()
const
{
return
fZmax
; }
55
Double_t
GetBx
()
const
{
return
fBx
; }
56
Double_t
GetBy
()
const
{
return
fBy
; }
57
Double_t
GetBz
()
const
{
return
fBz
; }
58
void
MapName
(
TString
& name) { name =
fMapName
; }
59
Double_t
GetPositionX
()
const
{
return
fPosX
; }
60
Double_t
GetPositionY
()
const
{
return
fPosY
; }
61
Double_t
GetPositionZ
()
const
{
return
fPosZ
; }
62
Double_t
GetScale
()
const
{
return
fScale
; }
63
Bool_t
IsFieldOff
()
const
{
return
fIsOff
; }
64
65
void
GetDistortionFilename
(
TString
& filename) { filename =
fDistortionFilename
; }
66
void
GetParentName
(
TString
& parentname) { parentname =
fParentName
; }
67
Int_t
GetTypeOfParent
()
const
{
return
fTypeOfParent
; }
68
69
private
:
70
/** Field type
71
** 0 = constant field
72
** 1 = field map
73
** 2 = field map sym2 (symmetries in x and y)
74
** 3 = field map sym3 (symmetries in x, y and z)
75
** kTypeDistorted = distorted field map (its parent field can be field map or constant field)
76
**/
77
Int_t
fType
;
78
79
/** Field limits in case of constant field **/
80
Double_t
fXmin
,
fXmax
;
81
Double_t
fYmin
,
fYmax
;
82
Double_t
fZmin
,
fZmax
;
83
84
/** Field values in case of constant field [kG] **/
85
Double_t
fBx
,
fBy
,
fBz
;
86
87
/** Field map name in case of field map **/
88
TString
fMapName
;
89
90
/** Field centre position for field map **/
91
Double_t
fPosX
,
fPosY
,
fPosZ
;
92
93
/** Scaling factor for field map **/
94
Double_t
fScale
;
95
96
/** Whether magnetic field is off **/
97
Bool_t
fIsOff
;
98
99
/** Field map distortion filename (in case of distorted field map) **/
100
TString
fDistortionFilename
;
101
102
/** Field name of parent field (in case of distorted field map) **/
103
TString
fParentName
;
104
105
/** Field type of parent field (in case of distorted field map) **/
106
Int_t
fTypeOfParent
;
107
108
BmnFieldPar
(
const
BmnFieldPar
&) =
delete
;
109
BmnFieldPar
&
operator=
(
const
BmnFieldPar
&) =
delete
;
110
111
ClassDef
(
BmnFieldPar
, 1);
112
};
113
114
#endif
Bool_t
bool Bool_t
Int_t
int Int_t
Double_t
double Double_t
ClassDef
#define ClassDef(name, id)
BmnFieldPar
Definition
BmnFieldPar.h:26
BmnFieldPar::GetParentName
void GetParentName(TString &parentname)
Definition
BmnFieldPar.h:66
BmnFieldPar::GetDistortionFilename
void GetDistortionFilename(TString &filename)
Definition
BmnFieldPar.h:65
BmnFieldPar::putParams
virtual void putParams(FairParamList *list)
Put parameters.
BmnFieldPar::GetPositionZ
Double_t GetPositionZ() const
Definition
BmnFieldPar.h:61
BmnFieldPar::fBz
Double_t fBz
Definition
BmnFieldPar.h:85
BmnFieldPar::GetXmin
Double_t GetXmin() const
Definition
BmnFieldPar.h:49
BmnFieldPar::IsFieldOff
Bool_t IsFieldOff() const
Definition
BmnFieldPar.h:63
BmnFieldPar::fYmax
Double_t fYmax
Definition
BmnFieldPar.h:81
BmnFieldPar::GetYmax
Double_t GetYmax() const
Definition
BmnFieldPar.h:52
BmnFieldPar::fTypeOfParent
Int_t fTypeOfParent
Field type of parent field (in case of distorted field map).
Definition
BmnFieldPar.h:106
BmnFieldPar::fXmax
Double_t fXmax
Definition
BmnFieldPar.h:80
BmnFieldPar::getParams
virtual Bool_t getParams(FairParamList *list)
Get parameters.
BmnFieldPar::fPosX
Double_t fPosX
Field centre position for field map.
Definition
BmnFieldPar.h:91
BmnFieldPar::fPosZ
Double_t fPosZ
Definition
BmnFieldPar.h:91
BmnFieldPar::fDistortionFilename
TString fDistortionFilename
Field map distortion filename (in case of distorted field map).
Definition
BmnFieldPar.h:100
BmnFieldPar::GetBz
Double_t GetBz() const
Definition
BmnFieldPar.h:57
BmnFieldPar::fPosY
Double_t fPosY
Definition
BmnFieldPar.h:91
BmnFieldPar::GetZmin
Double_t GetZmin() const
Definition
BmnFieldPar.h:53
BmnFieldPar::GetType
Int_t GetType() const
Accessors.
Definition
BmnFieldPar.h:48
BmnFieldPar::GetZmax
Double_t GetZmax() const
Definition
BmnFieldPar.h:54
BmnFieldPar::GetBy
Double_t GetBy() const
Definition
BmnFieldPar.h:56
BmnFieldPar::fBy
Double_t fBy
Definition
BmnFieldPar.h:85
BmnFieldPar::BmnFieldPar
BmnFieldPar()
default constructor
BmnFieldPar::GetScale
Double_t GetScale() const
Definition
BmnFieldPar.h:62
BmnFieldPar::GetBx
Double_t GetBx() const
Definition
BmnFieldPar.h:55
BmnFieldPar::BmnFieldPar
BmnFieldPar(const BmnFieldPar &)=delete
BmnFieldPar::fParentName
TString fParentName
Field name of parent field (in case of distorted field map).
Definition
BmnFieldPar.h:103
BmnFieldPar::GetPositionY
Double_t GetPositionY() const
Definition
BmnFieldPar.h:60
BmnFieldPar::GetPositionX
Double_t GetPositionX() const
Definition
BmnFieldPar.h:59
BmnFieldPar::MapName
void MapName(TString &name)
Definition
BmnFieldPar.h:58
BmnFieldPar::operator=
BmnFieldPar & operator=(const BmnFieldPar &)=delete
BmnFieldPar::fYmin
Double_t fYmin
Definition
BmnFieldPar.h:81
BmnFieldPar::GetXmax
Double_t GetXmax() const
Definition
BmnFieldPar.h:50
BmnFieldPar::fBx
Double_t fBx
Field values in case of constant field [kG].
Definition
BmnFieldPar.h:85
BmnFieldPar::~BmnFieldPar
~BmnFieldPar()
Destructor.
BmnFieldPar::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
BmnFieldPar.h:77
BmnFieldPar::fMapName
TString fMapName
Field map name in case of field map.
Definition
BmnFieldPar.h:88
BmnFieldPar::fZmax
Double_t fZmax
Definition
BmnFieldPar.h:82
BmnFieldPar::fZmin
Double_t fZmin
Definition
BmnFieldPar.h:82
BmnFieldPar::fIsOff
Bool_t fIsOff
Whether magnetic field is off.
Definition
BmnFieldPar.h:97
BmnFieldPar::fScale
Double_t fScale
Scaling factor for field map.
Definition
BmnFieldPar.h:94
BmnFieldPar::GetTypeOfParent
Int_t GetTypeOfParent() const
Definition
BmnFieldPar.h:67
BmnFieldPar::fXmin
Double_t fXmin
Field limits in case of constant field.
Definition
BmnFieldPar.h:80
BmnFieldPar::BmnFieldPar
BmnFieldPar(const char *name, const char *title, const char *context)
Standard constructor.
BmnFieldPar::SetParameters
void SetParameters(FairField *field)
Set parameters from BmnField.
BmnFieldPar::GetYmin
Double_t GetYmin() const
Definition
BmnFieldPar.h:51
FairField
FairParGenericSet
TString
kTypeDistorted
const int kTypeDistorted
Definition
BmnFieldPar.h:23
kMaxFieldMapType
const int kMaxFieldMapType
Definition
BmnFieldPar.h:22
install
include
BmnFieldPar.h
Generated on
for BmnRoot by
1.17.0