Analysis Software
Documentation for sPHENIX simulation software
|
#include <acts/blob/sPHENIX/Plugins/DD4hep/include/Acts/Plugins/DD4hep/DD4hepDetectorSurfaceFactory.hpp>
Classes | |
struct | Cache |
Nested cache that records the conversion status. More... | |
struct | Options |
Nested options struct to steer the conversion. More... | |
Public Types | |
using | DD4hepSensitiveSurface = std::tuple< std::shared_ptr< DD4hepDetectorElement >, std::shared_ptr< Surface >> |
Collect the sensitive surface & detector element. | |
using | DD4hepPassiveSurface = std::tuple< std::shared_ptr< Surface >, bool > |
Public Member Functions | |
DD4hepDetectorSurfaceFactory (std::unique_ptr< const Logger > mlogger=getDefaultLogger("DD4hepDetectorSurfaceFactory", Acts::Logging::INFO)) | |
void | construct (Cache &cache, const dd4hep::DetElement &dd4hepElement, const Options &options) |
Private Member Functions | |
const Logger & | logger () const |
Private access to the logger. | |
void | recursiveConstruct (Cache &cache, const dd4hep::DetElement &dd4hepElement, const Options &options, int level) |
DD4hepSensitiveSurface | constructSensitiveComponents (const dd4hep::DetElement &dd4hepElement, const Options &options) const |
DD4hepPassiveSurface | constructPassiveComponents (const dd4hep::DetElement &dd4hepElement, const Options &options) const |
void | attachSurfaceMaterial (const dd4hep::DetElement &dd4hepElement, Acts::Surface &surface, ActsScalar thickness, const Options &options) const |
Private Attributes | |
std::unique_ptr< const Logger > | m_logger |
Logging instance. | |
Static Private Attributes | |
static constexpr ActsScalar | unitLength |
auto-calculate the unit length conversion | |
A factory to convert DD4hep DetectorElements into sensitive of passive surfaces which are filled into a Cache object, also the create DD4hepDetector elements are provided
Definition at line 39 of file DD4hepDetectorSurfaceFactory.hpp.
View newest version in sPHENIX GitHub at line 39 of file DD4hepDetectorSurfaceFactory.hpp
using Acts::DD4hepDetectorSurfaceFactory::DD4hepPassiveSurface = std::tuple<std::shared_ptr<Surface>, bool> |
Collect the passive surfaces, bool whether it should be added as an "always try, i.e. assignToAll=true" surface
Definition at line 48 of file DD4hepDetectorSurfaceFactory.hpp.
View newest version in sPHENIX GitHub at line 48 of file DD4hepDetectorSurfaceFactory.hpp
using Acts::DD4hepDetectorSurfaceFactory::DD4hepSensitiveSurface = std::tuple<std::shared_ptr<DD4hepDetectorElement>, std::shared_ptr<Surface>> |
Collect the sensitive surface & detector element.
Definition at line 44 of file DD4hepDetectorSurfaceFactory.hpp.
View newest version in sPHENIX GitHub at line 44 of file DD4hepDetectorSurfaceFactory.hpp
Acts::DD4hepDetectorSurfaceFactory::DD4hepDetectorSurfaceFactory | ( | std::unique_ptr< const Logger > | mlogger = getDefaultLogger( "DD4hepDetectorSurfaceFactory", Acts::Logging::INFO) | ) |
The DD4hep detector element factory
mlogger | a screen output logger |
Definition at line 24 of file DD4hepDetectorSurfaceFactory.cpp.
View newest version in sPHENIX GitHub at line 24 of file DD4hepDetectorSurfaceFactory.cpp
References ACTS_DEBUG, and unitLength.
|
private |
Attach surface material if present
dd4hepElement | the detector element |
surface | the surface to attach the material to |
thickness | the thickness of the condensed component |
options | to steer the conversion |
Definition at line 124 of file DD4hepDetectorSurfaceFactory.cpp.
View newest version in sPHENIX GitHub at line 124 of file DD4hepDetectorSurfaceFactory.cpp
References Acts::Surface::assignSurfaceMaterial(), Acts::DD4hepDetectorSurfaceFactory::Options::convertMaterial, Acts::TGeoMaterialConverter::materialSlab(), testing::internal::move(), Acts::DD4hepDetectorSurfaceFactory::Options::surfaceMaterialThickness, and Acts::TGeoMaterialConverter::Options::unitLengthScalor.
void Acts::DD4hepDetectorSurfaceFactory::construct | ( | Cache & | cache, |
const dd4hep::DetElement & | dd4hepElement, | ||
const Options & | options | ||
) |
Construction method of the detector elements
cache | [in,out] into which the Elements are filled |
dd4hepElement | the detector element representing the super structure |
options | to steer the conversion |
Definition at line 30 of file DD4hepDetectorSurfaceFactory.cpp.
View newest version in sPHENIX GitHub at line 30 of file DD4hepDetectorSurfaceFactory.cpp
References ACTS_DEBUG, Acts::DD4hepDetectorSurfaceFactory::Options::convertPassive, Acts::DD4hepDetectorSurfaceFactory::Options::convertSensitive, Acts::DD4hepDetectorSurfaceFactory::Cache::passiveSurfaces, and Acts::DD4hepDetectorSurfaceFactory::Cache::sensitiveSurfaces.
|
private |
Method to convert a single sensitive detector element
dd4hepElement | the detector element |
options | to steer the conversion |
Definition at line 106 of file DD4hepDetectorSurfaceFactory.cpp.
View newest version in sPHENIX GitHub at line 106 of file DD4hepDetectorSurfaceFactory.cpp
References ckf::options, pSurface, thickness, and Acts::TGeoSurfaceConverter::toSurface().
|
private |
Method to convert a single sensitive detector element
dd4hepElement | the detector element |
options | to steer the conversion |
Definition at line 88 of file DD4hepDetectorSurfaceFactory.cpp.
View newest version in sPHENIX GitHub at line 88 of file DD4hepDetectorSurfaceFactory.cpp
References ckf::options.
|
inlineprivate |
Private access to the logger.
Definition at line 106 of file DD4hepDetectorSurfaceFactory.hpp.
View newest version in sPHENIX GitHub at line 106 of file DD4hepDetectorSurfaceFactory.hpp
References m_logger.
|
private |
Construction method of the detector elements - recursive walk down
cache | [in,out] into which the Elements are filled |
dd4hepElement | the detector element representing the super structure |
options | to steer the conversion |
level | the current level of the tree, used for log message output |
Definition at line 48 of file DD4hepDetectorSurfaceFactory.cpp.
View newest version in sPHENIX GitHub at line 48 of file DD4hepDetectorSurfaceFactory.cpp
References Acts::ACTS_VERBOSE(), Acts::DD4hepDetectorSurfaceFactory::Cache::binnings, gtest_filter_unittest::child, Acts::convertBinning(), Acts::DD4hepDetectorSurfaceFactory::Options::convertPassive, Acts::DD4hepDetectorSurfaceFactory::Options::convertSensitive, Acts::DD4hepDetectorSurfaceFactory::Cache::passiveSurfaces, pSurface, and Acts::DD4hepDetectorSurfaceFactory::Cache::sensitiveSurfaces.
|
private |
Logging instance.
Definition at line 103 of file DD4hepDetectorSurfaceFactory.hpp.
View newest version in sPHENIX GitHub at line 103 of file DD4hepDetectorSurfaceFactory.hpp
|
staticprivate |
auto-calculate the unit length conversion
Definition at line 99 of file DD4hepDetectorSurfaceFactory.hpp.
View newest version in sPHENIX GitHub at line 99 of file DD4hepDetectorSurfaceFactory.hpp
Referenced by DD4hepDetectorSurfaceFactory().