70{
71
72 if (!fNaviSetup)
73 {
74
76 if(fWorldWithSdName.empty()) {
78 } else {
80 }
82 fpNavigator->
83 LocateGlobalPointAndUpdateTouchable(aSpot->
GetPosition(),
84 fTouchableHandle(), false);
85 fNaviSetup = true;
86 }
87 else
88 {
89 fpNavigator->
90 LocateGlobalPointAndUpdateTouchable(aSpot->
GetPosition(),
91 fTouchableHandle());
92 }
93
94
95
96
97
98
99
102 if( pCurrentVolume != 0 )
103 {
107 if( gflashSensitive )
108 {
109
111 gflashSensitive->
Hit(&theSpot);
112 }
113 else if( pSensitive )
114 {
125 pSensitive->
Hit(fpSpotS);
126 }
127 }
128 else
129 {
130 #ifdef GFLASH_DEBUG
132 #endif
133 }
134}
G4GLOB_DLL std::ostream G4cout
const G4Track * GetPrimaryTrack() const
G4VSensitiveDetector * GetSensitiveDetector() const
void SetWorldVolume(G4VPhysicalVolume *pWorld)
G4VPhysicalVolume * GetWorldVolume() const
void SetLocalTime(const G4double aValue)
void SetWeight(G4double aValue)
void SetStepStatus(const G4StepStatus aValue)
void SetProcessDefinedStep(const G4VProcess *aValue)
void SetTouchableHandle(const G4TouchableHandle &apValue)
void SetProperTime(const G4double aValue)
void SetGlobalTime(const G4double aValue)
void SetPosition(const G4ThreeVector &aValue)
void SetTotalEnergyDeposit(G4double value)
void SetTrack(G4Track *value)
G4double GetWeight() const
G4double GetGlobalTime() const
G4double GetProperTime() const
G4double GetLocalTime() const
G4VPhysicalVolume * GetParallelWorld(const G4String &worldName)
static G4TransportationManager * GetTransportationManager()
G4Navigator * GetNavigatorForTracking() const
G4bool Hit(G4GFlashSpot *aSpot)
G4LogicalVolume * GetLogicalVolume() const
G4bool Hit(G4Step *aStep)
virtual G4VPhysicalVolume * GetVolume(G4int depth=0) const
G4ThreeVector GetPosition() const
G4double GetEnergy() const