88 G4ThreeVector direction(0.0,0.0,1.0);
91 G4TransportationManager::GetTransportationManager()->
92 GetNavigatorForTracking();
93 if ( theNavigator->GetWorldVolume() )
96 aNavigator->SetWorldVolume(theNavigator->GetWorldVolume());
98 G4ThreeVector center(0.,0.,0.);
99 aNavigator->LocateGlobalPointAndSetup(center,
nullptr,
false);
101 G4TouchableHandle touchable = aNavigator->CreateTouchableHistoryHandle();
106 direction =
fGlobal2local.Inverse().TransformAxis(direction);
133 phi0 = twopi*G4UniformRand();
134 x0 = r0*std::cos(phi0);
135 y0 = r0*std::sin(phi0);
138 G4ThreeVector localPosition(x0,y0,z0);
139 G4ThreeVector globalPosition =