Analysis Software
Documentation for
sPHENIX
simulation software
Home page
Related Pages
Modules
Namespaces
Classes
Files
Examples
External Links
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
PHG4MagneticField.cc
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file PHG4MagneticField.cc
1
// $Id: $
2
11
#include "
PHG4MagneticField.h
"
12
13
#include <phfield/PHField.h>
14
15
#include <cassert>
16
17
PHG4MagneticField::PHG4MagneticField
(
const
PHField
*
field
)
18
: field_(field)
19
{
20
assert
(
field_
);
21
}
22
23
PHG4MagneticField::~PHG4MagneticField
()
24
{
25
// delete field_; // this cleans the hcal fieldmap but crashes the regular map
26
}
27
28
void
PHG4MagneticField::GetFieldValue
(
const
double
Point[4],
double
* Bfield)
const
29
{
30
assert
(
field_
);
31
32
field_
->
GetFieldValue
(Point, Bfield);
33
}
coresoftware
blob
master
simulation
g4simulation
g4main
PHG4MagneticField.cc
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:18:15
using
1.8.2 with
sPHENIX GitHub integration