Geant4 VMC Version 6.7
|
The class for constructing magnetic, electromagnetic and gravity fields which strength is defined via TVirtualMagField. More...
#include <TG4Field.h>
Public Member Functions | |
TG4Field (const G4FieldParameters ¶meters, TVirtualMagField *magField, G4LogicalVolume *lv=nullptr) | |
~TG4Field () | |
G4Field * | GetG4Field () const |
Private Attributes | |
G4Field * | fG4Field = nullptr |
Geant4 field. | |
TVirtualMagField * | fVirtualMagField = nullptr |
The associated TGeo magnetic field. | |
G4LogicalVolume * | fLogicalVolume = nullptr |
The associated volume (if local field) | |
The class for constructing magnetic, electromagnetic and gravity fields which strength is defined via TVirtualMagField.
The field is constructed according to the setting in G4FieldParameters; the Geant4 defaults can be redefined via UI commands.
Definition at line 35 of file TG4Field.h.
TG4Field::TG4Field | ( | const G4FieldParameters & | parameters, |
TVirtualMagField * | magField, | ||
G4LogicalVolume * | lv = nullptr ) |
Default constructor
Definition at line 24 of file TG4Field.cxx.
TG4Field::~TG4Field | ( | ) |
Destructor
Definition at line 52 of file TG4Field.cxx.
|
inline |
Return the instantiated field
Definition at line 57 of file TG4Field.h.
Referenced by TG4GeometryManager::ConstructGlobalField().
|
private |
|
private |
The associated TGeo magnetic field.
Definition at line 50 of file TG4Field.h.
Referenced by TG4Field().
|
private |
The associated volume (if local field)
Definition at line 52 of file TG4Field.h.
Referenced by TG4Field().