Magnetic field.
More...
#include <B5MagneticField.hh>
Magnetic field.
Definition at line 41 of file B5MagneticField.hh.
◆ B5MagneticField()
B5MagneticField::B5MagneticField |
( |
| ) |
|
◆ ~B5MagneticField()
B5MagneticField::~B5MagneticField |
( |
| ) |
|
|
virtual |
◆ GetFieldValue()
void B5MagneticField::GetFieldValue |
( |
const G4double | point[4], |
|
|
double * | bField ) const |
|
virtual |
◆ SetField()
void B5MagneticField::SetField |
( |
G4double | val | ) |
|
|
inline |
◆ GetField()
G4double B5MagneticField::GetField |
( |
| ) |
const |
|
inline |
◆ DefineCommands()
void B5MagneticField::DefineCommands |
( |
| ) |
|
|
private |
Definition at line 59 of file B5MagneticField.cxx.
60{
61
62 fMessenger =
new G4GenericMessenger(
this,
"/B5/field/",
"Field control");
63
64
65 G4GenericMessenger::Command& valueCmd =
fMessenger->DeclareMethodWithUnit(
67 valueCmd.SetParameterName("field", true);
68 valueCmd.SetDefaultValue("1.");
69}
void SetField(G4double val)
◆ fMessenger
G4GenericMessenger* B5MagneticField::fMessenger |
|
private |
◆ fBy
G4double B5MagneticField::fBy |
|
private |
The documentation for this class was generated from the following files: