]>
Commit | Line | Data |
---|---|---|
676fb573 | 1 | // $Id$ |
2 | // Category: geometry | |
3 | // | |
4 | // Uniform magnetic field. | |
5 | // According to: | |
6 | // Id: ExN02MagneticField.hh,v 1.1 1999/01/07 16:05:47 gunter Exp | |
7 | // GEANT4 tag Name: geant4-00-01 | |
8 | ||
9 | #ifndef ALI_MAGNETIC_FIELD_H | |
10 | #define ALI_MAGNETIC_FIELD_H | |
11 | ||
12 | #include <G4UniformMagField.hh> | |
13 | ||
14 | class G4FieldManager; | |
15 | ||
16 | class AliMagneticField: public G4UniformMagField | |
17 | { | |
18 | public: | |
19 | AliMagneticField(); // A zero field | |
20 | AliMagneticField(G4ThreeVector fied); // The value of the field | |
21 | AliMagneticField(const AliMagneticField& right); | |
22 | virtual ~AliMagneticField(); | |
23 | ||
24 | // operators | |
25 | AliMagneticField& operator=(const AliMagneticField& right); | |
26 | ||
27 | // set methods | |
28 | void SetFieldValue(G4ThreeVector fieldVector); | |
29 | void SetFieldValue(G4double fieldValue); | |
30 | // Set the field to (0, 0, fieldValue) | |
31 | ||
32 | // get methods | |
33 | G4ThreeVector GetConstantFieldValue(); | |
34 | ||
35 | protected: | |
36 | // Find the global Field Manager | |
37 | G4FieldManager* GetGlobalFieldManager(); | |
38 | }; | |
39 | ||
40 | #endif //ALI_MAGNETIC_FIELD_H |