10 int main(
int argc,
char *argv[]) {
18 string field_name =
"dipole";
21 if (magneto->
isField(field_name)) {
25 cout <<
"Field " << field_name <<
" was not found." << endl;
Represents a world containing collections of GFields and G4FieldManagers.
bool isField(std::string name)
Checks if a field with the given name exists.
int main(int argc, char *argv[])