CbmRoot
CbmFieldMapCreator.h
Go to the documentation of this file.
1
// -------------------------------------------------------------------------
2
// ----- CbmFieldMapCreator header file -----
3
// ----- Created 15/01/08 by V. Friese -----
4
// -------------------------------------------------------------------------
5
6
17
#ifndef CBMFIELDMAPCREATOR_H
18
#define CBMFIELDMAPCREATOR_H 1
19
20
#include <Rtypes.h>
// for THashConsistencyHolder, ClassDef
21
#include <RtypesCore.h>
// for Double_t, Int_t, Bool_t
22
23
#include <TList.h>
// for TList
24
#include <TString.h>
// for TString
25
26
#include <FairField.h>
// for FairField
27
28
class
TArrayF;
29
30
class
CbmFieldMapCreator
{
31
32
33
public
:
35
CbmFieldMapCreator
();
36
37
40
CbmFieldMapCreator
(
const
char
* mapName);
41
42
44
virtual
~CbmFieldMapCreator
();
45
46
53
void
SetGridParameters
(Int_t nx,
54
Double_t xmin,
55
Double_t xmax,
56
Int_t ny,
57
Double_t ymin,
58
Double_t ymax,
59
Int_t nz,
60
Double_t zmin,
61
Double_t zmax);
62
63
65
void
AddField
(FairField* field) {
fFieldList
.Add(field); }
66
67
74
Bool_t
CreateMap
(
const
char
* fileName =
""
);
75
76
78
TString
GetMapName
()
const
{
return
fMapName
; }
79
Int_t
GetNx
()
const
{
return
fNx
; }
80
Int_t
GetNy
()
const
{
return
fNy
; }
81
Int_t
GetNz
()
const
{
return
fNz
; }
82
Double_t
GetXmin
()
const
{
return
fXmin
; }
83
Double_t
GetXmax
()
const
{
return
fXmax
; }
84
Double_t
GetYmin
()
const
{
return
fYmin
; }
85
Double_t
GetYmax
()
const
{
return
fYmax
; }
86
Double_t
GetZmin
()
const
{
return
fZmin
; }
87
Double_t
GetZmax
()
const
{
return
fZmax
; }
88
TArrayF*
GetBx
()
const
{
return
fBx
; }
89
TArrayF*
GetBy
()
const
{
return
fBy
; }
90
TArrayF*
GetBz
()
const
{
return
fBz
; }
91
92
93
private
:
94
TString
fMapName
;
// Name of field map to be created
95
Int_t
fNx
,
fNy
,
fNz
;
// Number of grid points in each dimension
96
Double_t
fXmin
,
fXmax
;
// Field limits in x
97
Double_t
fYmin
,
fYmax
;
// Field limits in y
98
Double_t
fZmin
,
fZmax
;
// Field limits in z
99
TArrayF*
fBx
;
// Array of Bx values;
100
TArrayF*
fBy
;
// Array of By values;
101
TArrayF*
fBz
;
// Array of Bz values;
102
TList
fFieldList
;
// List of input fields;
103
Bool_t
fInit
;
// Flag whether map is initialised
104
105
CbmFieldMapCreator
(
const
CbmFieldMapCreator
&);
106
CbmFieldMapCreator
&
operator=
(
const
CbmFieldMapCreator
&);
107
108
ClassDef
(
CbmFieldMapCreator
, 1);
109
};
110
111
#endif
CbmFieldMapCreator::fZmax
Double_t fZmax
Definition:
CbmFieldMapCreator.h:98
CbmFieldMapCreator::GetXmax
Double_t GetXmax() const
Definition:
CbmFieldMapCreator.h:83
CbmFieldMapCreator::fMapName
TString fMapName
Definition:
CbmFieldMapCreator.h:94
CbmFieldMapCreator::GetYmax
Double_t GetYmax() const
Definition:
CbmFieldMapCreator.h:85
CbmFieldMapCreator::fNx
Int_t fNx
Definition:
CbmFieldMapCreator.h:95
CbmFieldMapCreator
Definition:
CbmFieldMapCreator.h:30
CbmFieldMapCreator::GetZmin
Double_t GetZmin() const
Definition:
CbmFieldMapCreator.h:86
CbmFieldMapCreator::CbmFieldMapCreator
CbmFieldMapCreator()
Definition:
CbmFieldMapCreator.cxx:21
CbmFieldMapCreator::GetXmin
Double_t GetXmin() const
Definition:
CbmFieldMapCreator.h:82
CbmFieldMapCreator::fXmin
Double_t fXmin
Definition:
CbmFieldMapCreator.h:96
CbmFieldMapCreator::GetMapName
TString GetMapName() const
Definition:
CbmFieldMapCreator.h:78
CbmFieldMapCreator::GetBx
TArrayF * GetBx() const
Definition:
CbmFieldMapCreator.h:88
CbmFieldMapCreator::fNy
Int_t fNy
Definition:
CbmFieldMapCreator.h:95
CbmFieldMapCreator::GetNz
Int_t GetNz() const
Definition:
CbmFieldMapCreator.h:81
CbmFieldMapCreator::GetBy
TArrayF * GetBy() const
Definition:
CbmFieldMapCreator.h:89
CbmFieldMapCreator::GetNy
Int_t GetNy() const
Definition:
CbmFieldMapCreator.h:80
CbmFieldMapCreator::GetBz
TArrayF * GetBz() const
Definition:
CbmFieldMapCreator.h:90
CbmFieldMapCreator::fBx
TArrayF * fBx
Definition:
CbmFieldMapCreator.h:99
CbmFieldMapCreator::fYmin
Double_t fYmin
Definition:
CbmFieldMapCreator.h:97
CbmFieldMapCreator::GetNx
Int_t GetNx() const
Definition:
CbmFieldMapCreator.h:79
CbmFieldMapCreator::operator=
CbmFieldMapCreator & operator=(const CbmFieldMapCreator &)
CbmFieldMapCreator::fFieldList
TList fFieldList
Definition:
CbmFieldMapCreator.h:102
CbmFieldMapCreator::GetZmax
Double_t GetZmax() const
Definition:
CbmFieldMapCreator.h:87
CbmFieldMapCreator::fInit
Bool_t fInit
Definition:
CbmFieldMapCreator.h:103
CbmFieldMapCreator::AddField
void AddField(FairField *field)
Definition:
CbmFieldMapCreator.h:65
CbmFieldMapCreator::fNz
Int_t fNz
Definition:
CbmFieldMapCreator.h:95
CbmFieldMapCreator::fZmin
Double_t fZmin
Definition:
CbmFieldMapCreator.h:98
CbmFieldMapCreator::SetGridParameters
void SetGridParameters(Int_t nx, Double_t xmin, Double_t xmax, Int_t ny, Double_t ymin, Double_t ymax, Int_t nz, Double_t zmin, Double_t zmax)
Definition:
CbmFieldMapCreator.cxx:73
CbmFieldMapCreator::~CbmFieldMapCreator
virtual ~CbmFieldMapCreator()
Definition:
CbmFieldMapCreator.cxx:63
CbmFieldMapCreator::ClassDef
ClassDef(CbmFieldMapCreator, 1)
CbmFieldMapCreator::GetYmin
Double_t GetYmin() const
Definition:
CbmFieldMapCreator.h:84
CbmFieldMapCreator::fBz
TArrayF * fBz
Definition:
CbmFieldMapCreator.h:101
CbmFieldMapCreator::CbmFieldMapCreator
CbmFieldMapCreator(const CbmFieldMapCreator &)
CbmFieldMapCreator::fXmax
Double_t fXmax
Definition:
CbmFieldMapCreator.h:96
CbmFieldMapCreator::CreateMap
Bool_t CreateMap(const char *fileName="")
Definition:
CbmFieldMapCreator.cxx:97
CbmFieldMapCreator::fBy
TArrayF * fBy
Definition:
CbmFieldMapCreator.h:100
CbmFieldMapCreator::fYmax
Double_t fYmax
Definition:
CbmFieldMapCreator.h:97
core
field
CbmFieldMapCreator.h
Generated on Wed Oct 28 2020 15:11:35 for CbmRoot by
1.8.18