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
PHFieldUniform.cc
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file PHFieldUniform.cc
1
#include "
PHFieldUniform.h
"
2
3
#include <Geant4/G4SystemOfUnits.hh>
4
5
PHFieldUniform::PHFieldUniform
(
6
double
field_mag_x,
7
double
field_mag_y,
8
double
field_mag_z)
9
: field_mag_x_(field_mag_x * tesla)
10
, field_mag_y_(field_mag_y * tesla)
11
, field_mag_z_(field_mag_z * tesla)
12
{
13
}
14
15
void
PHFieldUniform::GetFieldValue
(
const
double
/*point*/
[4],
double
*Bfield)
const
16
{
17
Bfield[0] =
field_mag_x_
;
18
Bfield[1] =
field_mag_y_
;
19
Bfield[2] =
field_mag_z_
;
20
21
return
;
22
}
coresoftware
blob
master
offline
packages
PHField
PHFieldUniform.cc
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:18:07
using
1.8.2 with
sPHENIX GitHub integration