![]() |
DD4hep
1.31.0
Detector Description Toolkit for High Energy Physics
|
Helper namespace used to answer detector element specific questons. More...
Typedefs | |
typedef std::vector< DetElement > | ElementPath |
typedef std::vector< PlacedVolume > | PlacementPath |
Functions | |
void | copy (Alignment from, Alignment to) |
Copy alignment object from source object. More... | |
void | computeIdeal (Alignment alignment) |
Compute the ideal/nominal to-world transformation from the detector element placement. More... | |
void | computeSurvey (Alignment alignment) |
Compute the ideal/nominal to-world transformation from the detector element placement. More... | |
DetElement | topElement (DetElement child) |
Determine top level element (=world) for any element walking up the detector element tree. More... | |
std::string | elementPath (DetElement element) |
Assemble the path of a particular detector element. More... | |
std::string | elementPath (const ElementPath &nodes, bool reverse=true) |
Assemble the path of the PlacedVolume selection. More... | |
void | elementPath (DetElement elt, ElementPath &detectors) |
Collect detector elements to the top detector element (world) More... | |
DetElement | findElement (const Detector &description, const std::string &path) |
Find DetElement as child of the top level volume by its absolute path. More... | |
DetElement | findDaughterElement (DetElement parent, const std::string &subpath) |
Find DetElement as child of a parent by its relative or absolute path. More... | |
bool | isParentElement (DetElement parent, DetElement child) |
Find path between the child element and the parent element. More... | |
std::string | placementPath (DetElement element) |
Assemble the placement path from a given detector element to the world volume. More... | |
std::string | placementPath (const PlacementPath &nodes, bool reverse=true) |
Assemble the path of the PlacedVolume selection. More... | |
std::string | placementPath (const std::vector< const TGeoNode * > &nodes, bool reverse=true) |
Assemble the path of the PlacedVolume selection. More... | |
void | placementPath (DetElement elt, PlacementPath &nodes) |
Collect detector elements placements to the top detector element (world) [no holes!]. More... | |
void | placementPath (DetElement parent, DetElement child, PlacementPath &nodes) |
Collect detector elements placements to the parent detector element [no holes!]. More... | |
PlacedVolume | findNode (PlacedVolume top_place, const std::string &place) |
Find a given node in the hierarchy starting from the top node (absolute placement!) More... | |
void | placementTrafo (const PlacementPath &nodes, bool inverse, TGeoHMatrix *&mat) |
Update cached matrix to transform to positions to an upper level Placement. More... | |
void | placementTrafo (const PlacementPath &nodes, bool inverse, TGeoHMatrix &mat) |
Update cached matrix to transform to positions to an upper level Placement. More... | |
std::string | toString (const PlacedVolume::VolIDs &ids) |
Convert VolumeID to string. More... | |
std::string | toString (const IDDescriptor &dsc, const PlacedVolume::VolIDs &ids, VolumeID code) |
Convert VolumeID to string. More... | |
std::vector< std::string > | pathElements (const std::string &path) |
Extract all the path elements from a path. More... | |
std::string | elementPath (const PlacementPath &nodes, bool reverse) |
Assemble the path of the PlacedVolume selection. More... | |
void | elementPath (DetElement parent, DetElement elt, ElementPath &detectors) |
Collect detector elements to any parent detector element. More... | |
void | elementPath (DetElement elt, PlacementPath &nodes) |
Collect detector elements placements to the top detector element (world) [fast, but may have holes!]. More... | |
void | elementPath (DetElement parent, DetElement element, PlacementPath &nodes) |
Collect detector elements placements to the parent detector element [no holes!]. More... | |
bool | findChild (PlacedVolume parent, PlacedVolume child, PlacementPath &path) |
Find Child of PlacedVolume and assemble on the fly the path of PlacedVolumes. More... | |
Helper namespace used to answer detector element specific questons.
typedef std::vector<DetElement> dd4hep::detail::tools::ElementPath |
Definition at line 38 of file DetectorTools.h.
typedef std::vector<PlacedVolume> dd4hep::detail::tools::PlacementPath |
Definition at line 39 of file DetectorTools.h.
void dd4hep::detail::tools::computeIdeal | ( | Alignment | alignment | ) |
Compute the ideal/nominal to-world transformation from the detector element placement.
Note: Detector information of the alignment data is filled by the caller!
Definition at line 60 of file AlignmentTools.cpp.
void dd4hep::detail::tools::computeSurvey | ( | Alignment | alignment | ) |
Compute the ideal/nominal to-world transformation from the detector element placement.
Compute the survey to-world transformation from the detector element placement with respect to the survey constants.
Note: Detector information of the alignment data is filled by the caller! Compute the survey to-world transformation. Compute the survey to-world transformation from the detector element placement with respect to the survey constants
Note: Detector information of the alignment data is filled by the caller!
Definition at line 117 of file AlignmentTools.cpp.
Copy alignment object from source object.
Definition at line 43 of file AlignmentTools.cpp.
std::string dd4hep::detail::tools::elementPath | ( | const ElementPath & | nodes, |
bool | reverse = true |
||
) |
Assemble the path of the PlacedVolume selection.
Definition at line 194 of file DetectorTools.cpp.
std::string dd4hep::detail::tools::elementPath | ( | const PlacementPath & | nodes, |
bool | reverse | ||
) |
Assemble the path of the PlacedVolume selection.
Definition at line 180 of file DetectorTools.cpp.
std::string dd4hep::detail::tools::elementPath | ( | DetElement | element | ) |
Assemble the path of a particular detector element.
Definition at line 208 of file DetectorTools.cpp.
void dd4hep::detail::tools::elementPath | ( | DetElement | elt, |
ElementPath & | detectors | ||
) |
Collect detector elements to the top detector element (world)
Definition at line 131 of file DetectorTools.cpp.
void dd4hep::detail::tools::elementPath | ( | DetElement | elt, |
PlacementPath & | nodes | ||
) |
Collect detector elements placements to the top detector element (world) [fast, but may have holes!].
Definition at line 170 of file DetectorTools.cpp.
void dd4hep::detail::tools::elementPath | ( | DetElement | parent, |
DetElement | element, | ||
PlacementPath & | nodes | ||
) |
Collect detector elements placements to the parent detector element [no holes!].
Collect detector elements placements to the top detector element (world) [fast, but may have holes!].
Definition at line 158 of file DetectorTools.cpp.
void dd4hep::detail::tools::elementPath | ( | DetElement | parent, |
DetElement | elt, | ||
ElementPath & | detectors | ||
) |
Collect detector elements to any parent detector element.
Definition at line 137 of file DetectorTools.cpp.
bool dd4hep::detail::tools::findChild | ( | PlacedVolume | parent, |
PlacedVolume | child, | ||
PlacementPath & | path | ||
) |
Find Child of PlacedVolume and assemble on the fly the path of PlacedVolumes.
Definition at line 69 of file DetectorTools.cpp.
DetElement dd4hep::detail::tools::findDaughterElement | ( | DetElement | parent, |
const std::string & | subpath | ||
) |
Find DetElement as child of a parent by its relative or absolute path.
Definition at line 220 of file DetectorTools.cpp.
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.
Definition at line 215 of file DetectorTools.cpp.
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!)
Definition at line 329 of file DetectorTools.cpp.
bool dd4hep::detail::tools::isParentElement | ( | DetElement | parent, |
DetElement | child | ||
) |
Find path between the child element and the parent element.
Definition at line 58 of file DetectorTools.cpp.
std::vector< std::string > dd4hep::detail::tools::pathElements | ( | const std::string & | path | ) |
Extract all the path elements from a path.
Definition at line 398 of file DetectorTools.cpp.
std::string dd4hep::detail::tools::placementPath | ( | const PlacementPath & | nodes, |
bool | reverse = true |
||
) |
Assemble the path of the PlacedVolume selection.
Definition at line 284 of file DetectorTools.cpp.
std::string dd4hep::detail::tools::placementPath | ( | const std::vector< const TGeoNode * > & | nodes, |
bool | reverse = true |
||
) |
Assemble the path of the PlacedVolume selection.
Definition at line 298 of file DetectorTools.cpp.
std::string dd4hep::detail::tools::placementPath | ( | DetElement | element | ) |
Assemble the placement path from a given detector element to the world volume.
Assemble the path of the PlacedVolume selection.
Definition at line 277 of file DetectorTools.cpp.
void dd4hep::detail::tools::placementPath | ( | DetElement | elt, |
PlacementPath & | nodes | ||
) |
Collect detector elements placements to the top detector element (world) [no holes!].
Definition at line 263 of file DetectorTools.cpp.
void dd4hep::detail::tools::placementPath | ( | DetElement | parent, |
DetElement | child, | ||
PlacementPath & | nodes | ||
) |
Collect detector elements placements to the parent detector element [no holes!].
Definition at line 270 of file DetectorTools.cpp.
void dd4hep::detail::tools::placementTrafo | ( | const PlacementPath & | nodes, |
bool | inverse, | ||
TGeoHMatrix & | mat | ||
) |
Update cached matrix to transform to positions to an upper level Placement.
Definition at line 317 of file DetectorTools.cpp.
void dd4hep::detail::tools::placementTrafo | ( | const PlacementPath & | nodes, |
bool | inverse, | ||
TGeoHMatrix *& | mat | ||
) |
Update cached matrix to transform to positions to an upper level Placement.
Definition at line 311 of file DetectorTools.cpp.
DetElement dd4hep::detail::tools::topElement | ( | DetElement | child | ) |
Determine top level element (=world) for any element walking up the detector element tree.
Definition at line 241 of file DetectorTools.cpp.
std::string dd4hep::detail::tools::toString | ( | const IDDescriptor & | dsc, |
const PlacedVolume::VolIDs & | ids, | ||
VolumeID | code | ||
) |
Convert VolumeID to string.
Definition at line 387 of file DetectorTools.cpp.
std::string dd4hep::detail::tools::toString | ( | const PlacedVolume::VolIDs & | ids | ) |
Convert VolumeID to string.
Definition at line 379 of file DetectorTools.cpp.