DD4hep  1.30.0
Detector Description Toolkit for High Energy Physics
Namespaces | Typedefs | Functions
DetectorTools.h File Reference
#include <DD4hep/DetElement.h>

Go to the source code of this file.

Namespaces

 dd4hep
 Namespace for the AIDA detector description toolkit.
 
 dd4hep::detail
 DD4hep internal namespace.
 
 dd4hep::detail::tools
 Helper namespace used to answer detector element specific questons.
 

Typedefs

typedef std::vector< DetElement > dd4hep::detail::tools::ElementPath
 
typedef std::vector< PlacedVolume > dd4hep::detail::tools::PlacementPath
 

Functions

DetElement dd4hep::detail::tools::topElement (DetElement child)
 Determine top level element (=world) for any element walking up the detector element tree. More...
 
std::string dd4hep::detail::tools::elementPath (DetElement element)
 Assemble the path of a particular detector element. More...
 
std::string dd4hep::detail::tools::elementPath (const ElementPath &nodes, bool reverse=true)
 Assemble the path of the PlacedVolume selection. More...
 
void dd4hep::detail::tools::elementPath (DetElement elt, ElementPath &detectors)
 Collect detector elements to the top detector element (world) More...
 
DetElement dd4hep::detail::tools::findElement (const Detector &description, const std::string &path)
 Find DetElement as child of the top level volume by its absolute path. More...
 
DetElement dd4hep::detail::tools::findDaughterElement (DetElement parent, const std::string &subpath)
 Find DetElement as child of a parent by its relative or absolute path. More...
 
bool dd4hep::detail::tools::isParentElement (DetElement parent, DetElement child)
 Find path between the child element and the parent element. More...
 
std::string dd4hep::detail::tools::placementPath (DetElement element)
 Assemble the placement path from a given detector element to the world volume. More...
 
std::string dd4hep::detail::tools::placementPath (const PlacementPath &nodes, bool reverse=true)
 Assemble the path of the PlacedVolume selection. More...
 
std::string dd4hep::detail::tools::placementPath (const std::vector< const TGeoNode * > &nodes, bool reverse=true)
 Assemble the path of the PlacedVolume selection. More...
 
void dd4hep::detail::tools::placementPath (DetElement elt, PlacementPath &nodes)
 Collect detector elements placements to the top detector element (world) [no holes!]. More...
 
void dd4hep::detail::tools::placementPath (DetElement parent, DetElement child, PlacementPath &nodes)
 Collect detector elements placements to the parent detector element [no holes!]. More...
 
PlacedVolume dd4hep::detail::tools::findNode (PlacedVolume top_place, const std::string &place)
 Find a given node in the hierarchy starting from the top node (absolute placement!) More...
 
void dd4hep::detail::tools::placementTrafo (const PlacementPath &nodes, bool inverse, TGeoHMatrix *&mat)
 Update cached matrix to transform to positions to an upper level Placement. More...
 
void dd4hep::detail::tools::placementTrafo (const PlacementPath &nodes, bool inverse, TGeoHMatrix &mat)
 Update cached matrix to transform to positions to an upper level Placement. More...
 
std::string dd4hep::detail::tools::toString (const PlacedVolume::VolIDs &ids)
 Convert VolumeID to string. More...
 
std::string dd4hep::detail::tools::toString (const IDDescriptor &dsc, const PlacedVolume::VolIDs &ids, VolumeID code)
 Convert VolumeID to string. More...
 
std::vector< std::string > dd4hep::detail::tools::pathElements (const std::string &path)
 Extract all the path elements from a path. More...