Represents a world containing collections of GFields and G4FieldManagers.
More...
#include <gmagneto.h>
GMagneto manages the lifecycle and access to magnetic field objects (GField
) and their corresponding field managers (G4FieldManager
).
Definition at line 15 of file gmagneto.h.
◆ GMagneto()
GMagneto::GMagneto |
( |
GOptions * |
gopts | ) |
|
- Parameters
-
gopts | Pointer to the GOptions object containing configuration options. |
Definition at line 9 of file gmagneto.cc.
◆ ~GMagneto()
◆ getField()
GField* GMagneto::getField |
( |
std::string |
name | ) |
|
|
inline |
- Parameters
-
name | Name of the field to retrieve. |
- Returns
- Pointer to the GField object.
- Exceptions
-
Logs | an error and exits if the field is not found. |
Definition at line 54 of file gmagneto.h.
◆ getFieldMgr()
G4FieldManager* GMagneto::getFieldMgr |
( |
std::string |
name | ) |
|
|
inline |
- Parameters
-
name | Name of the field manager to retrieve. |
- Returns
- Pointer to the G4FieldManager object.
- Exceptions
-
Logs | an error and exits if the field manager is not found. |
Definition at line 69 of file gmagneto.h.
◆ isField()
bool GMagneto::isField |
( |
std::string |
name | ) |
|
|
inline |
- Parameters
-
name | Name of the field to check. |
- Returns
- True if the field exists, false otherwise.
Definition at line 43 of file gmagneto.h.
The documentation for this class was generated from the following files: