BOSS
7.0.1
BESIII Offline Software System
Toggle main menu visibility
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
z
Functions
a
b
c
d
e
f
g
i
l
m
n
o
p
r
s
t
u
v
w
z
Variables
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
v
w
x
z
Typedefs
c
d
e
g
h
i
l
m
n
o
p
r
s
t
v
Enumerations
_
e
f
g
h
i
l
m
o
p
r
s
t
Enumerator
a
b
c
d
e
f
i
k
l
m
n
o
p
r
s
t
u
w
x
z
Classes
Class List
Class Index
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
m
n
p
r
s
t
v
w
Enumerations
c
d
e
f
g
h
i
k
l
m
n
p
r
s
t
v
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
z
Related Functions
:
a
b
c
d
e
f
g
i
k
l
m
n
o
p
r
s
t
w
x
Files
File List
File 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
l
m
n
o
p
q
r
s
t
u
v
w
x
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
p
q
r
s
t
u
v
w
z
Enumerations
d
e
g
p
r
s
t
Enumerator
a
b
c
d
e
f
g
h
i
k
m
n
o
p
r
s
t
u
w
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
Loading...
Searching...
No Matches
Reconstruction/MdcPatRec/BField/BField-00-01-02/src/BField.cxx
Go to the documentation of this file.
1
//--------------------------------------------------------------------------
2
// File and Version Information:
3
// $Id: BField.cxx,v 1.2 2008/09/17 08:30:39 zhangy Exp $
4
//
5
// Description:
6
// Class BField; encapsulates the magnetic field.
7
//
8
// See header for more info.
9
//
10
// Environment:
11
// Software developed for the BESIII Detector at BEPCII
12
//
13
// Author List:
14
// Bob Jacobsen Original Author
15
// Zhang Yao Only keep nominal field
16
//
17
// Copyright Information:
18
// Copyright (C) 1995 Lawrence Berkeley Laboratory
19
//
20
//------------------------------------------------------------------------
21
22
//-----------------------
23
// This Class's Header --
24
//-----------------------
25
#include <iostream>
26
#include "BField/BField.h"
27
#include "MdcGeom/Constants.h"
28
29
const
double
BField::cmTeslaToGeVc
=
Constants::c
/1.0E13;
30
const
double
BField::gaussToTesla
= 1000.;
31
32
//constructor
33
BField::BField
(
IMagneticFieldSvc
* magSvc)
34
35
{ m_pIMF = magSvc;}
36
37
// destroy
38
BField::~BField
() {}
39
40
// field z of nominal field
41
double
42
BField::bFieldZ
()
const
43
{
44
return
m_pIMF->
getReferField
()*
gaussToTesla
;
45
}
46
47
void
BField::print
()
const
48
{
49
std::cout <<
"Default constant field"
<< std::endl;
50
std::cout <<
"nominal Field: "
<<
bFieldNominal
() << std::endl;
51
}
52
53
double
54
BField::bFieldNominal
()
const
55
{
56
return
bFieldZ
();
57
}
BField::bFieldNominal
double bFieldNominal() const
Definition:
Reconstruction/MdcPatRec/BField/BField-00-01-02/src/BField.cxx:54
BField::bFieldZ
double bFieldZ() const
Definition:
Reconstruction/MdcPatRec/BField/BField-00-01-02/src/BField.cxx:42
BField::cmTeslaToGeVc
static const double cmTeslaToGeVc
Definition:
InstallArea/include/BField/BField/BField.h:50
BField::BField
BField(IMagneticFieldSvc *magSvc)
Definition:
Reconstruction/MdcPatRec/BField/BField-00-01-02/src/BField.cxx:33
BField::~BField
~BField()
Definition:
Reconstruction/MdcPatRec/BField/BField-00-01-02/src/BField.cxx:38
BField::gaussToTesla
static const double gaussToTesla
Definition:
InstallArea/include/BField/BField/BField.h:51
BField::print
void print() const
Definition:
Reconstruction/MdcPatRec/BField/BField-00-01-02/src/BField.cxx:47
Constants::c
static const double c
Definition:
InstallArea/include/MdcGeom/MdcGeom/Constants.h:43
IMagneticFieldSvc
Definition:
InstallArea/include/MagneticField/MagneticField/IMagneticFieldSvc.h:29
IMagneticFieldSvc::getReferField
virtual double getReferField()=0
source
Reconstruction
MdcPatRec
BField
BField-00-01-02
src
BField.cxx
Generated by
1.9.6