Geant4  10.03.p03
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
RE05Field Class Reference

#include <RE05Field.hh>

Inheritance diagram for RE05Field:
Collaboration diagram for RE05Field:

Public Member Functions

 RE05Field ()
 
virtual ~RE05Field ()
 
virtual void GetFieldValue (const double Point[3], double *Bfield) const
 
- Public Member Functions inherited from G4MagneticField
 G4MagneticField ()
 
virtual ~G4MagneticField ()
 
 G4MagneticField (const G4MagneticField &r)
 
G4MagneticFieldoperator= (const G4MagneticField &p)
 
G4bool DoesFieldChangeEnergy () const
 
virtual void GetFieldValue (const G4double Point[4], G4double *Bfield) const =0
 
- Public Member Functions inherited from G4ElectroMagneticField
 G4ElectroMagneticField ()
 
virtual ~G4ElectroMagneticField ()
 
 G4ElectroMagneticField (const G4ElectroMagneticField &r)
 
G4ElectroMagneticFieldoperator= (const G4ElectroMagneticField &p)
 
- 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
 

Detailed Description

Definition at line 38 of file RE05Field.hh.

Constructor & Destructor Documentation

RE05Field::RE05Field ( )

Definition at line 37 of file RE05Field.cc.

39 {
40  fBz = 3.0*tesla;
41  fRmax_sq = sqr(50.*cm);
42  fZmax = 100.*cm;
43 }
static constexpr double tesla
Definition: G4SIunits.hh:268
static constexpr double cm
Definition: G4SIunits.hh:119
T sqr(const T &x)
Definition: templates.hh:145

Here is the call graph for this function:

RE05Field::~RE05Field ( )
virtual

Definition at line 47 of file RE05Field.cc.

48 {}

Member Function Documentation

void RE05Field::GetFieldValue ( const double  Point[3],
double *  Bfield 
) const
virtual

Definition at line 52 of file RE05Field.cc.

53 {
54  Bfield[0] = 0.;
55  Bfield[1] = 0.;
56  if(std::abs(Point[2])<fZmax && (sqr(Point[0])+sqr(Point[1]))<fRmax_sq)
57  { Bfield[2] = fBz; }
58  else
59  { Bfield[2] = 0.; }
60 }
T sqr(const T &x)
Definition: templates.hh:145

Here is the call graph for this function:


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