Class Acts::Experimental::DetectorBuilder
-
class DetectorBuilder : public Acts::Experimental::IDetectorBuilder
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
-
struct Config
Nested configuration object.
Public Members
-
std::string auxiliary = ""
Auxiliary information.
-
std::shared_ptr<const IDetectorComponentBuilder> builder = nullptr
An external builder.
-
std::shared_ptr<const IGeometryIdGenerator> geoIdGenerator = nullptr
A geometry id generator.
-
std::string name = "unnamed"
The name of the volume to be built.
-
std::string auxiliary = ""
-
DetectorBuilder(const Config &cfg, std::unique_ptr<const Logger> mlogger = getDefaultLogger("DetectorBuilder", Logging::INFO))