File DD4hepVolumeBuilder.hpp


using MutableTrackingVolumePtr = std::shared_ptr<TrackingVolume>
using MutableTrackingVolumeVector = std::vector<MutableTrackingVolumePtr>
namespace Acts

Set the Geometry Context PLUGIN.

Set the Calibration Context PLUGIN.

Convenience functions to ease creation of and Acts::InterpolatedMaterialMap and to avoid code duplication.

Set the Mangetic Field Context PLUGIN.

Convenience functions to ease creation of and Acts::InterpolatedBFieldMap and to avoid code duplication.

Currently implemented for the two most common formats: rz and xyz.

class DD4hepVolumeBuilder : public Acts::IConfinedTrackingVolumeBuilder
#include <Acts/Plugins/DD4hep/DD4hepVolumeBuilder.hpp>

build confined TrackingVolumes of one cylinder setup from DD4hep input.

This class is an implementation of the Acts::IConfinedTrackingVolumeBuilder, creating the central (volumes of barrel), the negative and positive volumes (volumes of endcaps) of one hierarchy (e.g. ECal, HCal…) with input from DD4hep.

Public Functions

DD4hepVolumeBuilder(const Acts::DD4hepVolumeBuilder::Config &config, std::unique_ptr<const Logger> logger)


  • config[in] is the configuration struct

  • logger[in] is the logging instance

~DD4hepVolumeBuilder() override


virtual MutableTrackingVolumeVector centralVolumes() const final

Builder method for cylindrical, confined volume.


The vector of TrackingVolumes at the central sector

inline Config getConfiguration() const

Get the configuration object.


The used configuration struct

inline virtual const std::string &identification() const final

Name identification.


The string based identification of this configuration

void setConfiguration(const Config &config)

Set the configuration object.


config[in] is the configuration struct

void setLogger(std::unique_ptr<const Logger> logger)

Set logging instance.


logger[in] Logger in use

Private Functions

Acts::Transform3 convertTransform(const TGeoMatrix *tGeoTrans) const

Converter of the transformation of a volume from DD4hep to Acts formalism.


tGeoTrans[in] Transformation of the DD4hep DetElement


Pointer to the corresponding Acts transformation

inline const Logger &logger() const

Private access to the logger.


Used logger

Private Members

Config m_cfg

Configruation object.

std::unique_ptr<const Logger> m_logger

Logging instance.

struct Config
#include <Acts/Plugins/DD4hep/DD4hepVolumeBuilder.hpp>

Nested configuration struct for steering of the volume builder.

Public Members

std::vector<dd4hep::DetElement> centralVolumes

Vector of central confined volumes.

std::string configurationName = "undefined"

string based identification

namespace dd4hep