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/sPHENIX/Plugins/Json/include/Acts/Plugins/Json/JsonMaterialDecorator.hpp>

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

Public Types

using SurfaceMaterialMap = std::map< GeometryIdentifier, std::shared_ptr< const ISurfaceMaterial >>
 
using VolumeMaterialMap = std::map< GeometryIdentifier, 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, and m_volumeMaterialMap.

+ 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 60 of file JsonMaterialDecorator.hpp.

View newest version in sPHENIX GitHub at line 60 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 75 of file JsonMaterialDecorator.hpp.

View newest version in sPHENIX GitHub at line 75 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 92 of file JsonMaterialDecorator.hpp.

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

Referenced by decorate().

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

Definition at line 93 of file JsonMaterialDecorator.hpp.

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

Referenced by decorate().

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

Definition at line 88 of file JsonMaterialDecorator.hpp.

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

SurfaceMaterialMap Acts::JsonMaterialDecorator::m_surfaceMaterialMap
private

Definition at line 89 of file JsonMaterialDecorator.hpp.

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

Referenced by decorate(), and JsonMaterialDecorator().

VolumeMaterialMap Acts::JsonMaterialDecorator::m_volumeMaterialMap
private

Definition at line 90 of file JsonMaterialDecorator.hpp.

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

Referenced by decorate(), and JsonMaterialDecorator().


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