ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
FW::Json::JsonMaterialWriter Class Reference

#include <acts/blob/master/Examples/Io/Json/include/ACTFW/Plugins/Json/JsonMaterialWriter.hpp>

+ Collaboration diagram for FW::Json::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 46 of file JsonMaterialWriter.hpp.

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

Constructor & Destructor Documentation

FW::Json::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.

FW::Json::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& FW::Json::JsonMaterialWriter::logger ( ) const
inlineprivate

Private access to the logging instance.

Definition at line 75 of file JsonMaterialWriter.hpp.

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

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

void FW::Json::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 FW::Json::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 FW::Json::JsonMaterialWriter::m_cfg
private

The config class of the converter.

Definition at line 69 of file JsonMaterialWriter.hpp.

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

Referenced by JsonMaterialWriter(), and logger().

std::string FW::Json::JsonMaterialWriter::m_fileName
private

The file name.

Definition at line 72 of file JsonMaterialWriter.hpp.

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


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