Geant4  10.01
G4UniformMagField Class Reference

#include <G4UniformMagField.hh>

+ Inheritance diagram for G4UniformMagField:
+ Collaboration diagram for G4UniformMagField:

Public Member Functions

 G4UniformMagField (const G4ThreeVector &FieldVector)
 
 G4UniformMagField (G4double vField, G4double vTheta, G4double vPhi)
 
virtual ~G4UniformMagField ()
 
 G4UniformMagField (const G4UniformMagField &p)
 
G4UniformMagFieldoperator= (const G4UniformMagField &p)
 
virtual void GetFieldValue (const G4double yTrack[4], G4double *MagField) const
 
void SetFieldValue (const G4ThreeVector &newFieldValue)
 
G4ThreeVector GetConstantFieldValue () const
 
virtual G4UniformMagFieldClone () 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 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)
 

Private Attributes

G4double fFieldComponents [3]
 

Detailed Description

Definition at line 49 of file G4UniformMagField.hh.

Constructor & Destructor Documentation

G4UniformMagField::G4UniformMagField ( const G4ThreeVector FieldVector)

Definition at line 39 of file G4UniformMagField.cc.

References fFieldComponents.

Referenced by Clone().

+ Here is the caller graph for this function:

G4UniformMagField::G4UniformMagField ( G4double  vField,
G4double  vTheta,
G4double  vPhi 
)

Definition at line 61 of file G4UniformMagField.cc.

References FatalException, fFieldComponents, G4Exception(), and G4INCL::Math::pi.

+ Here is the call graph for this function:

G4UniformMagField::~G4UniformMagField ( )
virtual

Definition at line 75 of file G4UniformMagField.cc.

G4UniformMagField::G4UniformMagField ( const G4UniformMagField p)

Definition at line 79 of file G4UniformMagField.cc.

References fFieldComponents.

Member Function Documentation

G4UniformMagField * G4UniformMagField::Clone ( ) const
virtual

Reimplemented from G4Field.

Definition at line 46 of file G4UniformMagField.cc.

References fFieldComponents, and G4UniformMagField().

+ Here is the call graph for this function:

G4ThreeVector G4UniformMagField::GetConstantFieldValue ( ) const

Definition at line 104 of file G4UniformMagField.cc.

References fFieldComponents.

Referenced by export_G4UniformMagField(), and G4GlobalMagFieldMessenger::GetFieldValue().

+ Here is the caller graph for this function:

void G4UniformMagField::GetFieldValue ( const G4double  yTrack[4],
G4double MagField 
) const
virtual

Implements G4MagneticField.

Definition at line 96 of file G4UniformMagField.cc.

References fFieldComponents.

G4UniformMagField & G4UniformMagField::operator= ( const G4UniformMagField p)

Definition at line 86 of file G4UniformMagField.cc.

References fFieldComponents.

void G4UniformMagField::SetFieldValue ( const G4ThreeVector newFieldValue)

Definition at line 54 of file G4UniformMagField.cc.

References fFieldComponents.

Referenced by export_G4UniformMagField(), G4GlobalMagFieldMessenger::SetField(), ExErrorMagneticField::SetFieldValue(), ExP01MagneticField::SetFieldValue(), and ExN02MagneticField::SetMagFieldValue().

+ Here is the caller graph for this function:

Member Data Documentation

G4double G4UniformMagField::fFieldComponents[3]
private

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