ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
G4GlobalMagFieldMessenger Class Reference

#include <geant4/tree/geant4-10.6-release/source/geometry/navigation/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 = nullptr
 
G4int fVerboseLevel = 0
 
G4UIdirectoryfDirectory = nullptr
 
G4UIcmdWith3VectorAndUnitfSetValueCmd = nullptr
 
G4UIcmdWithAnIntegerfSetVerboseCmd = nullptr
 

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)
 
G4long StoL (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 >
TCreateCommand (const G4String &cname, const G4String &dsc)
 
- Protected Attributes inherited from G4UImessenger
G4UIdirectorybaseDir
 
G4String baseDirName
 
G4bool commandsShouldBeInMaster
 

Detailed Description

Definition at line 54 of file G4GlobalMagFieldMessenger.hh.

View newest version in sPHENIX GitHub at line 54 of file G4GlobalMagFieldMessenger.hh

Constructor & Destructor Documentation

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

Definition at line 45 of file G4GlobalMagFieldMessenger.cc.

View newest version in sPHENIX GitHub at line 45 of file G4GlobalMagFieldMessenger.cc

References G4UIcommand::AvailableForStates(), fDirectory, fMagField, fSetValueCmd, fSetVerboseCmd, G4State_Idle, G4State_PreInit, SetField(), G4UIcommand::SetGuidance(), G4UIcmdWithAnInteger::SetParameterName(), G4UIcmdWith3VectorAndUnit::SetParameterName(), G4UIcommand::SetRange(), and G4UIcmdWith3VectorAndUnit::SetUnitCategory().

+ Here is the call graph for this function:

G4GlobalMagFieldMessenger::~G4GlobalMagFieldMessenger ( )
virtual

Definition at line 74 of file G4GlobalMagFieldMessenger.cc.

View newest version in sPHENIX GitHub at line 74 of file G4GlobalMagFieldMessenger.cc

References fDirectory, fMagField, fSetValueCmd, and fSetVerboseCmd.

Member Function Documentation

G4ThreeVector G4GlobalMagFieldMessenger::GetFieldValue ( ) const

Definition at line 141 of file G4GlobalMagFieldMessenger.cc.

View newest version in sPHENIX GitHub at line 141 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 86 of file G4GlobalMagFieldMessenger.hh.

View newest version in sPHENIX GitHub at line 86 of file G4GlobalMagFieldMessenger.hh

References fVerboseLevel.

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

Definition at line 84 of file G4GlobalMagFieldMessenger.cc.

View newest version in sPHENIX GitHub at line 84 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 134 of file G4GlobalMagFieldMessenger.cc.

View newest version in sPHENIX GitHub at line 134 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 119 of file G4GlobalMagFieldMessenger.cc.

View newest version in sPHENIX GitHub at line 119 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 = nullptr
private

Definition at line 76 of file G4GlobalMagFieldMessenger.hh.

View newest version in sPHENIX GitHub at line 76 of file G4GlobalMagFieldMessenger.hh

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

G4UniformMagField* G4GlobalMagFieldMessenger::fMagField = nullptr
private

Definition at line 73 of file G4GlobalMagFieldMessenger.hh.

View newest version in sPHENIX GitHub at line 73 of file G4GlobalMagFieldMessenger.hh

Referenced by G4GlobalMagFieldMessenger(), GetFieldValue(), SetField(), and ~G4GlobalMagFieldMessenger().

G4UIcmdWith3VectorAndUnit* G4GlobalMagFieldMessenger::fSetValueCmd = nullptr
private

Definition at line 77 of file G4GlobalMagFieldMessenger.hh.

View newest version in sPHENIX GitHub at line 77 of file G4GlobalMagFieldMessenger.hh

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

G4UIcmdWithAnInteger* G4GlobalMagFieldMessenger::fSetVerboseCmd = nullptr
private

Definition at line 78 of file G4GlobalMagFieldMessenger.hh.

View newest version in sPHENIX GitHub at line 78 of file G4GlobalMagFieldMessenger.hh

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

G4int G4GlobalMagFieldMessenger::fVerboseLevel = 0
private

Definition at line 74 of file G4GlobalMagFieldMessenger.hh.

View newest version in sPHENIX GitHub at line 74 of file G4GlobalMagFieldMessenger.hh

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


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