Geant4 11.1.1
Toolkit for the simulation of the passage of particles through matter
|
Base class for the sensitive detector used within the fast simulation. More...
#include <G4VFastSimSensitiveDetector.hh>
Public Member Functions | |
G4bool | Hit (const G4FastHit *aHit, const G4FastTrack *aTrack, G4TouchableHandle *aTouchable) |
Base class for the sensitive detector used within the fast simulation.
Base class for a sensitive detector that allows to store hits created in the fast simulation models. It must me used in addition to inheritance from the usual base class G4VSensitiveDetector
for processing of energy deposited in G4Step. ProcessHits(...) method must be implemented and describe how hits should be saved in the hit collections. It is invoked by Hit method which is public and can be called directly in the fast simulation model (if sensitive detector is known to the model), or via the helper class G4FastSimHitMaker that will locate appropriate volume and retrieve its sensitive detector. An extended example extended/parameterisations/Par03 demonstrates how to use G4VFastSimSensitiveDetector to deposit energy from fast simulation and compare it to the detailed simulation.
Definition at line 54 of file G4VFastSimSensitiveDetector.hh.
|
inline |
Create a hit.
It checks if G4VSensitiveDetector is also used as a base class, and takes into account the readout geometry, if it is defined. User instruction on how to deposit energy needs to be implemented in ProcessHits method.
[in] | aHit | Created hit (energy and position) |
[in] | aTrack | Fast track with access to particle's track and properties in envelope's local coordinates |
[in] | aTouchable | Touchable with relevant transformations |
Definition at line 67 of file G4VFastSimSensitiveDetector.hh.
Referenced by G4FastSimHitMaker::make().