DD4hep  1.30.0
Detector Description Toolkit for High Energy Physics
Public Types | Public Member Functions | Public Attributes | List of all members
dd4hep::sim::Geant4TouchableHandler Class Reference

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...
 

Detailed Description

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!

Author
M.Frank
Version
1.0

Definition at line 44 of file Geant4TouchableHandler.h.

Member Typedef Documentation

◆ Geant4PlacementPath

typedef std::vector<const G4VPhysicalVolume*> dd4hep::sim::Geant4TouchableHandler::Geant4PlacementPath

Definition at line 47 of file Geant4TouchableHandler.h.

Constructor & Destructor Documentation

◆ Geant4TouchableHandler() [1/3]

dd4hep::sim::Geant4TouchableHandler::Geant4TouchableHandler ( const G4VTouchable *  t)
inline

Default constructor.

Definition at line 52 of file Geant4TouchableHandler.h.

◆ Geant4TouchableHandler() [2/3]

Geant4TouchableHandler::Geant4TouchableHandler ( const G4Step *  step)

Default constructor. Takes the step's pre-touchable.

Definition at line 30 of file Geant4TouchableHandler.cpp.

◆ Geant4TouchableHandler() [3/3]

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.

Member Function Documentation

◆ depth()

int Geant4TouchableHandler::depth ( ) const

Touchable history depth.

Definition at line 35 of file Geant4TouchableHandler.cpp.

◆ path()

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.

◆ placementPath()

Geant4TouchableHandler::Geant4PlacementPath Geant4TouchableHandler::placementPath ( bool  exception = false) const

Helper: Generate placement path from touchable object.

Definition at line 40 of file Geant4TouchableHandler.cpp.

Member Data Documentation

◆ touchable

const G4VTouchable* dd4hep::sim::Geant4TouchableHandler::touchable

Data member of the helper objects.

Definition at line 49 of file Geant4TouchableHandler.h.


The documentation for this class was generated from the following files: