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

This class allows to generate layer structure builders for dd4hep sub detectors It performs an intermediate step by taking dd4hep::DetElemnent objects that describe a detector structure and prepares the translation of the detector element and eventual passive surfaces. More...

#include <acts/blob/sPHENIX/Plugins/DD4hep/include/Acts/Plugins/DD4hep/DD4hepLayerStructure.hpp>

+ Collaboration diagram for Acts::Experimental::DD4hepLayerStructure:

Classes

struct  Options
 Nested options struct. More...
 

Public Member Functions

 DD4hepLayerStructure (std::shared_ptr< DD4hepDetectorSurfaceFactory > surfaceFactory, std::unique_ptr< const Logger > logger=getDefaultLogger("DD4hepLayerStructure", Acts::Logging::INFO))
 
 DD4hepLayerStructure ()=delete
 
std::shared_ptr
< LayerStructureBuilder
builder (DD4hepDetectorElement::Store &dd4hepStore, const dd4hep::DetElement &dd4hepElement, const Options &options) const
 This method generates a LayerStructure builder, which extends the IInternalStructureBuilder and can be used in the conjunction with a IExternalStructureBuilder to create DetectorVolume objects.
 

Private Member Functions

const Loggerlogger () const
 Private access to the logger.
 

Private Attributes

std::shared_ptr
< DD4hepDetectorSurfaceFactory
m_surfaceFactory = nullptr
 The workorse: the surface factory.
 
std::unique_ptr< const Loggerm_logger
 Logging instance.
 

Detailed Description

This class allows to generate layer structure builders for dd4hep sub detectors It performs an intermediate step by taking dd4hep::DetElemnent objects that describe a detector structure and prepares the translation of the detector element and eventual passive surfaces.

It would also build passive support structures if configured to do so.

Definition at line 36 of file DD4hepLayerStructure.hpp.

View newest version in sPHENIX GitHub at line 36 of file DD4hepLayerStructure.hpp

Constructor & Destructor Documentation

Acts::Experimental::DD4hepLayerStructure::DD4hepLayerStructure ( std::shared_ptr< DD4hepDetectorSurfaceFactory surfaceFactory,
std::unique_ptr< const Logger logger = getDefaultLogger("DD4hepLayerStructure", Acts::Logging::INFO) 
)

Constructor with DD4hepDetectorSurfaceFactory

Parameters
surfaceFactorythe surfac factory which converts dd4hep::DetElement objects into their Acts coutnerparts
loggeris the screen output logger
Note
this needs to be provided

Definition at line 11 of file DD4hepLayerStructure.cpp.

View newest version in sPHENIX GitHub at line 11 of file DD4hepLayerStructure.cpp

References m_surfaceFactory.

Acts::Experimental::DD4hepLayerStructure::DD4hepLayerStructure ( )
delete

Member Function Documentation

std::shared_ptr< Acts::Experimental::LayerStructureBuilder > Acts::Experimental::DD4hepLayerStructure::builder ( DD4hepDetectorElement::Store dd4hepStore,
const dd4hep::DetElement &  dd4hepElement,
const Options options 
) const

This method generates a LayerStructure builder, which extends the IInternalStructureBuilder and can be used in the conjunction with a IExternalStructureBuilder to create DetectorVolume objects.

It takes the detector element from DD4hep and some optional parameters

Parameters
dd4hepStore[in, out] the detector store for the built elements
dd4hepElementthe dd4hep detector element
optionscontaining the optional descriptions
Returns
a LayerStructureBuilder

Definition at line 22 of file DD4hepLayerStructure.cpp.

View newest version in sPHENIX GitHub at line 22 of file DD4hepLayerStructure.cpp

References ACTS_DEBUG, Acts::ACTS_VERBOSE(), Acts::Experimental::ProtoSupport::assignToAll, Acts::Experimental::LayerStructureBuilder::Config::auxiliary, Acts::DD4hepDetectorSurfaceFactory::Cache::binnings, Acts::Experimental::LayerStructureBuilder::Config::binnings, Acts::Experimental::DD4hepLayerStructure::Options::conversionOptions, Acts::getDefaultLogger(), Acts::Experimental::DD4hepLayerStructure::Options::logLevel, Acts::Experimental::DD4hepLayerStructure::Options::name, Acts::DD4hepDetectorSurfaceFactory::Cache::passiveSurfaces, Acts::UnitConstants::ps, Acts::DD4hepDetectorSurfaceFactory::Cache::sensitiveSurfaces, Acts::DD4hepDetectorSurfaceFactory::Cache::supports, Acts::Experimental::LayerStructureBuilder::Config::supports, Acts::Experimental::ProtoSupport::surface, Acts::Experimental::LayerStructureBuilder::Config::surfacesProvider, and physmon_ckf_tracking::u.

+ Here is the call graph for this function:

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

Private access to the logger.

Definition at line 91 of file DD4hepLayerStructure.hpp.

View newest version in sPHENIX GitHub at line 91 of file DD4hepLayerStructure.hpp

References m_logger.

Member Data Documentation

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

Logging instance.

Definition at line 88 of file DD4hepLayerStructure.hpp.

View newest version in sPHENIX GitHub at line 88 of file DD4hepLayerStructure.hpp

Referenced by logger().

std::shared_ptr<DD4hepDetectorSurfaceFactory> Acts::Experimental::DD4hepLayerStructure::m_surfaceFactory = nullptr
private

The workorse: the surface factory.

Definition at line 85 of file DD4hepLayerStructure.hpp.

View newest version in sPHENIX GitHub at line 85 of file DD4hepLayerStructure.hpp

Referenced by DD4hepLayerStructure().


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