Implementation of Spin Rotator.

This commit is contained in:
shiroka
2008-12-22 17:53:30 +00:00
parent 4c7938ed6d
commit 76c7f4062e
111 changed files with 409662 additions and 0 deletions

View File

@ -0,0 +1,38 @@
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
#ifndef sr1MagneticField_H
#define sr1MagneticField_H
#include "G4UniformMagField.hh"
class G4FieldManager;
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
class sr1MagneticField: public G4UniformMagField
{
public:
sr1MagneticField(G4ThreeVector); // The value of the field
sr1MagneticField(); // A zero field
~sr1MagneticField();
//Set the field (fieldValue,0,0)
void SetFieldValue(G4double fieldValue);
void SetFieldValue(G4ThreeVector fieldVector);
G4ThreeVector GetConstantFieldValue();
protected:
// Find the global Field Manager
G4FieldManager* GetGlobalFieldManager(); // static
};
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
#endif
G4bool CheckOverlaps(G4int res=1000, G4double tol=0., G4bool verbose=true);