File DetectorBuilder.hpp

namespace Acts

Note

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.

Note

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.

Parameters
  • 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.

Parameters

gctx – The geometry context for this call

Returns

an outgoing detector component

Private Functions

inline const Logger &logger() const

Private access 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 auxiliary = ""

Auxiliary information.

std::shared_ptr<const IDetectorComponentBuilder> builder = nullptr

An external builder.

std::string name = "unnamed"

The name of the volume to be built.