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

#include <acts/blob/sPHENIX/Examples/Io/Json/include/ActsExamples/Io/Json/JsonMaterialWriter.hpp>

+ Inheritance diagram for ActsExamples::JsonMaterialWriter:
+ Collaboration diagram for ActsExamples::JsonMaterialWriter:

Classes

struct  Config
 

Public Member Functions

 JsonMaterialWriter (const Config &config, Acts::Logging::Level level)
 
 ~JsonMaterialWriter () override
 Virtual destructor.
 
void writeMaterial (const Acts::DetectorMaterialMaps &detMaterial) override
 
void write (const Acts::TrackingGeometry &tGeometry)
 
const Configconfig () const
 Readonly access to the config.
 
- Public Member Functions inherited from ActsExamples::IMaterialWriter
virtual ~IMaterialWriter ()=default
 Virtual Destructor.
 

Private Member Functions

const Acts::Loggerlogger () const
 

Private Attributes

std::unique_ptr< const
Acts::Logger
m_logger {nullptr}
 The logger instance.
 
Config m_cfg
 The config of the writer.
 
std::unique_ptr
< Acts::MaterialMapJsonConverter
m_converter {nullptr}
 The material converter.
 

Detailed Description

Definition at line 59 of file JsonMaterialWriter.hpp.

View newest version in sPHENIX GitHub at line 59 of file JsonMaterialWriter.hpp

Constructor & Destructor Documentation

ActsExamples::JsonMaterialWriter::JsonMaterialWriter ( const Config config,
Acts::Logging::Level  level 
)

Constructor

Parameters
configThe configuration struct of the writer
levelThe log level

Definition at line 20 of file JsonMaterialWriter.cpp.

View newest version in sPHENIX GitHub at line 20 of file JsonMaterialWriter.cpp

References Acts::getDefaultLogger().

+ Here is the call graph for this function:

ActsExamples::JsonMaterialWriter::~JsonMaterialWriter ( )
override

Virtual destructor.

Member Function Documentation

const Config& ActsExamples::JsonMaterialWriter::config ( ) const
inline

Readonly access to the config.

Definition at line 90 of file JsonMaterialWriter.hpp.

View newest version in sPHENIX GitHub at line 90 of file JsonMaterialWriter.hpp

References m_cfg().

+ Here is the call graph for this function:

const Acts::Logger& ActsExamples::JsonMaterialWriter::logger ( ) const
inlineprivate

Definition at line 93 of file JsonMaterialWriter.hpp.

View newest version in sPHENIX GitHub at line 93 of file JsonMaterialWriter.hpp

References m_logger.

void ActsExamples::JsonMaterialWriter::write ( const Acts::TrackingGeometry tGeometry)

Write out the material map from Geometry

Parameters
tGeometryis the TrackingGeometry

Definition at line 50 of file JsonMaterialWriter.cpp.

View newest version in sPHENIX GitHub at line 50 of file JsonMaterialWriter.cpp

References ACTS_CHECK_BIT, m_cfg(), m_converter, and out.

Referenced by processGeometry().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void ActsExamples::JsonMaterialWriter::writeMaterial ( const Acts::DetectorMaterialMaps detMaterial)
overridevirtual

Write out the material map

Parameters
detMaterialis the SurfaceMaterial and VolumeMaterial maps

Implements ActsExamples::IMaterialWriter.

Definition at line 30 of file JsonMaterialWriter.cpp.

View newest version in sPHENIX GitHub at line 30 of file JsonMaterialWriter.cpp

References ACTS_CHECK_BIT, ACTS_VERBOSE, m_cfg(), m_converter, and out.

+ Here is the call graph for this function:

Member Data Documentation

Config ActsExamples::JsonMaterialWriter::m_cfg
private

The config of the writer.

Definition at line 99 of file JsonMaterialWriter.hpp.

View newest version in sPHENIX GitHub at line 99 of file JsonMaterialWriter.hpp

std::unique_ptr<Acts::MaterialMapJsonConverter> ActsExamples::JsonMaterialWriter::m_converter {nullptr}
private

The material converter.

Definition at line 102 of file JsonMaterialWriter.hpp.

View newest version in sPHENIX GitHub at line 102 of file JsonMaterialWriter.hpp

std::unique_ptr<const Acts::Logger> ActsExamples::JsonMaterialWriter::m_logger {nullptr}
private

The logger instance.

Definition at line 96 of file JsonMaterialWriter.hpp.

View newest version in sPHENIX GitHub at line 96 of file JsonMaterialWriter.hpp


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