Geant4 11.2.2
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4FastHit Class Reference

Minimal hit created in the fast simulation. More...

#include <G4FastHit.hh>

Public Member Functions

 G4FastHit ()=default
 
 G4FastHit (const G4ThreeVector &aPosition, G4double aEnergy)
 
virtual ~G4FastHit ()=default
 
void SetEnergy (const G4double &aEnergy)
 Set energy.
 
G4double GetEnergy () const
 Get energy.
 
void SetPosition (const G4ThreeVector &aPosition)
 Set position.
 
G4ThreeVector GetPosition () const
 Get position.
 

Detailed Description

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:

  • G4VSensitiveDetector: for processing of detailed/non-fast simulation hits;
  • G4VFastSimSensitiveDetector: for processing of fast sim (G4FastSim) hits; An extended example extended/parameterisations/Par03 demonstrates how to use G4FastHit to create multiple deposits from the fast simulation model.

Definition at line 47 of file G4FastHit.hh.

Constructor & Destructor Documentation

◆ G4FastHit() [1/2]

G4FastHit::G4FastHit ( )
default

◆ G4FastHit() [2/2]

G4FastHit::G4FastHit ( const G4ThreeVector & aPosition,
G4double aEnergy )
inline

Definition at line 51 of file G4FastHit.hh.

52 : fEnergy(aEnergy), fPosition(aPosition)
53 {}

◆ ~G4FastHit()

virtual G4FastHit::~G4FastHit ( )
virtualdefault

Member Function Documentation

◆ GetEnergy()

G4double G4FastHit::GetEnergy ( ) const
inline

Get energy.

Definition at line 59 of file G4FastHit.hh.

59{ return fEnergy; }

Referenced by G4FastSimHitMaker::make().

◆ GetPosition()

G4ThreeVector G4FastHit::GetPosition ( ) const
inline

Get position.

Definition at line 63 of file G4FastHit.hh.

63{ return fPosition; }

Referenced by G4VFastSimSensitiveDetector::Hit(), and G4FastSimHitMaker::make().

◆ SetEnergy()

void G4FastHit::SetEnergy ( const G4double & aEnergy)
inline

Set energy.

Definition at line 57 of file G4FastHit.hh.

57{ fEnergy = aEnergy; }

◆ SetPosition()

void G4FastHit::SetPosition ( const G4ThreeVector & aPosition)
inline

Set position.

Definition at line 61 of file G4FastHit.hh.

61{ fPosition = aPosition; }

The documentation for this class was generated from the following file: