Import Geant4 5.0.0 source tree
This commit is contained in:
@@ -0,0 +1,55 @@
|
||||
//
|
||||
// ********************************************************************
|
||||
// * DISCLAIMER *
|
||||
// * *
|
||||
// * The following disclaimer summarizes all the specific disclaimers *
|
||||
// * of contributors to this software. The specific disclaimers,which *
|
||||
// * govern, are listed with their locations in: *
|
||||
// * http://cern.ch/geant4/license *
|
||||
// * *
|
||||
// * Neither the authors of this software system, nor their employing *
|
||||
// * institutes,nor the agencies providing financial support for this *
|
||||
// * work make any representation or warranty, express or implied, *
|
||||
// * regarding this software system or assume any liability for its *
|
||||
// * use. *
|
||||
// * *
|
||||
// * This code implementation is the intellectual property of the *
|
||||
// * GEANT4 collaboration. *
|
||||
// * By copying, distributing or modifying the Program (or any work *
|
||||
// * based on the Program) you indicate your acceptance of this *
|
||||
// * statement, and all its terms. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: A01MagneticField.hh,v 1.3 2002/12/13 11:34:29 gunter Exp $
|
||||
// --------------------------------------------------------------
|
||||
//
|
||||
|
||||
#ifndef A01MagneticField_H
|
||||
#define A01MagneticField_H 1
|
||||
|
||||
#include "globals.hh"
|
||||
#include "G4MagneticField.hh"
|
||||
class A01MagneticFieldMessenger;
|
||||
|
||||
class A01MagneticField : public G4MagneticField
|
||||
{
|
||||
public:
|
||||
A01MagneticField();
|
||||
~A01MagneticField();
|
||||
|
||||
virtual void GetFieldValue( const double Point[3],
|
||||
double *Bfield ) const;
|
||||
|
||||
private:
|
||||
A01MagneticFieldMessenger* messenger;
|
||||
G4double By;
|
||||
G4double rmax_sq;
|
||||
G4double ymax;
|
||||
|
||||
public:
|
||||
inline void SetField(G4double val) { By = val; }
|
||||
inline G4double GetField() const { return By; }
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user