ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HadrontherapyMagneticField3D Class Reference

#include <geant4/tree/geant4-10.6-release/examples/advanced/hadrontherapy/include/HadrontherapyMagneticField3D.hh>

+ Inheritance diagram for HadrontherapyMagneticField3D:
+ Collaboration diagram for HadrontherapyMagneticField3D:

Public Member Functions

 HadrontherapyMagneticField3D (const char *filename, double xOffset)
 
void GetFieldValue (const double Point[4], double *Bfield) const
 
- Public Member Functions inherited from G4MagneticField
 G4MagneticField ()
 
virtual ~G4MagneticField ()
 
 G4MagneticField (const G4MagneticField &r)
 
G4MagneticFieldoperator= (const G4MagneticField &p)
 
G4bool DoesFieldChangeEnergy () const
 
- Public Member Functions inherited from G4Field
 G4Field (G4bool gravityOn=false)
 
 G4Field (const G4Field &)
 
virtual ~G4Field ()
 
G4Fieldoperator= (const G4Field &p)
 
G4bool IsGravityActive () const
 
void SetGravityActive (G4bool OnOffFlag)
 
virtual G4FieldClone () const
 

Private Attributes

std::vector< std::vector
< std::vector< double > > > 
xField
 
std::vector< std::vector
< std::vector< double > > > 
yField
 
std::vector< std::vector
< std::vector< double > > > 
zField
 
int nx
 
int ny
 
int nz
 
double minx
 
double maxx
 
double miny
 
double maxy
 
double minz
 
double maxz
 
double dx
 
double dy
 
double dz
 
double fXoffset
 
bool invertX
 
bool invertY
 
bool invertZ
 

Additional Inherited Members

- Static Public Attributes inherited from G4Field
static constexpr G4int MAX_NUMBER_OF_COMPONENTS = 24
 

Detailed Description

Definition at line 38 of file HadrontherapyMagneticField3D.hh.

View newest version in sPHENIX GitHub at line 38 of file HadrontherapyMagneticField3D.hh

Constructor & Destructor Documentation

HadrontherapyMagneticField3D::HadrontherapyMagneticField3D ( const char *  filename,
double  xOffset 
)

Definition at line 37 of file HadrontherapyMagneticField3D.cc.

View newest version in sPHENIX GitHub at line 37 of file HadrontherapyMagneticField3D.cc

References cm, dx, dy, dz, file, G4cout, G4endl, invertX, invertY, invertZ, maxx, maxy, maxz, meter, minx, miny, minz, nx, ny, nz, boost::swap(), tesla, G4TemplateAutoLock< _Mutex_t >::unlock(), xField, yField, and zField.

+ Here is the call graph for this function:

Member Function Documentation

void HadrontherapyMagneticField3D::GetFieldValue ( const double  Point[4],
double *  Bfield 
) const
virtual

Implements G4MagneticField.

Definition at line 139 of file HadrontherapyMagneticField3D.cc.

View newest version in sPHENIX GitHub at line 139 of file HadrontherapyMagneticField3D.cc

References dx, dy, dz, fXoffset, G4cout, G4endl, invertX, invertY, invertZ, minx, miny, minz, nx, ny, nz, x, xField, y, yField, z, and zField.

Member Data Documentation

double HadrontherapyMagneticField3D::dx
private

Definition at line 53 of file HadrontherapyMagneticField3D.hh.

View newest version in sPHENIX GitHub at line 53 of file HadrontherapyMagneticField3D.hh

Referenced by GetFieldValue(), and HadrontherapyMagneticField3D().

double HadrontherapyMagneticField3D::dy
private

Definition at line 53 of file HadrontherapyMagneticField3D.hh.

View newest version in sPHENIX GitHub at line 53 of file HadrontherapyMagneticField3D.hh

Referenced by GetFieldValue(), and HadrontherapyMagneticField3D().

double HadrontherapyMagneticField3D::dz
private

Definition at line 53 of file HadrontherapyMagneticField3D.hh.

View newest version in sPHENIX GitHub at line 53 of file HadrontherapyMagneticField3D.hh

Referenced by GetFieldValue(), and HadrontherapyMagneticField3D().

double HadrontherapyMagneticField3D::fXoffset
private

Definition at line 54 of file HadrontherapyMagneticField3D.hh.

View newest version in sPHENIX GitHub at line 54 of file HadrontherapyMagneticField3D.hh

Referenced by GetFieldValue().

bool HadrontherapyMagneticField3D::invertX
private

Definition at line 55 of file HadrontherapyMagneticField3D.hh.

