Geant4 10.7.0
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 ()
 
 G4FastHit (const G4ThreeVector &aPosition, G4double aEnergy)
 
 G4FastHit (const G4ThreeVector &aPosition, G4double aEnergy, G4bool aDebug)
 
virtual ~G4FastHit ()
 
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/3]

G4FastHit::G4FastHit ( )

Definition at line 29 of file G4FastHit.cc.

30 : fEnergy()
31 , fPosition(G4ThreeVector())
32{}
CLHEP::Hep3Vector G4ThreeVector

◆ G4FastHit() [2/3]

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

Definition at line 36 of file G4FastHit.cc.

37 : fEnergy(aEnergy)
38 , fPosition(aPosition)
39{}

◆ G4FastHit() [3/3]

G4FastHit::G4FastHit ( const G4ThreeVector aPosition,
G4double  aEnergy,
G4bool  aDebug 
)

◆ ~G4FastHit()

virtual G4FastHit::~G4FastHit ( )
inlinevirtual

Definition at line 53 of file G4FastHit.hh.

53{};

Member Function Documentation

◆ GetEnergy()

G4double G4FastHit::GetEnergy ( ) const
inline

Get energy.

Definition at line 58 of file G4FastHit.hh.

58{ return fEnergy; }

Referenced by G4FastSimHitMaker::make().

◆ GetPosition()

G4ThreeVector G4FastHit::GetPosition ( ) const
inline

Get position.

Definition at line 65 of file G4FastHit.hh.

65{ return fPosition; }

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

◆ SetEnergy()

void G4FastHit::SetEnergy ( const G4double aEnergy)
inline

Set energy.

Definition at line 56 of file G4FastHit.hh.

56{ fEnergy = aEnergy; }

◆ SetPosition()

void G4FastHit::SetPosition ( const G4ThreeVector aPosition)
inline

Set position.

Definition at line 60 of file G4FastHit.hh.

61 {
62 fPosition = aPosition;
63 }

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