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 BDSSEXTMAGFIELD 00007 #define BDSSEXTMAGFIELD 00008 00009 #include "G4Types.hh" 00010 #include "G4MagneticField.hh" 00011 00012 class BDSSextMagField : public G4MagneticField 00013 { 00014 public: // with description 00015 00016 BDSSextMagField(G4double aBDblePrime); 00017 virtual ~BDSSextMagField(); 00018 // Constructor and destructor. No actions. 00019 00020 00021 virtual void GetFieldValue( const G4double Point[4], 00022 G4double *Bfield ) const; 00023 void SetBDblPrime(G4double aBDblePrime); 00024 private: 00025 G4double itsBDblePrime; 00026 00027 }; 00028 00029 inline void BDSSextMagField::SetBDblPrime(G4double aBDblePrime) 00030 { itsBDblePrime = aBDblePrime; } 00031 00032 #endif /* BDSSEXTMAGFIELD */