ECCE @ EIC Software
 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 
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 }