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

Material decorator from Json format. More...

#include <acts/blob/master/Plugins/Json/include/Acts/Plugins/Json/JsonMaterialDecorator.hpp>

+ Inheritance diagram for Acts::JsonMaterialDecorator:
+ Collaboration diagram for Acts::JsonMaterialDecorator:

Public Types

using SurfaceMaterialMap = std::map< GeometryID, std::shared_ptr< const ISurfaceMaterial >>
 
using VolumeMaterialMap = std::map< GeometryID, std::shared_ptr< const IVolumeMaterial >>
 

Public Member Functions

 JsonMaterialDecorator (const JsonGeometryConverter::Config &rConfig, const std::string &jFileName, bool clearSurfaceMaterial=true, bool clearVolumeMaterial=true)
 
void decorate (Surface &surface) const final
 
void decorate (TrackingVolume &volume) const final
 
- Public Member Functions inherited from Acts::IMaterialDecorator
virtual ~IMaterialDecorator ()=default
 Virtual Destructor.
 

Private Attributes

JsonGeometryConverter::Config m_readerConfig
 
SurfaceMaterialMap m_surfaceMaterialMap
 
VolumeMaterialMap m_volumeMaterialMap
 
bool m_clearSurfaceMaterial {true}
 
bool m_clearVolumeMaterial {true}
 

Detailed Description

Material decorator from Json format.

This reads in material maps for surfaces and volumes from a json file

Definition at line 30 of file JsonMaterialDecorator.hpp.

View newest version in sPHENIX GitHub at line 30 of file JsonMaterialDecorator.hpp

Member Typedef Documentation

Definition at line 33 of file JsonMaterialDecorator.hpp.

View newest version in sPHENIX GitHub at line 33 of file JsonMaterialDecorator.hpp

Definition at line 36 of file JsonMaterialDecorator.hpp.

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

Constructor & Destructor Documentation

Acts::JsonMaterialDecorator::JsonMaterialDecorator ( const JsonGeometryConverter::Config rConfig,
const std::string &  jFileName,
bool  clearSurfaceMaterial = true,
bool  clearVolumeMaterial = true 
)
inline

Definition at line 38 of file JsonMaterialDecorator.hpp.

View newest version in sPHENIX GitHub at line 38 of file JsonMaterialDecorator.hpp

References Acts::JsonGeometryConverter::jsonToMaterialMaps(), m_surfaceMaterialMap, m_volumeMaterialMap, and Acts::Logging::VERBOSE.

+ Here is the call graph for this function:

Member Function Documentation

void Acts::JsonMaterialDecorator::decorate ( Surface surface) const
inlinefinalvirtual

Decorate a surface

Parameters
surfacethe non-cost surface that is decorated

Implements Acts::IMaterialDecorator.

Definition at line 62 of file JsonMaterialDecorator.hpp.

View newest version in sPHENIX GitHub at line 62 of file JsonMaterialDecorator.hpp

References m_clearSurfaceMaterial, m_surfaceMaterialMap, and surface().

+ Here is the call graph for this function:

void Acts::JsonMaterialDecorator::decorate ( TrackingVolume volume) const
inlinefinalvirtual

Decorate a TrackingVolume

Parameters
volumethe non-cost volume that is decorated

Implements Acts::IMaterialDecorator.

Definition at line 77 of file JsonMaterialDecorator.hpp.

View newest version in sPHENIX GitHub at line 77 of file JsonMaterialDecorator.hpp

References m_clearVolumeMaterial, m_volumeMaterialMap, and Acts::Test::volume.

Member Data Documentation

bool Acts::JsonMaterialDecorator::m_clearSurfaceMaterial {true}
private

Definition at line 94 of file JsonMaterialDecorator.hpp.

View newest version in sPHENIX GitHub at line 94 of file JsonMaterialDecorator.hpp

Referenced by decorate().

bool Acts::JsonMaterialDecorator::m_clearVolumeMaterial {true}
private

Definition at line 95 of file JsonMaterialDecorator.hpp.

View newest version in sPHENIX GitHub at line 95 of file JsonMaterialDecorator.hpp

Referenced by decorate().

JsonGeometryConverter::Config Acts::JsonMaterialDecorator::m_readerConfig
private

Definition at line 90 of file JsonMaterialDecorator.hpp.

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

SurfaceMaterialMap Acts::JsonMaterialDecorator::m_surfaceMaterialMap
private

Definition at line 91 of file JsonMaterialDecorator.hpp.

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

Referenced by decorate(), and JsonMaterialDecorator().

VolumeMaterialMap Acts::JsonMaterialDecorator::m_volumeMaterialMap
private

Definition at line 92 of file JsonMaterialDecorator.hpp.

View newest version in sPHENIX GitHub at line 92 of file JsonMaterialDecorator.hpp

Referenced by decorate(), and JsonMaterialDecorator().


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