Project
Loading...
Searching...
No Matches
FairField.cxx
Go to the documentation of this file.
1
/********************************************************************************
2
* Copyright (C) 2014 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
3
* *
4
* This software is distributed under the terms of the *
5
* GNU Lesser General Public Licence (LGPL) version 3, *
6
* copied verbatim in the file "LICENSE" *
7
********************************************************************************/
8
// -------------------------------------------------------------------------
9
// ----- FairField source file -----
10
// ----- Created 06/01/04 by M. Al/Turany -----
11
// ----- Redesign 13/02/06 by V. Friese -----
12
// -------------------------------------------------------------------------
13
14
#include "
FairField.h
"
15
16
FairField::FairField
()
17
:
TVirtualMagField
(
"FAIR Magnetic Field"
)
18
, fType(0)
19
{}
20
21
FairField::FairField
(
const
char
*
name
,
const
char
*)
22
:
TVirtualMagField
(
name
)
23
, fType(0)
24
{}
25
26
FairField::~FairField
() {}
27
28
Bool_t
FairField::IsConst
()
29
{
30
if
(
fType
== 1) {
31
return
kTRUE;
32
}
33
return
kFALSE;
34
}
35
36
Bool_t
FairField::IsMap
()
37
{
38
if
(
fType
== 2) {
39
return
kTRUE;
40
}
41
return
kFALSE;
42
}
43
44
void
FairField::GetFieldValue
(
const
Double_t point[3], Double_t* bField)
45
{
46
bField[0] =
GetBx
(point[0], point[1], point[2]);
47
bField[1] =
GetBy
(point[0], point[1], point[2]);
48
bField[2] =
GetBz
(point[0], point[1], point[2]);
49
}
50
51
ClassImp
(
FairField
);
ClassImp
ClassImp(FairField)
FairField.h
FairField
Definition
FairField.h:38
FairField::GetBz
virtual Double_t GetBz(Double_t, Double_t, Double_t)
Definition
FairField.h:86
FairField::GetBy
virtual Double_t GetBy(Double_t, Double_t, Double_t)
Definition
FairField.h:77
FairField::IsConst
Bool_t IsConst()
Definition
FairField.cxx:28
FairField::GetBx
virtual Double_t GetBx(Double_t, Double_t, Double_t)
Definition
FairField.h:68
FairField::~FairField
virtual ~FairField()
Definition
FairField.cxx:26
FairField::GetFieldValue
virtual void GetFieldValue(const Double_t point[3], Double_t *bField)
Definition
FairField.cxx:44
FairField::FairField
FairField()
Definition
FairField.cxx:16
FairField::fType
Int_t fType
Definition
FairField.h:110
FairField::IsMap
Bool_t IsMap()
Definition
FairField.cxx:36
TVirtualMagField
name
GLuint const GLchar * name
Definition
glcorearb.h:781
Detectors
3rdparty
FairRootBase
src
FairField.cxx
Generated on Sat Nov 7 2026 19:53:07 for Project by
1.9.8