#include <G4UniformGravityField.hh>
Definition at line 52 of file G4UniformGravityField.hh.
G4UniformGravityField::G4UniformGravityField |
( |
const G4ThreeVector |
FieldVector | ) |
|
Definition at line 44 of file G4UniformGravityField.cc.
47 fFieldComponents[0] = FieldVector.
x();
48 fFieldComponents[1] = FieldVector.
y();
49 fFieldComponents[2] = FieldVector.
z();
G4Field(G4bool gravityOn=false)
Definition at line 53 of file G4UniformGravityField.cc.
56 fFieldComponents[0] = 0.0;
57 fFieldComponents[1] = gy;
58 fFieldComponents[2] = 0.0;
G4Field(G4bool gravityOn=false)
G4UniformGravityField::~G4UniformGravityField |
( |
| ) |
|
|
virtual |
Definition at line 72 of file G4UniformGravityField.cc.
75 for (
G4int i=0; i<3; i++)
77 fFieldComponents[i] = p.fFieldComponents[i];
G4Field(G4bool gravityOn=false)
G4Field * G4UniformGravityField::Clone |
( |
| ) |
const |
|
virtual |
G4bool G4UniformGravityField::DoesFieldChangeEnergy |
( |
| ) |
const |
|
inlinevirtual |
Implements G4Field.
Definition at line 95 of file G4UniformGravityField.cc.
98 G[0]= fFieldComponents[0] ;
99 G[1]= fFieldComponents[1] ;
100 G[2]= fFieldComponents[2] ;
Definition at line 82 of file G4UniformGravityField.cc.
84 if (&p ==
this)
return *
this;
86 for (
G4int i=0; i<3; i++)
88 fFieldComponents[i] = p.fFieldComponents[i];
G4Field & operator=(const G4Field &p)
The documentation for this class was generated from the following files: