Belle II Software
release-05-02-19
Main Page
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Functions
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
z
Variables
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Typedefs
a
b
c
d
e
h
i
l
m
n
p
r
s
t
v
w
Enumerations
Enumerator
c
d
f
p
t
u
v
w
Classes
Class List
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Enumerations
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
t
u
v
Enumerator
a
b
c
d
e
f
g
h
k
l
m
n
o
p
r
s
t
u
v
w
z
Related Functions
b
c
d
g
i
o
r
s
t
Files
File List
File Members
All
Functions
GFGeant4Field.h
1
/**************************************************************************
2
* Belle II detector background library *
3
* Copyright(C) 2011 Belle II Collaboration *
4
* *
5
* Author: The Belle II Collaboration *
6
* Contributors: Andreas Moll, Martin Heck *
7
* *
8
* This software is provided "as is" without any warranty. *
9
**************************************************************************/
10
#pragma once
11
#include <framework/geometry/BFieldManager.h>
12
#include <framework/gearbox/Unit.h>
13
#include <genfit/AbsBField.h>
14
17
class
GFGeant4Field
:
public
genfit::AbsBField
{
18
public
:
25
GFGeant4Field
():
genfit::AbsBField
() {}
26
32
TVector3
get
(
const
TVector3& position)
const override
33
{
34
static
double
conversion{1. /
Belle2::Unit::kGauss
};
35
return
Belle2::BFieldManager::getField
(position) * conversion;
36
}
37
};
38
Belle2::BFieldManager::getField
static void getField(const double *pos, double *field)
return the magnetic field at a given position.
Definition:
BFieldManager.h:110
Belle2::Unit::kGauss
static const double kGauss
[kilogauss]
Definition:
Unit.h:133
genfit::AbsBField
Abstract Interface to magnetic fields in GENFIT.
Definition:
AbsBField.h:36
GFGeant4Field::get
TVector3 get(const TVector3 &position) const override
Getter for the magnetic field.
Definition:
GFGeant4Field.h:40
GFGeant4Field::GFGeant4Field
GFGeant4Field()
Constructor.
Definition:
GFGeant4Field.h:33
GFGeant4Field
Interface of the Belle II B-field with GenFit.
Definition:
GFGeant4Field.h:17
tracking
gfbfield
include
GFGeant4Field.h
Generated on Tue Jan 4 2022 03:05:20 for Belle II Software by
1.8.17