View newest version in sPHENIX GitHub at line 55 of file HadrontherapyMagneticField3D.hh

Referenced by GetFieldValue(), and HadrontherapyMagneticField3D().

bool HadrontherapyMagneticField3D::invertY
private

Definition at line 55 of file HadrontherapyMagneticField3D.hh.

View newest version in sPHENIX GitHub at line 55 of file HadrontherapyMagneticField3D.hh

Referenced by GetFieldValue(), and HadrontherapyMagneticField3D().

bool HadrontherapyMagneticField3D::invertZ
private

Definition at line 55 of file HadrontherapyMagneticField3D.hh.

View newest version in sPHENIX GitHub at line 55 of file HadrontherapyMagneticField3D.hh

Referenced by GetFieldValue(), and HadrontherapyMagneticField3D().

double HadrontherapyMagneticField3D::maxx
private

Definition at line 51 of file HadrontherapyMagneticField3D.hh.

View newest version in sPHENIX GitHub at line 51 of file HadrontherapyMagneticField3D.hh

Referenced by HadrontherapyMagneticField3D().

double HadrontherapyMagneticField3D::maxy
private

Definition at line 51 of file HadrontherapyMagneticField3D.hh.

View newest version in sPHENIX GitHub at line 51 of file HadrontherapyMagneticField3D.hh

Referenced by HadrontherapyMagneticField3D().

double HadrontherapyMagneticField3D::maxz
private

Definition at line 51 of file HadrontherapyMagneticField3D.hh.

View newest version in sPHENIX GitHub at line 51 of file HadrontherapyMagneticField3D.hh

Referenced by HadrontherapyMagneticField3D().

double HadrontherapyMagneticField3D::minx
private

Definition at line 51 of file HadrontherapyMagneticField3D.hh.

View newest version in sPHENIX GitHub at line 51 of file HadrontherapyMagneticField3D.hh

Referenced by GetFieldValue(), and HadrontherapyMagneticField3D().

double HadrontherapyMagneticField3D::miny
private

Definition at line 51 of file HadrontherapyMagneticField3D.hh.

View newest version in sPHENIX GitHub at line 51 of file HadrontherapyMagneticField3D.hh

Referenced by GetFieldValue(), and HadrontherapyMagneticField3D().

double HadrontherapyMagneticField3D::minz
private

Definition at line 51 of file HadrontherapyMagneticField3D.hh.

View newest version in sPHENIX GitHub at line 51 of file HadrontherapyMagneticField3D.hh

Referenced by GetFieldValue(), and HadrontherapyMagneticField3D().

int HadrontherapyMagneticField3D::nx
private

Definition at line 49 of file HadrontherapyMagneticField3D.hh.

View newest version in sPHENIX GitHub at line 49 of file HadrontherapyMagneticField3D.hh

Referenced by GetFieldValue(), and HadrontherapyMagneticField3D().

int HadrontherapyMagneticField3D::ny
private

Definition at line 49 of file HadrontherapyMagneticField3D.hh.

View newest version in sPHENIX GitHub at line 49 of file HadrontherapyMagneticField3D.hh

Referenced by GetFieldValue(), and HadrontherapyMagneticField3D().

int HadrontherapyMagneticField3D::nz
private

Definition at line 49 of file HadrontherapyMagneticField3D.hh.

View newest version in sPHENIX GitHub at line 49 of file HadrontherapyMagneticField3D.hh

Referenced by GetFieldValue(), and HadrontherapyMagneticField3D().

std::vector< std::vector< std::vector< double > > > HadrontherapyMagneticField3D::xField
private

Definition at line 45 of file HadrontherapyMagneticField3D.hh.

View newest version in sPHENIX GitHub at line 45 of file HadrontherapyMagneticField3D.hh

Referenced by GetFieldValue(), and HadrontherapyMagneticField3D().

std::vector< std::vector< std::vector< double > > > HadrontherapyMagneticField3D::yField
private

Definition at line 46 of file HadrontherapyMagneticField3D.hh.

View newest version in sPHENIX GitHub at line 46 of file HadrontherapyMagneticField3D.hh

Referenced by GetFieldValue(), and HadrontherapyMagneticField3D().

std::vector< std::vector< std::vector< double > > > HadrontherapyMagneticField3D::zField
private

Definition at line 47 of file HadrontherapyMagneticField3D.hh.

View newest version in sPHENIX GitHub at line 47 of file HadrontherapyMagneticField3D.hh

Referenced by GetFieldValue(), and HadrontherapyMagneticField3D().


The documentation for this class was generated from the following files: