Geant4  10.03.p01
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
G4Field Class Referenceabstract

#include <G4Field.hh>

Inheritance diagram for G4Field:

Public Member Functions

virtual void GetFieldValue (const double Point[4], double *fieldArr) const =0
 
 G4Field (G4bool gravityOn=false)
 
 G4Field (const G4Field &)
 
virtual ~G4Field ()
 
G4Fieldoperator= (const G4Field &p)
 
virtual G4bool DoesFieldChangeEnergy () const =0
 
G4bool IsGravityActive () const
 
void SetGravityActive (G4bool OnOffFlag)
 
virtual G4FieldClone () const
 

Detailed Description

Definition at line 65 of file G4Field.hh.

Constructor & Destructor Documentation

G4Field::G4Field ( G4bool  gravityOn = false)

Definition at line 33 of file G4Field.cc.

33  :
34  fGravityActive( gravityOn )
35 {
36 }
G4Field::G4Field ( const G4Field p)

Definition at line 49 of file G4Field.cc.

50  : fGravityActive(p.fGravityActive)
51 {
52 }
G4Field::~G4Field ( )
virtual

Definition at line 38 of file G4Field.cc.

39 {
40 }

Member Function Documentation

G4Field * G4Field::Clone ( ) const
virtual

Reimplemented in G4UniformMagField, G4UniformGravityField, G4CachedMagneticField, G4QuadrupoleMagField, G4UniformElectricField, G4DELPHIMagField, G4HarmonicPolMagField, G4LineCurrentMagField, and G4KM_DummyField.

Definition at line 54 of file G4Field.cc.

55 {
57  msg << "Derived class does not implement cloning,\n"
58  << "but Clone method called.\n"
59  << "Cannot continue;";
60  G4Exception("G4Field::Clone", "GeomField004", FatalException,msg );
61  return NULL;
62 }
std::ostringstream G4ExceptionDescription
Definition: globals.hh:76
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
Definition: G4Exception.cc:41

Here is the call graph for this function:

Here is the caller graph for this function:

virtual G4bool G4Field::DoesFieldChangeEnergy ( ) const
pure virtual

Implemented in G4ElectroMagneticField, G4UniformGravityField, G4MagneticField, and G4ElectricField.

Here is the caller graph for this function:

virtual void G4Field::GetFieldValue ( const double  Point[4],
double *  fieldArr 
) const
pure virtual
G4bool G4Field::IsGravityActive ( ) const
inline

Definition at line 98 of file G4Field.hh.

98 { return fGravityActive;}

Here is the caller graph for this function:

G4Field & G4Field::operator= ( const G4Field p)

Definition at line 42 of file G4Field.cc.

43 {
44  if (&p == this) return *this;
45  fGravityActive= p.fGravityActive;
46  return *this;
47 }

Here is the caller graph for this function:

void G4Field::SetGravityActive ( G4bool  OnOffFlag)
inline

Definition at line 110 of file G4Field.hh.

111 {
112  fGravityActive= OnOffFlag;
113 }

The documentation for this class was generated from the following files: