10 #ifndef MAG_MAGNETICFIELD_H 11 #define MAG_MAGNETICFIELD_H 15 #include "TGeoVolume.h" 18 #include "Geant4/G4ThreeVector.hh" 54 std::vector<MagneticFieldDescription>
const&
Fields()
const {
return fFieldDescriptions; }
55 size_t NumFields()
const {
return fFieldDescriptions.size(); }
60 G4ThreeVector
const FieldAtPoint(G4ThreeVector
const&
p=G4ThreeVector(0))
const;
65 G4ThreeVector
const UniformFieldInVolume(
std::string const& volName)
const;
78 #endif // MAG_MAGNETICFIELD_H G4ThreeVector fField
description of the field (uniform only)
std::vector< MagneticFieldDescription > fFieldDescriptions
Descriptions of the fields.
#define DECLARE_ART_SERVICE(svc, scope)
std::vector< MagneticFieldDescription > const & Fields() const
TGeoVolume * fGeoVol
pointer to TGeoVolume with the field
MagFieldMode_t fMode
type of field used
std::string const & MagnetizedVolume(size_t f) const
enum mag::MagneticFieldMode MagFieldMode_t
MagFieldMode_t const & UseField(size_t f) const
G4String fVolume
G4 volume containing the field.