|
DD4hep
1.30.0
Detector Description Toolkit for High Energy Physics
|
Go to the documentation of this file.
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.");
static std::string placementPath(const Geant4PlacementPath &path, bool reverse=true)
Assemble Geant4 volume path.
Geant4PlacementPath placementPath(bool exception=false) const
Helper: Generate placement path from touchable object.
void exception(const std::string &src, const std::string &msg)
std::vector< const G4VPhysicalVolume * > Geant4PlacementPath
int depth() const
Touchable history depth.
const G4VTouchable * touchable
Data member of the helper objects.
Geant4TouchableHandler(const G4VTouchable *t)
Default constructor.
Namespace for the Geant4 based simulation part of the AIDA detector description toolkit.
std::string path() const
Helper: Access the placement path of a Geant4 touchable object as a string.