| 1 |
976 |
jianian |
//
|
| 2 |
|
|
// ********************************************************************
|
| 3 |
|
|
// * DISCLAIMER *
|
| 4 |
|
|
// * *
|
| 5 |
|
|
// * The following disclaimer summarizes all the specific disclaimers *
|
| 6 |
|
|
// * of contributors to this software. The specific disclaimers,which *
|
| 7 |
|
|
// * govern, are listed with their locations in: *
|
| 8 |
|
|
// * http://cern.ch/geant4/license *
|
| 9 |
|
|
// * *
|
| 10 |
|
|
// * Neither the authors of this software system, nor their employing *
|
| 11 |
|
|
// * institutes,nor the agencies providing financial support for this *
|
| 12 |
|
|
// * work make any representation or warranty, express or implied, *
|
| 13 |
|
|
// * regarding this software system or assume any liability for its *
|
| 14 |
|
|
// * use. *
|
| 15 |
|
|
// * *
|
| 16 |
|
|
// * This code implementation is the intellectual property of the *
|
| 17 |
|
|
// * GEANT4 collaboration. *
|
| 18 |
|
|
// * By copying, distributing or modifying the Program (or any work *
|
| 19 |
|
|
// * based on the Program) you indicate your acceptance of this *
|
| 20 |
|
|
// * statement, and all its terms. *
|
| 21 |
|
|
// ********************************************************************
|
| 22 |
|
|
//
|
| 23 |
|
|
//
|
| 24 |
|
|
// $Id: G4MagneticField.hh,v 1.13 2003/11/05 10:35:55 japost Exp $
|
| 25 |
|
|
// GEANT4 tag $Name: geant4-07-01 $
|
| 26 |
|
|
//
|
| 27 |
|
|
//
|
| 28 |
|
|
// class G4MagneticField
|
| 29 |
|
|
//
|
| 30 |
|
|
// Class description:
|
| 31 |
|
|
//
|
| 32 |
|
|
// Magnetic Field abstract class, implements inquiry function interface.
|
| 33 |
|
|
|
| 34 |
|
|
// History:
|
| 35 |
|
|
// - Created. JA, January 13th, 1996.
|
| 36 |
|
|
// --------------------------------------------------------------------
|
| 37 |
|
|
|
| 38 |
|
|
//#ifndef G4MAGNETIC_FIELD_DEF
|
| 39 |
|
|
//#define G4MAGNETIC_FIELD_DEF
|
| 40 |
|
|
|
| 41 |
|
|
//#include "G4Types.hh"
|
| 42 |
|
|
//#include "G4ElectroMagneticField.hh"
|
| 43 |
|
|
|
| 44 |
|
|
class G4MagneticField //: public G4ElectroMagneticField
|
| 45 |
|
|
{
|
| 46 |
|
|
public: // with description
|
| 47 |
|
|
|
| 48 |
|
|
G4MagneticField();
|
| 49 |
|
|
virtual ~G4MagneticField();
|
| 50 |
|
|
//~ // Constructor and destructor. No actions.
|
| 51 |
|
|
|
| 52 |
|
|
//~ G4MagneticField(const G4MagneticField &r);
|
| 53 |
|
|
//~ G4MagneticField& operator = (const G4MagneticField &p);
|
| 54 |
|
|
//~ // Copy constructor & assignment operator.
|
| 55 |
|
|
|
| 56 |
|
|
//~ G4bool DoesFieldChangeEnergy() const { return false; }
|
| 57 |
|
|
//~ // Since a pure magnetic field does not change track energy
|
| 58 |
|
|
|
| 59 |
|
|
//~ virtual void GetFieldValue( const G4double Point[4],
|
| 60 |
|
|
//~ G4double *Bfield ) const = 0;
|
| 61 |
|
|
};
|
| 62 |
|
|
|
| 63 |
|
|
//#endif /* G4MAGNETIC_FIELD_DEF */
|