File indexing completed on 2025-01-30 10:30:43
0001
0002 #ifndef _PFRICH_MAGNETIC_FIELD_
0003 #define _PFRICH_MAGNETIC_FIELD_
0004
0005 #include "globals.hh"
0006 #include "G4MagneticField.hh"
0007
0008 #include <epic.h>
0009
0010 #if defined(BMF) && defined(_USE_MAGNETIC_FIELD_)
0011 #include <BeastMagneticField.h>
0012 #endif
0013
0014 class MagneticField : public G4MagneticField
0015 {
0016 public:
0017 MagneticField(const char *fname);
0018 virtual ~MagneticField() {};
0019
0020 virtual void GetFieldValue(const G4double point[4], double *bField ) const;
0021
0022 private:
0023 #if defined(BMF) && defined(_USE_MAGNETIC_FIELD_)
0024 BeastMagneticField *m_BMF;
0025 #endif
0026 };
0027
0028 #endif