Geant4  10.01
F03FieldSetup Class Reference

A class for setting up the Magnetic Field. More...

#include <F03FieldSetup.hh>

+ Collaboration diagram for F03FieldSetup:

Public Member Functions

 F03FieldSetup ()
 
virtual ~F03FieldSetup ()
 
void SetStepperType (G4int i)
 
void SetStepper ()
 
void SetMinStep (G4double s)
 
void SetFieldValue (G4ThreeVector fieldVector)
 
void SetFieldValue (G4double fieldValue)
 
G4ThreeVector GetConstantFieldValue ()
 
void UpdateField ()
 
G4FieldManager * GetLocalFieldManager ()
 

Protected Member Functions

G4FieldManager * GetGlobalFieldManager ()
 

Protected Attributes

G4FieldManager * fFieldManager
 
G4FieldManager * fLocalFieldManager
 
G4ChordFinder * fChordFinder
 
G4ChordFinder * fLocalChordFinder
 
G4Mag_UsualEqRhs * fEquation
 
G4Mag_UsualEqRhs * fLocalEquation
 
G4MagneticField * fMagneticField
 
G4MagneticField * fLocalMagneticField
 
G4MagIntegratorStepper * fStepper
 
G4MagIntegratorStepper * fLocalStepper
 
G4int fStepperType
 
G4double fMinStep
 
F03FieldMessenger * fFieldMessenger
 

Detailed Description

A class for setting up the Magnetic Field.

It also creates the necessary classes to control accuracy of propagation. In this example

  • There is a global field for most of the setup;
  • A local field overides it for some volume(s) and it assumed to be uniform.

Definition at line 56 of file F03FieldSetup.hh.

Constructor & Destructor Documentation

F03FieldSetup::F03FieldSetup ( )

Definition at line 66 of file F03FieldSetup.cc.

References fEquation, fFieldManager, fFieldMessenger, fLocalEquation, fLocalFieldManager, fLocalMagneticField, fMagneticField, fMinStep, fStepperType, GetGlobalFieldManager(), mm, tesla, and UpdateField().

+ Here is the call graph for this function:

F03FieldSetup::~F03FieldSetup ( )
virtual

Definition at line 102 of file F03FieldSetup.cc.

References fChordFinder, fFieldMessenger, fMagneticField, and fStepper.

Member Function Documentation

G4ThreeVector F03FieldSetup::GetConstantFieldValue ( )

Definition at line 239 of file F03FieldSetup.cc.

References fMagneticField, G4MagneticField::GetFieldValue(), and position.

Referenced by F03FieldMessenger::SetNewValue().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4FieldManager * F03FieldSetup::GetGlobalFieldManager ( )
protected

Definition at line 231 of file F03FieldSetup.cc.

References G4TransportationManager::GetFieldManager(), and G4TransportationManager::GetTransportationManager().

Referenced by F03FieldSetup(), and SetFieldValue().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4FieldManager* F03FieldSetup::GetLocalFieldManager ( )
inline

Definition at line 74 of file F03FieldSetup.hh.

References fLocalFieldManager.

Referenced by F03DetectorConstruction::ConstructSDandField().

+ Here is the caller graph for this function:

void F03FieldSetup::SetFieldValue ( G4ThreeVector  fieldVector)

Definition at line 203 of file F03FieldSetup.cc.

References fEquation, fMagneticField, GetGlobalFieldManager(), G4FieldManager::SetDetectorField(), and G4EquationOfMotion::SetFieldObj().

Referenced by SetFieldValue(), and F03FieldMessenger::SetNewValue().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void F03FieldSetup::SetFieldValue ( G4double  fieldValue)

Definition at line 195 of file F03FieldSetup.cc.

References SetFieldValue().

+ Here is the call graph for this function:

void F03FieldSetup::SetMinStep ( G4double  s)
inline

Definition at line 66 of file F03FieldSetup.hh.

References fMinStep, and s.

Referenced by F03FieldMessenger::SetNewValue().

+ Here is the caller graph for this function:

void F03FieldSetup::SetStepper ( )

Definition at line 133 of file F03FieldSetup.cc.

References fEquation, fLocalEquation, fLocalStepper, fStepper, fStepperType, G4cout, and G4endl.

Referenced by UpdateField().

+ Here is the caller graph for this function:

void F03FieldSetup::SetStepperType ( G4int  i)
inline

Definition at line 62 of file F03FieldSetup.hh.

References fStepperType.

Referenced by F03FieldMessenger::SetNewValue().

+ Here is the caller graph for this function:

void F03FieldSetup::UpdateField ( )

Definition at line 112 of file F03FieldSetup.cc.

References fChordFinder, fFieldManager, fLocalChordFinder, fLocalFieldManager, fLocalMagneticField, fLocalStepper, fMagneticField, fMinStep, fStepper, G4cout, G4endl, mm, G4FieldManager::SetChordFinder(), G4FieldManager::SetDetectorField(), and SetStepper().

Referenced by F03FieldSetup(), and F03FieldMessenger::SetNewValue().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Member Data Documentation

G4ChordFinder* F03FieldSetup::fChordFinder
protected

Definition at line 84 of file F03FieldSetup.hh.

Referenced by UpdateField(), and ~F03FieldSetup().

G4Mag_UsualEqRhs* F03FieldSetup::fEquation
protected

Definition at line 86 of file F03FieldSetup.hh.

Referenced by F03FieldSetup(), SetFieldValue(), and SetStepper().

G4FieldManager* F03FieldSetup::fFieldManager
protected

Definition at line 82 of file F03FieldSetup.hh.

Referenced by F03FieldSetup(), and UpdateField().

F03FieldMessenger* F03FieldSetup::fFieldMessenger
protected

Definition at line 97 of file F03FieldSetup.hh.

Referenced by F03FieldSetup(), and ~F03FieldSetup().

G4ChordFinder* F03FieldSetup::fLocalChordFinder
protected

Definition at line 85 of file F03FieldSetup.hh.

Referenced by UpdateField().

G4Mag_UsualEqRhs* F03FieldSetup::fLocalEquation
protected

Definition at line 87 of file F03FieldSetup.hh.

Referenced by F03FieldSetup(), and SetStepper().

G4FieldManager* F03FieldSetup::fLocalFieldManager
protected

Definition at line 83 of file F03FieldSetup.hh.

Referenced by F03FieldSetup(), GetLocalFieldManager(), and UpdateField().

G4MagneticField* F03FieldSetup::fLocalMagneticField
protected

Definition at line 89 of file F03FieldSetup.hh.

Referenced by F03FieldSetup(), and UpdateField().

G4MagIntegratorStepper* F03FieldSetup::fLocalStepper
protected

Definition at line 92 of file F03FieldSetup.hh.

Referenced by SetStepper(), and UpdateField().

G4MagneticField* F03FieldSetup::fMagneticField
protected
G4double F03FieldSetup::fMinStep
protected

Definition at line 95 of file F03FieldSetup.hh.

Referenced by F03FieldSetup(), SetMinStep(), and UpdateField().

G4MagIntegratorStepper* F03FieldSetup::fStepper
protected

Definition at line 91 of file F03FieldSetup.hh.

Referenced by SetStepper(), UpdateField(), and ~F03FieldSetup().

G4int F03FieldSetup::fStepperType
protected

Definition at line 93 of file F03FieldSetup.hh.

Referenced by F03FieldSetup(), SetStepper(), and SetStepperType().


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