#include <G4UniformGravityField.hh>
Definition at line 52 of file G4UniformGravityField.hh.
◆ G4UniformGravityField() [1/3]
Definition at line 44 of file G4UniformGravityField.cc.
46{
47 fFieldComponents[0] = FieldVector.
x();
48 fFieldComponents[1] = FieldVector.
y();
49 fFieldComponents[2] = FieldVector.
z();
50}
◆ G4UniformGravityField() [2/3]
G4UniformGravityField::G4UniformGravityField |
( |
const G4double |
gy = -9.81*CLHEP::m/CLHEP::s/CLHEP::s/CLHEP::c_light | ) |
|
Definition at line 53 of file G4UniformGravityField.cc.
55{
56 fFieldComponents[0] = 0.0;
57 fFieldComponents[1] = gy;
58 fFieldComponents[2] = 0.0;
59}
◆ ~G4UniformGravityField()
G4UniformGravityField::~G4UniformGravityField |
( |
| ) |
|
|
virtual |
◆ G4UniformGravityField() [3/3]
◆ DoesFieldChangeEnergy()
G4bool G4UniformGravityField::DoesFieldChangeEnergy |
( |
| ) |
const |
|
inlinevirtual |
◆ GetFieldValue()
Implements G4Field.
Definition at line 84 of file G4UniformGravityField.cc.
86{
87 G[0]= fFieldComponents[0] ;
88 G[1]= fFieldComponents[1] ;
89 G[2]= fFieldComponents[2] ;
90}
◆ operator=()
Definition at line 73 of file G4UniformGravityField.cc.
74{
75
76
77 for (
G4int i=0; i<3; i++)
78 fFieldComponents[i] = p.fFieldComponents[i];
79 return *this;
80}
The documentation for this class was generated from the following files: