00001 /* BDSIM code. Version 1.0 00002 Author: Grahame A. Blair, Royal Holloway, Univ. of London. 00003 Last modified 24.7.2002 00004 Copyright (c) 2002 by G.A.Blair. ALL RIGHTS RESERVED. 00005 */ 00006 #ifndef BDSMULTIPOLEOUTERMAGFIELD 00007 #define BDSMULTIPOLEOUTERMAGFIELD 00008 00009 #include "G4Types.hh" 00010 #include "G4MagneticField.hh" 00011 00012 class BDSMultipoleOuterMagField : public G4MagneticField 00013 { 00014 public: // with description 00015 00016 BDSMultipoleOuterMagField(G4int nPole,G4double polField, G4double phiOffset); 00017 virtual ~BDSMultipoleOuterMagField(); 00018 // Constructor and destructor. No actions. 00019 00020 00021 virtual void GetFieldValue( const G4double *Point, 00022 G4double *Bfield ) const; 00023 00024 private: 00025 G4int itsNPoles; 00026 G4double itsIronField; 00027 G4double itsPhiOffset; 00028 G4double itsSectorPhi; 00029 }; 00030 00031 00032 #endif /* BDSMULTIPOELOUTERMAGFIELD */