00001 #ifndef BDS_SBEND_FIELD_HH 00002 #define BDS_SBEND_FIELD_HH 00003 00004 #include "globals.hh" 00005 #include "G4ThreeVector.hh" 00006 #include "G4UniformMagField.hh" 00007 #include "G4Mag_EqRhs.hh" 00008 00009 class BDSSbendMagField : public G4UniformMagField 00010 { 00011 public: // with description 00012 00013 BDSSbendMagField(const G4ThreeVector& FieldVector,const G4double aLength, 00014 const G4double aAngle); 00015 // A field with value equal to FieldVector. 00016 00017 ~BDSSbendMagField() ; 00018 00019 G4double GetLocalRadius(); 00020 00021 private: 00022 G4double itsLocalRadius ; 00023 00024 }; 00025 00026 inline G4double BDSSbendMagField::GetLocalRadius() 00027 {return itsLocalRadius;} 00028 00029 #endif