Geant4-11
Public Member Functions | Private Attributes
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)
 
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...
 

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:

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()
32{}
CLHEP::Hep3Vector G4ThreeVector
G4double fEnergy
energy
Definition: G4FastHit.hh:68
G4ThreeVector fPosition
position
Definition: G4FastHit.hh:70

◆ 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; }

References fEnergy.

Referenced by G4FastSimHitMaker::make().

◆ GetPosition()

G4ThreeVector G4FastHit::GetPosition ( void  ) const
inline

Get position.

Definition at line 65 of file G4FastHit.hh.

65{ return fPosition; }

References 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; }

References fEnergy.

◆ SetPosition()

void G4FastHit::SetPosition ( const G4ThreeVector aPosition)
inline

Set position.

Definition at line 60 of file G4FastHit.hh.

61 {
62 fPosition = aPosition;
63 }

References fPosition.

Field Documentation

◆ fEnergy

G4double G4FastHit::fEnergy = 0
private

energy

Definition at line 68 of file G4FastHit.hh.

Referenced by GetEnergy(), and SetEnergy().

◆ fPosition

G4ThreeVector G4FastHit::fPosition = G4ThreeVector()
private

position

Definition at line 70 of file G4FastHit.hh.

Referenced by GetPosition(), and SetPosition().


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