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