ACTS
Experiment-independent tracking
Loading...
Searching...
No Matches
Acts::TrackingGeometryBuilder Class Reference

The Acts::TrackingGeometry Builder for volumes that wrap around another. More...

#include <Acts/Geometry/TrackingGeometryBuilder.hpp>

Inheritance diagram for Acts::TrackingGeometryBuilder:
[legend]
Collaboration diagram for Acts::TrackingGeometryBuilder:
[legend]

Classes

struct  Config
 Nested Configuration for the CylinderVolumeBuilder. More...

Public Member Functions

 TrackingGeometryBuilder (const Config &cgbConfig, std::unique_ptr< const Logger > logger=getDefaultLogger("TrackingGeometryBuilder", Logging::INFO))
 Constructor.
 ~TrackingGeometryBuilder () override=default
 Destructor.
const ConfiggetConfiguration () const
 Get configuration method.
void setConfiguration (const Config &cgbConfig)
 Set configuration method.
void setLogger (std::unique_ptr< const Logger > newLogger)
 set logging instance
std::unique_ptr< const TrackingGeometrytrackingGeometry (const GeometryContext &gctx) const final
 TrackingGeometry Interface method.
Public Member Functions inherited from Acts::ITrackingGeometryBuilder
virtual ~ITrackingGeometryBuilder ()=default
 Virtual destructor.

Detailed Description

The Acts::TrackingGeometry Builder for volumes that wrap around another.

It retrieves an array of std::functions that build the TrackingGeometry sequentially in order, with the following options:

  • contained (e.g. a final insertion of a beam pipe of longer extend)
  • wrapped (e.g. an outer detector wrapping an inner one)
  • attached (e.g. a neighbor detector attaching to the previous one)

The returned volume of each step must be processable by the previous step

Constructor & Destructor Documentation

◆ TrackingGeometryBuilder()

Acts::TrackingGeometryBuilder::TrackingGeometryBuilder ( const Config & cgbConfig,
std::unique_ptr< const Logger > logger = getDefaultLogger("TrackingGeometryBuilder", Logging::INFO) )
explicit

Constructor.

Parameters
[in]cgbConfigis the configuration struct for this builder
[in]loggerlogging instance

◆ ~TrackingGeometryBuilder()

Acts::TrackingGeometryBuilder::~TrackingGeometryBuilder ( )
overridedefault

Destructor.

Member Function Documentation

◆ getConfiguration()

const Config & Acts::TrackingGeometryBuilder::getConfiguration ( ) const

Get configuration method.

Returns
the current configuration

◆ setConfiguration()

void Acts::TrackingGeometryBuilder::setConfiguration ( const Config & cgbConfig)

Set configuration method.

Parameters
cgbConfigis the new configuration struct

◆ setLogger()

void Acts::TrackingGeometryBuilder::setLogger ( std::unique_ptr< const Logger > newLogger)

set logging instance

Parameters
newLoggerthe new logging instance

◆ trackingGeometry()

std::unique_ptr< const TrackingGeometry > Acts::TrackingGeometryBuilder::trackingGeometry ( const GeometryContext & gctx) const
finalvirtual

TrackingGeometry Interface method.

Parameters
gctxgeometry context of that building call
Returns
a unique pointer to a TrackingGeometry

Implements Acts::ITrackingGeometryBuilder.