EIC 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/Plugins/Json/JsonMaterialWriter.hpp>

+ Collaboration diagram for ActsExamples::JsonMaterialWriter:

Public Member Functions

 JsonMaterialWriter (const Acts::JsonGeometryConverter::Config &cfg, const std::string &fileName)
 
 ~JsonMaterialWriter ()
 Virtual destructor.
 
void write (const Acts::DetectorMaterialMaps &detMaterial)
 
void write (const Acts::TrackingGeometry &tGeometry)
 

Private Member Functions

const Acts::Loggerlogger () const
 Private access to the logging instance.
 

Private Attributes

Acts::JsonGeometryConverter::Config m_cfg
 The config class of the converter.
 
std::string m_fileName
 The file name.
 

Detailed Description

Definition at line 44 of file JsonMaterialWriter.hpp.

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

Constructor & Destructor Documentation

ActsExamples::JsonMaterialWriter::JsonMaterialWriter ( const Acts::JsonGeometryConverter::Config cfg,
const std::string &  fileName 
)

Constructor

Parameters
cfgThe configuration struct of the converter

Definition at line 19 of file JsonMaterialWriter.cpp.

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

References m_cfg, and Acts::JsonGeometryConverter::Config::name.

ActsExamples::JsonMaterialWriter::~JsonMaterialWriter ( )

Virtual destructor.

Definition at line 28 of file JsonMaterialWriter.cpp.

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

Member Function Documentation

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

Private access to the logging instance.

Definition at line 73 of file JsonMaterialWriter.hpp.

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

References Acts::JsonGeometryConverter::Config::logger, and m_cfg.

void ActsExamples::JsonMaterialWriter::write ( const Acts::DetectorMaterialMaps detMaterial)

Write out the material map

Parameters
detMaterialis the SurfaceMaterial and VolumeMaterial maps

Definition at line 30 of file JsonMaterialWriter.cpp.

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

References Acts::JsonGeometryConverter::materialMapsToJson().

+ Here is the call graph for this function:

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

Write out the material map from Geometry

Parameters
tGeometryis the TrackingGeometry

Definition at line 40 of file JsonMaterialWriter.cpp.

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

References Acts::JsonGeometryConverter::trackingGeometryToJson().

+ Here is the call graph for this function:

Member Data Documentation

Acts::JsonGeometryConverter::Config ActsExamples::JsonMaterialWriter::m_cfg
private

The config class of the converter.

Definition at line 67 of file JsonMaterialWriter.hpp.

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

Referenced by JsonMaterialWriter(), and logger().

std::string ActsExamples::JsonMaterialWriter::m_fileName
private

The file name.

Definition at line 70 of file JsonMaterialWriter.hpp.

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


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