![]() |
ATLAS Offline Software
|
Material writer dumping the tracking geometry material map to Json/Cbor. More...
#include <JsonMaterialWriterTool.h>
Public Member Functions | |
| ~JsonMaterialWriterTool () override=default | |
| virtual void | writeMaterial (const ActsTrk::GeometryContext &gctx, const Acts::TrackingGeometryMaterial &detMaterial) const override |
Private Attributes | |
| Gaudi::Property< std::string > | m_fileName {this, "FileName", "material-maps", "Output file base name for the Json/Cbor Material Map"} |
| The base name of the output file (without extension). | |
| Gaudi::Property< bool > | m_writeJson {this, "WriteJson", true, "Write the material map in Json format"} |
| Write out the map in Json format. | |
| Gaudi::Property< bool > | m_writeCbor {this, "WriteCbor", false, "Write the material map in Cbor format"} |
| Write out the map in Cbor format. | |
Material writer dumping the tracking geometry material map to Json/Cbor.
This uses the ACTS Json plugin (Acts::MaterialMapJsonConverter) to serialise the surface and volume material maps into a Json (and/or Cbor) file. The resulting file can be read back in e.g. by Acts::JsonMaterialDecorator.
Definition at line 20 of file JsonMaterialWriterTool.h.
|
overridedefault |
|
overridevirtual |
Definition at line 16 of file JsonMaterialWriterTool.cxx.
|
private |
The base name of the output file (without extension).
Definition at line 28 of file JsonMaterialWriterTool.h.
|
private |
Write out the map in Cbor format.
Definition at line 32 of file JsonMaterialWriterTool.h.
|
private |
Write out the map in Json format.
Definition at line 30 of file JsonMaterialWriterTool.h.