![]() |
ATLAS Offline Software
|
Tool for setting up a volume-local magnetic field manager. More...
#include "G4AtlasTools/DetectorFieldManagerTool.h"
Public Member Functions | |
| DetectorFieldManagerTool (const std::string &type, const std::string &name, const IInterface *parent) | |
| Standard constructor. | |
| ~DetectorFieldManagerTool () | |
| Empty destructor. | |
| StatusCode | initializeField () override final |
| Initialize a field manager. | |
| virtual StatusCode | initialize () override |
| Initialize method. | |
Protected Member Functions | |
| G4MagIntegratorStepper * | getStepper (const std::string &stepperType, G4MagneticField *field) const |
| Common method to construct a stepper of requested type. | |
| StatusCode | setFieldParameters (G4FieldManager *fieldMgr) const |
| Common method to apply configuredfield parameters. | |
Protected Attributes | |
| Gaudi::Property< std::vector< std::string > > | m_logVolumeList {this, "LogicalVolumes", {}, "List of logical volumes to which the field will be applied"} |
| List of volumes to assign this field configuration to. | |
| Gaudi::Property< std::vector< std::string > > | m_physVolumeList {this, "PhysicalVolumes", {}, "List of physical volumes to which the field will be applied"} |
| Gaudi::Property< bool > | m_muonOnlyField {this, "MuonOnlyField", false, "Only muons experience the magnetic field"} |
| Option for muons feeling the B-field only. | |
| ServiceHandle< IG4FieldSvc > | m_fieldSvc {this, "FieldSvc", "G4FieldSvc", "Service providing a G4MagneticField"} |
| Handle to the G4 field service. | |
| Gaudi::Property< bool > | m_fieldOn {this, "FieldOn", true, "Toggles field on/off"} |
| Gaudi::Property< std::string > | m_integratorStepper {this, "IntegratorStepper", "AtlasRK4", "Integrator stepper name"} |
| The type of stepper to use. | |
| ToolHandle< IEquationOfMotionTool > | m_equationOfMotion {this, "EquationOfMotion", "", ""} |
| The type of equation of motion to use. | |
Field parameters | |
| Gaudi::Property< double > | m_minEps {this, "MinimumEpsilonStep", -1.0, "Minimum epsilon (see G4 documentation)"} |
| Gaudi::Property< double > | m_maxEps {this, "MaximumEpsilonStep", -1.0, "Maximum epsilon (see G4 documentation)"} |
| Gaudi::Property< double > | m_deltaChord {this, "DeltaChord", -1.0, "Missing distance for the chord finder"} |
| Gaudi::Property< double > | m_deltaOneStep {this, "DeltaOneStep", -1.0, "Delta(one-step)"} |
| Gaudi::Property< double > | m_deltaIntersection {this, "DeltaIntersection", -1.0, "Accuracy for boundary intersection"} |
| Gaudi::Property< double > | m_maxStep {this, "MaximumStep", -1.0, "Maximum step length in field (see G4 documentation)"} |
| Gaudi::Property< double > | m_minStep {this, "MinimumStep",1e-2, "Minimum step length in field (see G4 documentation)"} |
Tool for setting up a volume-local magnetic field manager.
Definition at line 18 of file DetectorFieldManagerTool.h.
| DetectorFieldManagerTool::DetectorFieldManagerTool | ( | const std::string & | type, |
| const std::string & | name, | ||
| const IInterface * | parent ) |
Standard constructor.
Definition at line 25 of file DetectorFieldManagerTool.cxx.
|
inline |
|
protectedinherited |
Common method to construct a stepper of requested type.
Definition at line 190 of file G4FieldManagerToolBase.cxx.
|
overridevirtualinherited |
Initialize method.
Definition at line 62 of file G4FieldManagerToolBase.cxx.
|
finaloverride |
Initialize a field manager.
Definition at line 35 of file DetectorFieldManagerTool.cxx.
|
protectedinherited |
Common method to apply configuredfield parameters.
Definition at line 238 of file G4FieldManagerToolBase.cxx.
|
protectedinherited |
Definition at line 81 of file G4FieldManagerToolBase.h.
|
protectedinherited |
Definition at line 83 of file G4FieldManagerToolBase.h.
|
protectedinherited |
Definition at line 82 of file G4FieldManagerToolBase.h.
|
protectedinherited |
The type of equation of motion to use.
Definition at line 74 of file G4FieldManagerToolBase.h.
|
protectedinherited |
Definition at line 68 of file G4FieldManagerToolBase.h.
|
protectedinherited |
Handle to the G4 field service.
Definition at line 65 of file G4FieldManagerToolBase.h.
|
protectedinherited |
The type of stepper to use.
Definition at line 71 of file G4FieldManagerToolBase.h.
|
protected |
List of volumes to assign this field configuration to.
Definition at line 36 of file DetectorFieldManagerTool.h.
|
protectedinherited |
Definition at line 80 of file G4FieldManagerToolBase.h.
|
protectedinherited |
Definition at line 84 of file G4FieldManagerToolBase.h.
|
protectedinherited |
Definition at line 79 of file G4FieldManagerToolBase.h.
|
protectedinherited |
Definition at line 85 of file G4FieldManagerToolBase.h.
|
protected |
Option for muons feeling the B-field only.
Definition at line 40 of file DetectorFieldManagerTool.h.
|
protected |
Definition at line 37 of file DetectorFieldManagerTool.h.