|
ACTS
Experiment-independent tracking
|
Backend adapter that maps a DD4hep detector hierarchy onto the ACTS experimental blueprint-builder interface. More...
#include <ActsPlugins/DD4hep/BlueprintBuilder.hpp>
Classes | |
| struct | Config |
| Configuration of the DD4hep backend instance. More... | |
| struct | LayerSpec |
| Layer-specific configuration forwarded from the generic builder to the DD4hep backend. More... | |
Public Types | |
| using | AxisDefinition = TGeoAxes |
| Axis-definition type forwarded to ROOT-based surface conversion helpers. | |
| using | DetectorElement = DD4hepDetectorElement |
| Concrete ACTS detector-element implementation used for DD4hep geometry. | |
| using | DetectorElementFactory |
| Factory that creates detector elements for converted DD4hep sensitives. | |
| using | DetectorElementPtr = std::shared_ptr<DetectorElement> |
| Shared pointer to a DD4hep-backed ACTS detector element. | |
| using | Element = dd4hep::DetElement |
| DD4hep detector-element handle type consumed by the generic builder. | |
Public Member Functions | |
| DD4hepBackend (const Config &cfg, const Acts::Logger &logger) | |
| Construct the DD4hep backend. | |
| std::vector< Element > | children (const Element &parent) const |
| Return the direct DD4hep child elements of a parent element. | |
| template<typename... Args> | |
| int | constant (std::format_string< Args... > fmt, Args &&... args) const |
| Retrieves a named integer constant from the DD4hep detector description. | |
| DetectorElementPtr | createDetectorElement (const Element &detElement, AxisDefinition axes) const |
| Create an ACTS detector element from a DD4hep sensitive element. | |
| bool | isBarrel (const Element &element) const |
| Check whether a DD4hep element represents a barrel sub-detector. | |
| bool | isEndcap (const Element &element) const |
| Check whether a DD4hep element represents an endcap sub-detector. | |
| bool | isSensitive (const Element &element) const |
| Check whether a DD4hep element represents a sensitive detector element. | |
| bool | isTracker (const Element &element) const |
| Check whether a DD4hep element is part of the tracking detector. | |
| const Acts::Logger & | logger () const |
| Return the logger associated with this backend. | |
| std::optional< Acts::Transform3 > | lookupLayerTransform (const Element &element, const LayerSpec &layerSpec) const |
| Derive the layer transform from a DD4hep detector element when possible. | |
| std::shared_ptr< Acts::Experimental::StaticBlueprintNode > | makeBeampipe () const |
| Create a static beampipe blueprint node from the DD4hep world geometry. | |
| std::vector< std::shared_ptr< Acts::Surface > > | makeSurfaces (std::span< const Element > sensitives, const LayerSpec &layerSpec) const |
| Convert a set of DD4hep sensitive elements into ACTS surfaces. | |
| std::string | nameOf (const Element &element) const |
| Return the fully qualified DD4hep name of an element. | |
| Element | parent (const Element &element) const |
| Return the direct parent DD4hep element of a child element. | |
| Element | world () const |
| Return the DD4hep world detector element. | |
Static Public Member Functions | |
| static DetectorElementPtr | defaultElementFactory (const Element &detElement, AxisDefinition axes, double lengthScale) |
| Default detector-element factory used when Config::elementFactory is not overridden. | |
Static Public Attributes | |
| static constexpr std::string_view | kIdentifier = "DD4hepBackend" |
| Identifier string used in diagnostics emitted by the generic blueprint builder. | |
Backend adapter that maps a DD4hep detector hierarchy onto the ACTS experimental blueprint-builder interface.
The backend exposes DD4hep detector elements as blueprint input elements and provides the conversions needed to create ACTS surfaces, detector elements, and optional layer transforms.
Factory that creates detector elements for converted DD4hep sensitives.
|
explicit |
Construct the DD4hep backend.
| cfg | Backend configuration and DD4hep detector handle. |
| logger | Logger used for diagnostics. |
Return the direct DD4hep child elements of a parent element.
| parent | Parent DD4hep detector element. |
parent. | int ActsPlugins::DD4hep::DD4hepBackend::constant | ( | std::format_string< Args... > | fmt, |
| Args &&... | args ) const |
Retrieves a named integer constant from the DD4hep detector description.
The name is constructed by formatting fmt with args.
| Args | Types used to format the constant name. |
| fmt | Format string used to construct the DD4hep constant name. |
| args | Format arguments substituted into fmt. |
| DetectorElementPtr ActsPlugins::DD4hep::DD4hepBackend::createDetectorElement | ( | const Element & | detElement, |
| AxisDefinition | axes ) const |
Create an ACTS detector element from a DD4hep sensitive element.
| detElement | DD4hep sensitive element to convert. |
| axes | Axis convention used for the converted surface. |
|
static |
Default detector-element factory used when Config::elementFactory is not overridden.
| detElement | DD4hep sensitive detector element to wrap. |
| axes | Axis convention used for surface conversion. |
| lengthScale | Unit scale applied during geometry conversion. |
| bool ActsPlugins::DD4hep::DD4hepBackend::isBarrel | ( | const Element & | element | ) | const |
Check whether a DD4hep element represents a barrel sub-detector.
| element | DD4hep detector element to classify. |
| bool ActsPlugins::DD4hep::DD4hepBackend::isEndcap | ( | const Element & | element | ) | const |
Check whether a DD4hep element represents an endcap sub-detector.
| element | DD4hep detector element to classify. |
| bool ActsPlugins::DD4hep::DD4hepBackend::isSensitive | ( | const Element & | element | ) | const |
Check whether a DD4hep element represents a sensitive detector element.
| element | DD4hep detector element to classify. |
| bool ActsPlugins::DD4hep::DD4hepBackend::isTracker | ( | const Element & | element | ) | const |
Check whether a DD4hep element is part of the tracking detector.
| element | DD4hep detector element to classify. |
| const Acts::Logger & ActsPlugins::DD4hep::DD4hepBackend::logger | ( | ) | const |
Return the logger associated with this backend.
| std::optional< Acts::Transform3 > ActsPlugins::DD4hep::DD4hepBackend::lookupLayerTransform | ( | const Element & | element, |
| const LayerSpec & | layerSpec ) const |
Derive the layer transform from a DD4hep detector element when possible.
| element | DD4hep element providing the geometric context. |
| layerSpec | Layer configuration controlling the transform lookup. |
| std::shared_ptr< Acts::Experimental::StaticBlueprintNode > ActsPlugins::DD4hep::DD4hepBackend::makeBeampipe | ( | ) | const |
Create a static beampipe blueprint node from the DD4hep world geometry.
| std::vector< std::shared_ptr< Acts::Surface > > ActsPlugins::DD4hep::DD4hepBackend::makeSurfaces | ( | std::span< const Element > | sensitives, |
| const LayerSpec & | layerSpec ) const |
Convert a set of DD4hep sensitive elements into ACTS surfaces.
| sensitives | Sensitive DD4hep elements belonging to one layer. |
| layerSpec | Layer configuration controlling axes and naming. |
| std::string ActsPlugins::DD4hep::DD4hepBackend::nameOf | ( | const Element & | element | ) | const |
Return the fully qualified DD4hep name of an element.
| element | DD4hep detector element to inspect. |
Return the direct parent DD4hep element of a child element.
| element | Child DD4hep detector element. |
| Element ActsPlugins::DD4hep::DD4hepBackend::world | ( | ) | const |
Return the DD4hep world detector element.