ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Tracking
Acts
ActsMaterial
src
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
8
#include "
AthenaBaseComps/AthAlgTool.h
"
9
#include "
ActsMaterial/IMaterialWriterTool.h
"
10
#include "
ActsGeometryInterfaces/GeometryContext.h
"
11
#include "Acts/Material/TrackingGeometryMaterial.hpp"
12
13
class
TFile;
14
15
16
namespace
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
AthAlgTool.h
GeometryContext.h
IMaterialWriterTool.h
ActsTrk::GeometryContext
Definition
GeometryContext.h:30
ActsTrk::RootMaterialWriterTool::ATLAS_THREAD_SAFE
TFile *m_outputFile ATLAS_THREAD_SAFE
The output file.
Definition
RootMaterialWriterTool.h:34
ActsTrk::RootMaterialWriterTool::initialize
virtual StatusCode initialize() override
Definition
RootMaterialWriterTool.cxx:28
ActsTrk::RootMaterialWriterTool::RootMaterialWriterTool
RootMaterialWriterTool(const std::string &type, const std::string &name, const IInterface *parent)
Definition
RootMaterialWriterTool.cxx:15
ActsTrk::RootMaterialWriterTool::~RootMaterialWriterTool
~RootMaterialWriterTool() override
Definition
RootMaterialWriterTool.cxx:22
ActsTrk::RootMaterialWriterTool::m_fileName
Gaudi::Property< std::string > m_fileName
The name of the output file.
Definition
RootMaterialWriterTool.h:32
ActsTrk::RootMaterialWriterTool::writeMaterial
virtual void writeMaterial(const ActsTrk::GeometryContext &gctx, const Acts::TrackingGeometryMaterial &detMaterial) const override
Definition
RootMaterialWriterTool.cxx:41
ActsTrk
The AlignStoreProviderAlg loads the rigid alignment corrections and pipes them through the readout ge...
Definition
MdtCalibInput.h:31
type
Generated on
for ATLAS Offline Software by
1.17.0