#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}
G4Field(G4bool gravityOn=false)
Referenced by Clone().
◆ 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 |
( |
| ) |
|
|
overridedefault |
◆ G4UniformGravityField() [3/3]
Definition at line 57 of file G4UniformGravityField.cc.
59{
60 for (auto i=0; i<3; ++i)
61 {
62 fFieldComponents[i] = p.fFieldComponents[i];
63 }
64}
◆ Clone()
G4Field * G4UniformGravityField::Clone |
( |
| ) |
const |
|
overridevirtual |
Reimplemented from G4Field.
Definition at line 78 of file G4UniformGravityField.cc.
79{
81 fFieldComponents[1],
82 fFieldComponents[2]) );
83}
CLHEP::Hep3Vector G4ThreeVector
◆ DoesFieldChangeEnergy()
G4bool G4UniformGravityField::DoesFieldChangeEnergy |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ GetFieldValue()
void G4UniformGravityField::GetFieldValue |
( |
const G4double | Point[4], |
|
|
G4double * | field ) const |
|
overridevirtual |
Implements G4Field.
Definition at line 87 of file G4UniformGravityField.cc.
89{
90 G[0]= fFieldComponents[0];
91 G[1]= fFieldComponents[1];
92 G[2]= fFieldComponents[2];
93}
◆ operator=()
Definition at line 67 of file G4UniformGravityField.cc.
68{
69 if (&p == this) { return *this; }
71 for (auto i=0; i<3; ++i)
72 {
73 fFieldComponents[i] = p.fFieldComponents[i];
74 }
75 return *this;
76}
G4Field & operator=(const G4Field &p)
The documentation for this class was generated from the following files: