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 | Macros | Functions
DetectorTools.cpp File Reference
#include "DD4hep/DetectorTools.h"
#include "DD4hep/Printout.h"
#include "DD4hep/LCDD.h"
#include "DD4hep/objects/DetectorInterna.h"
#include <stdexcept>
#include <memory>
#include "TGeoMatrix.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.
 

Macros

#define DETECTORTOOLS_CPP
 

Functions

std::string DD4hep::Geometry::DetectorTools::elementPath (const PlacementPath &nodes, bool reverse)
 Assemble the path of the PlacedVolume selection. More...
 
void DD4hep::Geometry::DetectorTools::elementPath (DetElement parent, DetElement elt, ElementPath &detectors)
 Collect detector elements to any parent detector element. More...
 
void DD4hep::Geometry::DetectorTools::elementPath (DetElement elt, PlacementPath &nodes)
 Collect detector elements placements to the top detector element (world) [fast, but may have holes!]. More...
 
void DD4hep::Geometry::DetectorTools::elementPath (DetElement parent, DetElement element, PlacementPath &nodes)
 Collect detector elements placements to the parent detector element [no holes!]. More...
 
bool DD4hep::Geometry::DetectorTools::findChild (PlacedVolume parent, PlacedVolume child, PlacementPath &path)
 Find Child of PlacedVolume and assemble on the fly the path of PlacedVolumes. More...
 
static void DD4hep::Geometry::DetectorTools::makePlacementPath (PlacementPath det_nodes, PlacementPath &all_nodes)
 
static bool findChildByName (PlacedVolume parent, PlacedVolume child, DetectorTools::PlacementPath &path)
 Find Child of PlacedVolume and assemble on the fly the path of PlacedVolumes. More...
 

Macro Definition Documentation

#define DETECTORTOOLS_CPP

Definition at line 15 of file DetectorTools.cpp.

Function Documentation

static bool findChildByName ( PlacedVolume  parent,
PlacedVolume  child,
DetectorTools::PlacementPath path 
)
static

Find Child of PlacedVolume and assemble on the fly the path of PlacedVolumes.

Definition at line 105 of file DetectorTools.cpp.

References DD4hep::Handle< T >::isValid(), and DD4hep::Handle< T >::ptr().

Referenced by DD4hep::Geometry::DetectorTools::makePlacementPath().