File DetectorBuilder.hpp

namespace Acts


This file is foreseen for the Geometry module to replace Extent

namespace Experimental
class DetectorBuilder : public Acts::Experimental::IDetectorBuilder
#include <Acts/Detector/DetectorBuilder.hpp>

Standard generic Detector builder that calls the top level component builder and transfers the result into a detector object.


This is the last builder in the chain and the the returned detector object is const and cannot be modified anymore.

Public Functions

DetectorBuilder(const Config &cfg, std::unique_ptr<const Logger> mlogger = getDefaultLogger("DetectorBuilder", Logging::INFO))

Constructor with configuration arguments.

  • cfg – is the configuration struct

  • mlogger – logging instance for screen output

virtual std::shared_ptr<const Detector> construct(const GeometryContext &gctx) const final

Final implementation of a volume builder that is purely defined by an internal and external structure builder.


gctx – The geometry context for this call


an outgoing detector component

Private Functions

inline const Logger &logger() const

Private acces method to the logger.

Private Members

Config m_cfg

configuration object

std::unique_ptr<const Logger> m_logger

logging instance

struct Config
#include <Acts/Detector/DetectorBuilder.hpp>

Nested configuration object.

Public Members

std::string auxilliary = ""

Auxilliary information.

std::shared_ptr<const IDetectorComponentBuilder> builder = nullptr

An external builder.

std::string name = "unnamed"

The name of the volume to be built.