Geant4-11
|
Minimal hit created in the fast simulation. More...
#include <G4FastHit.hh>
Public Member Functions | |
G4FastHit () | |
G4FastHit (const G4ThreeVector &aPosition, G4double aEnergy) | |
G4FastHit (const G4ThreeVector &aPosition, G4double aEnergy, G4bool aDebug) | |
G4double | GetEnergy () const |
Get energy. More... | |
G4ThreeVector | GetPosition () const |
Get position. More... | |
void | SetEnergy (const G4double &aEnergy) |
Set energy. More... | |
void | SetPosition (const G4ThreeVector &aPosition) |
Set position. More... | |
virtual | ~G4FastHit () |
Private Attributes | |
G4double | fEnergy = 0 |
energy More... | |
G4ThreeVector | fPosition = G4ThreeVector() |
position More... | |
Minimal hit created in the fast simulation.
Minimal hit containing energy and position, for use in the fast simulation classes. Hits of G4FastHit type can be created in user implementation of fast simulation model and then deposited in the detector using G4FastSimHitMaker helper class. The helper will locate the sensitive volume and check if it inherits from both base classes:
Definition at line 47 of file G4FastHit.hh.
G4FastHit::G4FastHit | ( | ) |
Definition at line 29 of file G4FastHit.cc.
G4FastHit::G4FastHit | ( | const G4ThreeVector & | aPosition, |
G4double | aEnergy | ||
) |
Definition at line 36 of file G4FastHit.cc.
G4FastHit::G4FastHit | ( | const G4ThreeVector & | aPosition, |
G4double | aEnergy, | ||
G4bool | aDebug | ||
) |
|
inlinevirtual |
Definition at line 53 of file G4FastHit.hh.
|
inline |
Get energy.
Definition at line 58 of file G4FastHit.hh.
References fEnergy.
Referenced by G4FastSimHitMaker::make().
|
inline |
Get position.
Definition at line 65 of file G4FastHit.hh.
References fPosition.
Referenced by G4VFastSimSensitiveDetector::Hit(), and G4FastSimHitMaker::make().
|
inline |
Set energy.
Definition at line 56 of file G4FastHit.hh.
References fEnergy.
|
inline |
|
private |
|
private |
position
Definition at line 70 of file G4FastHit.hh.
Referenced by GetPosition(), and SetPosition().