DD4hep
1.30.0
Detector Description Toolkit for High Energy Physics
|
Helper class to ease the extraction of information from a G4Touchable object. More...
#include <Geant4TouchableHandler.h>
Public Types | |
typedef std::vector< const G4VPhysicalVolume * > | Geant4PlacementPath |
Public Member Functions | |
Geant4TouchableHandler (const G4VTouchable *t) | |
Default constructor. More... | |
Geant4TouchableHandler (const G4Step *step) | |
Default constructor. Takes the step's pre-touchable. More... | |
Geant4TouchableHandler (const G4Step *step, bool use_post_step_point) | |
Default constructor. Takes the step's pre-touchable. More... | |
Geant4PlacementPath | placementPath (bool exception=false) const |
Helper: Generate placement path from touchable object. More... | |
std::string | path () const |
Helper: Access the placement path of a Geant4 touchable object as a string. More... | |
int | depth () const |
Touchable history depth. More... | |
Public Attributes | |
const G4VTouchable * | touchable |
Data member of the helper objects. More... | |
Helper class to ease the extraction of information from a G4Touchable object.
Tiny helper/utility class to easily access Geant4 touchable information. Born by lazyness: Avoid typing millions of statements!
Definition at line 44 of file Geant4TouchableHandler.h.
typedef std::vector<const G4VPhysicalVolume*> dd4hep::sim::Geant4TouchableHandler::Geant4PlacementPath |
Definition at line 47 of file Geant4TouchableHandler.h.
|
inline |
Default constructor.
Definition at line 52 of file Geant4TouchableHandler.h.
Geant4TouchableHandler::Geant4TouchableHandler | ( | const G4Step * | step | ) |
Default constructor. Takes the step's pre-touchable.
Definition at line 30 of file Geant4TouchableHandler.cpp.
Geant4TouchableHandler::Geant4TouchableHandler | ( | const G4Step * | step, |
bool | use_post_step_point | ||
) |
Default constructor. Takes the step's pre-touchable.
Definition at line 24 of file Geant4TouchableHandler.cpp.
int Geant4TouchableHandler::depth | ( | ) | const |
Touchable history depth.
Definition at line 35 of file Geant4TouchableHandler.cpp.
std::string Geant4TouchableHandler::path | ( | ) | const |
Helper: Access the placement path of a Geant4 touchable object as a string.
Definition at line 58 of file Geant4TouchableHandler.cpp.
Geant4TouchableHandler::Geant4PlacementPath Geant4TouchableHandler::placementPath | ( | bool | exception = false | ) | const |
Helper: Generate placement path from touchable object.
Definition at line 40 of file Geant4TouchableHandler.cpp.
const G4VTouchable* dd4hep::sim::Geant4TouchableHandler::touchable |
Data member of the helper objects.
Definition at line 49 of file Geant4TouchableHandler.h.