ATLAS Offline Software
Loading...
Searching...
No Matches
JsonMaterialWriterTool.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef ACTSMATERIAL_JSONMATERIALWRITERTOOL_H
6#define ACTSMATERIAL_JSONMATERIALWRITERTOOL_H
7
11#include "Acts/Material/TrackingGeometryMaterial.hpp"
12
13namespace ActsTrk {
14
20 class JsonMaterialWriterTool : public extends<AthAlgTool, IMaterialWriterTool> {
21 public:
22 using base_class::base_class;
23 ~JsonMaterialWriterTool() override = default;
24 virtual void writeMaterial(const ActsTrk::GeometryContext& gctx,
25 const Acts::TrackingGeometryMaterial& detMaterial) const override;
26 private:
28 Gaudi::Property<std::string> m_fileName{this, "FileName", "material-maps", "Output file base name for the Json/Cbor Material Map"};
30 Gaudi::Property<bool> m_writeJson{this, "WriteJson", true, "Write the material map in Json format"};
32 Gaudi::Property<bool> m_writeCbor{this, "WriteCbor", false, "Write the material map in Cbor format"};
33 };
34
35}
36
37#endif
Material writer dumping the tracking geometry material map to Json/Cbor.
virtual void writeMaterial(const ActsTrk::GeometryContext &gctx, const Acts::TrackingGeometryMaterial &detMaterial) const override
Gaudi::Property< std::string > m_fileName
The base name of the output file (without extension).
Gaudi::Property< bool > m_writeCbor
Write out the map in Cbor format.
~JsonMaterialWriterTool() override=default
Gaudi::Property< bool > m_writeJson
Write out the map in Json format.
The AlignStoreProviderAlg loads the rigid alignment corrections and pipes them through the readout ge...