#include <G4UniformGravityField.hh>
Definition at line 44 of file G4UniformGravityField.hh.
◆ G4UniformGravityField() [1/3]
G4UniformGravityField::G4UniformGravityField |
( |
const G4ThreeVector & |
FieldVector | ) |
|
Definition at line 38 of file G4UniformGravityField.cc.
40{
41 fFieldComponents[0] = FieldVector.
x();
42 fFieldComponents[1] = FieldVector.
y();
43 fFieldComponents[2] = FieldVector.
z();
44}
◆ G4UniformGravityField() [2/3]
G4UniformGravityField::G4UniformGravityField |
( |
const G4double |
gy = -9.81*CLHEP::m/CLHEP::s/CLHEP::s | ) |
|
Definition at line 47 of file G4UniformGravityField.cc.
49{
50 fFieldComponents[0] = 0.0;
51 fFieldComponents[1] = gy;
52 fFieldComponents[2] = 0.0;
53}
◆ ~G4UniformGravityField()
G4UniformGravityField::~G4UniformGravityField |
( |
| ) |
|
|
virtual |
◆ G4UniformGravityField() [3/3]
Definition at line 59 of file G4UniformGravityField.cc.
61{
62 for (auto i=0; i<3; ++i)
63 {
64 fFieldComponents[i] = p.fFieldComponents[i];
65 }
66}
◆ Clone()
G4Field * G4UniformGravityField::Clone |
( |
| ) |
const |
|
virtual |
Reimplemented from G4Field.
Definition at line 80 of file G4UniformGravityField.cc.
81{
83 fFieldComponents[1],
84 fFieldComponents[2]) );
85}
CLHEP::Hep3Vector G4ThreeVector
◆ DoesFieldChangeEnergy()
G4bool G4UniformGravityField::DoesFieldChangeEnergy |
( |
| ) |
const |
|
inlinevirtual |
◆ GetFieldValue()
void G4UniformGravityField::GetFieldValue |
( |
const G4double |
Point[4], |
|
|
G4double * |
field |
|
) |
| const |
|
virtual |
Implements G4Field.
Definition at line 89 of file G4UniformGravityField.cc.
91{
92 G[0]= fFieldComponents[0];
93 G[1]= fFieldComponents[1];
94 G[2]= fFieldComponents[2];
95}
◆ operator=()
Definition at line 69 of file G4UniformGravityField.cc.
70{
71 if (&p == this) return *this;
73 for (auto i=0; i<3; ++i)
74 {
75 fFieldComponents[i] = p.fFieldComponents[i];
76 }
77 return *this;
78}
G4Field & operator=(const G4Field &p)
The documentation for this class was generated from the following files: