ATLAS Offline Software
Loading...
Searching...
No Matches
RootMaterialWriterTool.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_ROOTMATERIALWRITERTOOL_H
6#define ACTSMATERIAL_ROOTMATERIALWRITERTOOL_H
7
11#include "Acts/Material/TrackingGeometryMaterial.hpp"
12
13class TFile;
14
15
16namespace ActsTrk {
17
21 class RootMaterialWriterTool : public extends<AthAlgTool, IMaterialWriterTool> {
22 public:
23 RootMaterialWriterTool(const std::string& type,
24 const std::string& name,
25 const IInterface* parent);
26 ~RootMaterialWriterTool() override;
27 virtual StatusCode initialize() override;
28 virtual void writeMaterial(const ActsTrk::GeometryContext& gctx,
29 const Acts::TrackingGeometryMaterial& detMaterial) const override;
30 private:
32 Gaudi::Property<std::string> m_fileName{this, "FileName", "material-maps.root", "Output root file for the Material Map"};
34 mutable TFile* m_outputFile ATLAS_THREAD_SAFE {};
35 };
36
37}
38
39#endif
TFile *m_outputFile ATLAS_THREAD_SAFE
The output file.
virtual StatusCode initialize() override
RootMaterialWriterTool(const std::string &type, const std::string &name, const IInterface *parent)
Gaudi::Property< std::string > m_fileName
The name of the output file.
virtual void writeMaterial(const ActsTrk::GeometryContext &gctx, const Acts::TrackingGeometryMaterial &detMaterial) const override
The AlignStoreProviderAlg loads the rigid alignment corrections and pipes them through the readout ge...