Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Acts::Experimental::DetectorVolumeBuilder Class Reference

A generic detector volume builder that uses an external builder for shape and portals and an internal structure builder for volume internals. More...

#include <acts/blob/sPHENIX/Core/include/Acts/Detector/DetectorVolumeBuilder.hpp>

+ Inheritance diagram for Acts::Experimental::DetectorVolumeBuilder:
+ Collaboration diagram for Acts::Experimental::DetectorVolumeBuilder:

Classes

struct  Config
 Nested configuration object. More...
 

Public Member Functions

 DetectorVolumeBuilder (const Config &cfg, std::unique_ptr< const Logger > mlogger=getDefaultLogger("DetectorVolumeBuilder", Logging::INFO))
 
DetectorComponent construct (const GeometryContext &gctx) const final
 
- Public Member Functions inherited from Acts::Experimental::IDetectorComponentBuilder
virtual ~IDetectorComponentBuilder ()=default
 

Private Member Functions

const Loggerlogger () const
 Private access method to the logger.
 

Private Attributes

Config m_cfg
 configuration object
 
std::unique_ptr< const Loggerm_logger
 logging instance
 

Detailed Description

A generic detector volume builder that uses an external builder for shape and portals and an internal structure builder for volume internals.

Note
Although this helper builds only a single volume, it is to the outside presented as a DetectorComponent with shell; like this it can be transparently be used for the downstream detector construction process.

Definition at line 33 of file DetectorVolumeBuilder.hpp.

View newest version in sPHENIX GitHub at line 33 of file DetectorVolumeBuilder.hpp

Constructor & Destructor Documentation

Acts::Experimental::DetectorVolumeBuilder::DetectorVolumeBuilder ( const Config cfg,
std::unique_ptr< const Logger mlogger = getDefaultLogger("DetectorVolumeBuilder",                                             Logging::INFO) 
)

Constructor with configuration arguments

Parameters
cfgis the configuration struct
mloggerlogging instance for screen output

Definition at line 26 of file DetectorVolumeBuilder.cpp.

View newest version in sPHENIX GitHub at line 26 of file DetectorVolumeBuilder.cpp

References Acts::Experimental::DetectorVolumeBuilder::Config::externalsBuilder, and m_cfg.

Member Function Documentation

Acts::Experimental::DetectorComponent Acts::Experimental::DetectorVolumeBuilder::construct ( const GeometryContext gctx) const
finalvirtual

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

Parameters
gctxThe geometry context for this call
Returns
an outgoing detector component

Implements Acts::Experimental::IDetectorComponentBuilder.

Definition at line 37 of file DetectorVolumeBuilder.cpp.

View newest version in sPHENIX GitHub at line 37 of file DetectorVolumeBuilder.cpp

References ACTS_DEBUG, Acts::ACTS_VERBOSE(), bounds, Acts::Experimental::DetectorVolumeFactory::construct(), Acts::enumerate(), m_cfg(), testing::internal::move(), merge_hashes::p, portalGenerator, Acts::Test::transform, Acts::Experimental::tryAllPortals(), Acts::Experimental::tryRootVolumes(), testSigmaEff::v, and volumes.

+ Here is the call graph for this function:

const Logger& Acts::Experimental::DetectorVolumeBuilder::logger ( ) const
inlineprivate

Private access method to the logger.

Definition at line 73 of file DetectorVolumeBuilder.hpp.

View newest version in sPHENIX GitHub at line 73 of file DetectorVolumeBuilder.hpp

References m_logger.

Member Data Documentation

Config Acts::Experimental::DetectorVolumeBuilder::m_cfg
private

configuration object

Definition at line 70 of file DetectorVolumeBuilder.hpp.

View newest version in sPHENIX GitHub at line 70 of file DetectorVolumeBuilder.hpp

Referenced by DetectorVolumeBuilder().

std::unique_ptr<const Logger> Acts::Experimental::DetectorVolumeBuilder::m_logger
private

logging instance

Definition at line 76 of file DetectorVolumeBuilder.hpp.

View newest version in sPHENIX GitHub at line 76 of file DetectorVolumeBuilder.hpp

Referenced by logger().


The documentation for this class was generated from the following files: