Geant4  10.01
B5MagneticField Class Reference

Magnetic field. More...

#include <B5MagneticField.hh>

+ Inheritance diagram for B5MagneticField:
+ Collaboration diagram for B5MagneticField:

Public Member Functions

 B5MagneticField ()
 
virtual ~B5MagneticField ()
 
virtual void GetFieldValue (const G4double point[4], double *bField) const
 
void SetField (G4double val)
 
G4double GetField () const
 
- Public Member Functions inherited from G4MagneticField
 G4MagneticField ()
 
virtual ~G4MagneticField ()
 
 G4MagneticField (const G4MagneticField &r)
 
G4MagneticField & operator= (const G4MagneticField &p)
 
G4bool DoesFieldChangeEnergy () const
 
- Public Member Functions inherited from G4ElectroMagneticField
 G4ElectroMagneticField ()
 
virtual ~G4ElectroMagneticField ()
 
 G4ElectroMagneticField (const G4ElectroMagneticField &r)
 
G4ElectroMagneticField & operator= (const G4ElectroMagneticField &p)
 
- Public Member Functions inherited from G4Field
 G4Field (G4bool gravityOn=false)
 
 G4Field (const G4Field &)
 
virtual ~G4Field ()
 
G4Field & operator= (const G4Field &p)
 
G4bool IsGravityActive () const
 
void SetGravityActive (G4bool OnOffFlag)
 
virtual G4Field * Clone () const
 

Private Member Functions

void DefineCommands ()
 

Private Attributes

G4GenericMessenger * fMessenger
 
G4double fBy
 

Detailed Description

Magnetic field.

Definition at line 41 of file B5MagneticField.hh.

Constructor & Destructor Documentation

B5MagneticField::B5MagneticField ( )

Definition at line 39 of file B5MagneticField.cc.

References DefineCommands().

+ Here is the call graph for this function:

B5MagneticField::~B5MagneticField ( )
virtual

Definition at line 48 of file B5MagneticField.cc.

References fMessenger.

Member Function Documentation

void B5MagneticField::DefineCommands ( )
private

Definition at line 62 of file B5MagneticField.cc.

References G4GenericMessenger::DeclareMethodWithUnit(), fMessenger, G4GenericMessenger::Command::SetDefaultValue(), SetField(), and G4GenericMessenger::Command::SetParameterName().

Referenced by B5MagneticField().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4double B5MagneticField::GetField ( ) const
inline

Definition at line 50 of file B5MagneticField.hh.

References fBy.

void B5MagneticField::GetFieldValue ( const G4double  point[4],
double *  bField 
) const
virtual

Implements G4MagneticField.

Definition at line 53 of file B5MagneticField.cc.

References fBy.

void B5MagneticField::SetField ( G4double  val)
inline

Definition at line 49 of file B5MagneticField.hh.

References fBy.

Referenced by DefineCommands().

+ Here is the caller graph for this function:

Member Data Documentation

G4double B5MagneticField::fBy
private

Definition at line 56 of file B5MagneticField.hh.

Referenced by GetField(), GetFieldValue(), and SetField().

G4GenericMessenger* B5MagneticField::fMessenger
private

Definition at line 55 of file B5MagneticField.hh.

Referenced by DefineCommands(), and ~B5MagneticField().


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