DD4hep - The AIDA detector description toolkit for high energy physics experiments
DD4hep  Rev:Unversioneddirectory
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Namespaces | Typedefs | Functions
DetectorTools.h File Reference
#include "DD4hep/Detector.h"

Go to the source code of this file.

Namespaces

 DD4hep
 Namespace for the AIDA detector description toolkit.
 
 DD4hep::Geometry
 Namespace for the geometry part of the AIDA detector description toolkit.
 
 DD4hep::Geometry::DetectorTools
 Helper namespace used to answer detector element specific questons.
 

Typedefs

typedef std::vector< DetElement > DD4hep::Geometry::DetectorTools::ElementPath
 
typedef std::vector< PlacedVolume > DD4hep::Geometry::DetectorTools::PlacementPath
 

Functions

DetElement DD4hep::Geometry::DetectorTools::topElement (DetElement child)
 Determine top level element (=world) for any element walking up the detector element tree. More...
 
std::string DD4hep::Geometry::DetectorTools::elementPath (DetElement element)
 Assemble the path of a particular detector element. More...
 
std::string DD4hep::Geometry::DetectorTools::elementPath (const ElementPath &nodes, bool reverse=true)
 Assemble the path of the PlacedVolume selection. More...
 
void DD4hep::Geometry::DetectorTools::elementPath (DetElement elt, ElementPath &detectors)
 Collect detector elements to the top detector element (world) More...
 
DetElement DD4hep::Geometry::DetectorTools::findElement (LCDD &lcdd, const std::string &path)
 Find DetElement as child of the top level volume by it's absolute path. More...
 
DetElement DD4hep::Geometry::DetectorTools::findDaughterElement (DetElement parent, const std::string &subpath)
 Find DetElement as child of a parent by it's relative or absolute path. More...
 
bool DD4hep::Geometry::DetectorTools::isParentElement (DetElement parent, DetElement child)
 Find path between the child element and the parent element. More...
 
std::string DD4hep::Geometry::DetectorTools::placementPath (DetElement element)
 Assemble the placement path from a given detector element to the world volume. More...
 
std::string DD4hep::Geometry::DetectorTools::placementPath (const PlacementPath &nodes, bool reverse=true)
 Assemble the path of the PlacedVolume selection. More...
 
std::string DD4hep::Geometry::DetectorTools::placementPath (const std::vector< const TGeoNode * > &nodes, bool reverse=true)
 Assemble the path of the PlacedVolume selection. More...
 
void DD4hep::Geometry::DetectorTools::placementPath (DetElement elt, PlacementPath &nodes)
 Collect detector elements placements to the top detector element (world) [no holes!]. More...
 
void DD4hep::Geometry::DetectorTools::placementPath (DetElement parent, DetElement child, PlacementPath &nodes)
 Collect detector elements placements to the parent detector element [no holes!]. More...
 
PlacedVolume DD4hep::Geometry::DetectorTools::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::Geometry::DetectorTools::placementTrafo (const PlacementPath &nodes, bool inverse, TGeoHMatrix *&mat)
 Update cached matrix to transform to positions to an upper level Placement. More...
 
void DD4hep::Geometry::DetectorTools::placementTrafo (const PlacementPath &nodes, bool inverse, TGeoHMatrix &mat)
 Update cached matrix to transform to positions to an upper level Placement. More...
 
std::string DD4hep::Geometry::DetectorTools::toString (const PlacedVolume::VolIDs &ids)
 Convert VolumeID to string. More...
 
std::string DD4hep::Geometry::DetectorTools::toString (const IDDescriptor &dsc, const PlacedVolume::VolIDs &ids, VolumeID code)
 Convert VolumeID to string. More...