![]() |
ATLAS Offline Software
|
#include <ConstantFieldSvc.h>
Public Member Functions | |
| ConstantFieldSvc (const std::string &name, ISvcLocator *pSvcLocator) | |
| Basic constructor and destructor. | |
| ~ConstantFieldSvc ()=default | |
| StatusCode | initialize () override final |
| Athena method. | |
| G4MagneticField * | getField () override final |
| Retrieve a G4 magnetic field object. | |
Protected Member Functions | |
| G4MagneticField * | makeField () override final |
| Create the field object. | |
Private Attributes | |
Field vector components - What are the units?? | |
| Gaudi::Property< double > | m_fieldX {this, "FieldX", 0., "Field X component"} |
| Gaudi::Property< double > | m_fieldY {this, "FieldY", 0., "Field Y component"} |
| Gaudi::Property< double > | m_fieldZ {this, "FieldZ", 0., "Field Z component"} |
Definition at line 19 of file ConstantFieldSvc.h.
| ConstantFieldSvc::ConstantFieldSvc | ( | const std::string & | name, |
| ISvcLocator * | pSvcLocator ) |
Basic constructor and destructor.
Definition at line 10 of file ConstantFieldSvc.cxx.
|
default |
|
finaloverrideinherited |
Retrieve a G4 magnetic field object.
If one doesn't yet exist in the current thread, it will be created.
Definition at line 31 of file G4MagFieldSvcBase.cxx.
|
finaloverride |
Athena method.
called at initialization time, being customized here
Definition at line 15 of file ConstantFieldSvc.cxx.
|
finaloverrideprotectedvirtual |
Create the field object.
Implements G4MagFieldSvcBase.
Definition at line 21 of file ConstantFieldSvc.cxx.
|
private |
Definition at line 39 of file ConstantFieldSvc.h.
|
private |
Definition at line 40 of file ConstantFieldSvc.h.
|
private |
Definition at line 41 of file ConstantFieldSvc.h.