00001 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 00002 00003 #ifndef musrMagneticField_H 00004 #define musrMagneticField_H 00005 00006 #include "G4UniformMagField.hh" 00007 00008 class G4FieldManager; 00009 00010 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 00011 00012 00013 class musrMagneticField: public G4UniformMagField 00014 { 00015 public: 00016 00017 musrMagneticField(G4ThreeVector); // The value of the field 00018 musrMagneticField(); // A zero field 00019 ~musrMagneticField(); 00020 00021 //Set the field (fieldValue,0,0) 00022 void SetFieldValue(G4double fieldValue); 00023 void SetFieldValue(G4ThreeVector fieldVector); 00024 00025 G4ThreeVector GetConstantFieldValue(); 00026 00027 protected: 00028 00029 // Find the global Field Manager 00030 G4FieldManager* GetGlobalFieldManager(); // static 00031 }; 00032 00033 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 00034 00035 #endif
1.4.6