19 #include <G4VTouchable.hh>
25 const G4StepPoint* p = use_post_step_point ? step->GetPostStepPoint() : step->GetPreStepPoint();
31 touchable = step->GetPreStepPoint()->GetTouchable();
45 for (i=0; i < n; ++i) {
46 G4VPhysicalVolume* pv =
touchable->GetVolume(i);
47 path_val.emplace_back(pv);
52 except(
"Geant4TouchableHandler",
"Attempt to access invalid G4 touchable object.");
59 std::string path_name;
61 for (Geant4PlacementPath::const_reverse_iterator pIt =
path.rbegin(); pIt !=
path.rend(); ++pIt) {
62 path_name +=
"/"; path_name += (*pIt)->GetName();
66 for (Geant4PlacementPath::const_iterator pIt =
path.begin(); pIt !=
path.end(); ++pIt) {
67 path_name +=
"/"; path_name += (*pIt)->GetName();