ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Tracking
Acts
ActsMaterial
src
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
8
#include "
AthenaBaseComps/AthAlgTool.h
"
9
#include "
ActsMaterial/IMaterialWriterTool.h
"
10
#include "
ActsGeometryInterfaces/GeometryContext.h
"
11
#include "Acts/Material/TrackingGeometryMaterial.hpp"
12
13
namespace
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
AthAlgTool.h
GeometryContext.h
IMaterialWriterTool.h
ActsTrk::GeometryContext
Definition
GeometryContext.h:30
ActsTrk::JsonMaterialWriterTool
Material writer dumping the tracking geometry material map to Json/Cbor.
Definition
JsonMaterialWriterTool.h:20
ActsTrk::JsonMaterialWriterTool::writeMaterial
virtual void writeMaterial(const ActsTrk::GeometryContext &gctx, const Acts::TrackingGeometryMaterial &detMaterial) const override
Definition
JsonMaterialWriterTool.cxx:16
ActsTrk::JsonMaterialWriterTool::m_fileName
Gaudi::Property< std::string > m_fileName
The base name of the output file (without extension).
Definition
JsonMaterialWriterTool.h:28
ActsTrk::JsonMaterialWriterTool::m_writeCbor
Gaudi::Property< bool > m_writeCbor
Write out the map in Cbor format.
Definition
JsonMaterialWriterTool.h:32
ActsTrk::JsonMaterialWriterTool::~JsonMaterialWriterTool
~JsonMaterialWriterTool() override=default
ActsTrk::JsonMaterialWriterTool::m_writeJson
Gaudi::Property< bool > m_writeJson
Write out the map in Json format.
Definition
JsonMaterialWriterTool.h:30
ActsTrk
The AlignStoreProviderAlg loads the rigid alignment corrections and pipes them through the readout ge...
Definition
MdtCalibInput.h:31
Generated on
for ATLAS Offline Software by
1.17.0