Geant4  10.02.p02
G4GlobalMagFieldMessenger Class Reference

#include <G4GlobalMagFieldMessenger.hh>

+ Inheritance diagram for G4GlobalMagFieldMessenger:
+ Collaboration diagram for G4GlobalMagFieldMessenger:

Public Member Functions

 G4GlobalMagFieldMessenger (const G4ThreeVector &value=G4ThreeVector())
 
virtual ~G4GlobalMagFieldMessenger ()
 
virtual void SetNewValue (G4UIcommand *, G4String)
 
void SetFieldValue (const G4ThreeVector &value)
 
G4ThreeVector GetFieldValue () const
 
void SetVerboseLevel (G4int verboseLevel)
 
G4int GetVerboseLevel () const
 
- Public Member Functions inherited from G4UImessenger
 G4UImessenger ()
 
 G4UImessenger (const G4String &path, const G4String &dsc, G4bool commandsToBeBroadcasted=true)
 
virtual ~G4UImessenger ()
 
virtual G4String GetCurrentValue (G4UIcommand *command)
 
G4bool operator== (const G4UImessenger &messenger) const
 
G4bool CommandsShouldBeInMaster () const
 

Private Member Functions

void SetField (const G4ThreeVector &value, const G4String &inFunction)
 

Private Attributes

G4UniformMagFieldfMagField
 
G4int fVerboseLevel
 
G4UIdirectoryfDirectory
 
G4UIcmdWith3VectorAndUnitfSetValueCmd
 
G4UIcmdWithAnIntegerfSetVerboseCmd
 

Additional Inherited Members

- Protected Member Functions inherited from G4UImessenger
G4String ItoS (G4int i)
 
G4String DtoS (G4double a)
 
G4String BtoS (G4bool b)
 
G4int StoI (G4String s)
 
G4double StoD (G4String s)
 
G4bool StoB (G4String s)
 
void AddUIcommand (G4UIcommand *newCommand)
 
void CreateDirectory (const G4String &path, const G4String &dsc, G4bool commandsToBeBroadcasted=true)
 
template<typename T >
T * CreateCommand (const G4String &cname, const G4String &dsc)
 
- Protected Attributes inherited from G4UImessenger
G4UIdirectorybaseDir
 
G4String baseDirName
 
G4bool commandsShouldBeInMaster
 

Detailed Description

Definition at line 56 of file G4GlobalMagFieldMessenger.hh.

Constructor & Destructor Documentation

G4GlobalMagFieldMessenger::G4GlobalMagFieldMessenger ( const G4ThreeVector value = G4ThreeVector())
G4GlobalMagFieldMessenger::~G4GlobalMagFieldMessenger ( )
virtual

Definition at line 83 of file G4GlobalMagFieldMessenger.cc.

References fDirectory, fMagField, fSetValueCmd, and fSetVerboseCmd.

Member Function Documentation

G4ThreeVector G4GlobalMagFieldMessenger::GetFieldValue ( ) const

Definition at line 150 of file G4GlobalMagFieldMessenger.cc.

References fMagField, and G4UniformMagField::GetConstantFieldValue().

+ Here is the call graph for this function:

G4int G4GlobalMagFieldMessenger::GetVerboseLevel ( ) const
inline

Definition at line 88 of file G4GlobalMagFieldMessenger.hh.

References fVerboseLevel.

void G4GlobalMagFieldMessenger::SetField ( const G4ThreeVector value,
const G4String inFunction 
)
private

Definition at line 93 of file G4GlobalMagFieldMessenger.cc.

References G4FieldManager::CreateChordFinder(), fMagField, fVerboseLevel, G4BestUnit, G4cout, G4endl, G4TransportationManager::GetFieldManager(), G4TransportationManager::GetTransportationManager(), G4FieldManager::SetDetectorField(), and G4UniformMagField::SetFieldValue().

Referenced by G4GlobalMagFieldMessenger(), SetFieldValue(), and SetNewValue().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4GlobalMagFieldMessenger::SetFieldValue ( const G4ThreeVector value)

Definition at line 143 of file G4GlobalMagFieldMessenger.cc.

References SetField().

+ Here is the call graph for this function:

void G4GlobalMagFieldMessenger::SetNewValue ( G4UIcommand command,
G4String  newValue 
)
virtual

Reimplemented from G4UImessenger.

Definition at line 128 of file G4GlobalMagFieldMessenger.cc.

References fSetValueCmd, fSetVerboseCmd, G4UIcmdWith3VectorAndUnit::GetNew3VectorValue(), G4UIcmdWithAnInteger::GetNewIntValue(), SetField(), and SetVerboseLevel().

+ Here is the call graph for this function:

void G4GlobalMagFieldMessenger::SetVerboseLevel ( G4int  verboseLevel)
inline

Member Data Documentation

G4UIdirectory* G4GlobalMagFieldMessenger::fDirectory
private
G4UniformMagField* G4GlobalMagFieldMessenger::fMagField
private
G4UIcmdWith3VectorAndUnit* G4GlobalMagFieldMessenger::fSetValueCmd
private
G4UIcmdWithAnInteger* G4GlobalMagFieldMessenger::fSetVerboseCmd
private
G4int G4GlobalMagFieldMessenger::fVerboseLevel
private

Definition at line 76 of file G4GlobalMagFieldMessenger.hh.

Referenced by GetVerboseLevel(), SetField(), and SetVerboseLevel().


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