Geant4-11
|
Helper class for hit creation. More...
#include <G4FastSimHitMaker.hh>
Public Member Functions | |
G4FastSimHitMaker () | |
void | make (const G4FastHit &aHit, const G4FastTrack &aTrack) |
void | SetNameOfWorldWithSD (const G4String &aName) |
~G4FastSimHitMaker () | |
Private Attributes | |
G4bool | fNaviSetup |
Flag specifying if navigator has been already set up. More... | |
G4Navigator * | fpNavigator |
Navigator. More... | |
G4TouchableHandle | fTouchableHandle |
Touchable. More... | |
G4String | fWorldWithSdName |
Helper class for hit creation.
Helper class that can be employed in the fast simulation models. It allows to deposit energy at given position (G4FastHit), provided it is located within the sensitive detector that derives from G4VFastSimSensitiveDetector base class. An extended example extended/parameterisations/Par03 demonstrates how to use G4FastSimHitMaker to create multiple deposits from the fast simulation model.
Definition at line 47 of file G4FastSimHitMaker.hh.
G4FastSimHitMaker::G4FastSimHitMaker | ( | ) |
Definition at line 35 of file G4FastSimHitMaker.cc.
References fNaviSetup, fpNavigator, fTouchableHandle, and fWorldWithSdName.
G4FastSimHitMaker::~G4FastSimHitMaker | ( | ) |
void G4FastSimHitMaker::make | ( | const G4FastHit & | aHit, |
const G4FastTrack & | aTrack | ||
) |
Deposit energy at given position.
[in] | aHit | Created hit (energy and position) |
[in] | aTrack | Fast track with access to particle's track and properties in envelope's local coordinates |
Definition at line 49 of file G4FastSimHitMaker.cc.
References FatalException, fNaviSetup, fpNavigator, fTouchableHandle, fWorldWithSdName, G4cerr, G4endl, G4Exception(), G4FastHit::GetEnergy(), G4LogicalVolume::GetFastSimulationManager(), G4FastTrack::GetInverseAffineTransformation(), G4VPhysicalVolume::GetLogicalVolume(), G4TransportationManager::GetNavigatorForTracking(), G4TransportationManager::GetParallelWorld(), G4FastHit::GetPosition(), G4Track::GetPosition(), G4FastTrack::GetPrimaryTrack(), G4LogicalVolume::GetSensitiveDetector(), G4TransportationManager::GetTransportationManager(), G4VTouchable::GetVolume(), G4Navigator::GetWorldVolume(), G4VFastSimSensitiveDetector::Hit(), G4Navigator::LocateGlobalPointAndUpdateTouchable(), G4Navigator::SetWorldVolume(), and G4AffineTransform::TransformPoint().
|
inline |
If sensitive detector class is in the parallel world, it must be specified, otherwise no sensitive detector will be found (mass geometry will be checked).
[in] | aName | Name of the parallel world |
Definition at line 62 of file G4FastSimHitMaker.hh.
References fWorldWithSdName.
|
private |
Flag specifying if navigator has been already set up.
Definition at line 73 of file G4FastSimHitMaker.hh.
Referenced by G4FastSimHitMaker(), and make().
|
private |
Navigator.
Definition at line 71 of file G4FastSimHitMaker.hh.
Referenced by G4FastSimHitMaker(), make(), and ~G4FastSimHitMaker().
|
private |
Touchable.
Definition at line 69 of file G4FastSimHitMaker.hh.
Referenced by G4FastSimHitMaker(), and make().
|
private |
Name of the world containing the sensitive detector. If empty, default mass world is used.
Definition at line 76 of file G4FastSimHitMaker.hh.
Referenced by G4FastSimHitMaker(), make(), and SetNameOfWorldWithSD().