9 #ifndef MAGNETICFIELD_MAGNETICFIELDSTANDARD_H 10 #define MAGNETICFIELD_MAGNETICFIELDSTANDARD_H 19 #include "Geant4/G4ThreeVector.hh" 22 namespace fhicl {
class ParameterSet; }
37 std::vector<MagneticFieldDescription>
const&
Fields()
const override {
return fFieldDescriptions; }
40 size_t NumFields()
const override {
return fFieldDescriptions.size(); }
46 std::string
const&
MagnetizedVolume(
size_t f)
const override {
return fFieldDescriptions[
f].fVolume; }
49 G4ThreeVector
const FieldAtPoint(G4ThreeVector
const& p=G4ThreeVector(0))
const override;
54 G4ThreeVector
const UniformFieldInVolume(std::string
const& volName)
const override;
66 #endif // MAGNETICFIELD_MAGNETICFIELDSTANDARD_H std::vector< MagneticFieldDescription > const & Fields() const override
size_t NumFields() const override
std::vector< MagneticFieldDescription > fFieldDescriptions
Descriptions of the fields.
enum mag::MagneticFieldMode MagFieldMode_t
MagFieldMode_t const & UseField(size_t f) const override
std::string const & MagnetizedVolume(size_t f) const override