ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Tracking
TrkDetDescr
TrkDetDescrTools
src
LayerMaterialConverter.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3
*/
4
6
// LayerMaterialConverter.cxx, (c) ATLAS Detector software
8
9
// Trk include
10
#include "
TrkDetDescrTools/LayerMaterialConverter.h
"
11
12
// constructor
13
Trk::LayerMaterialConverter::LayerMaterialConverter
(
const
std::string& t,
const
std::string& n,
const
IInterface* p) :
AthAlgTool
(t,n,p)
14
{
15
declareInterface<Trk::ILayerMaterialManipulator>(
this
);
16
}
17
18
19
// the AthAlgTool interface methods
20
StatusCode
Trk::LayerMaterialConverter::initialize
()
21
{
22
if
(
m_layerMaterialCreator
.retrieve().isFailure()){
23
ATH_MSG_FATAL
(
"Could not retrieve material creator - the converter is useless. Abort."
);
24
return
StatusCode::FAILURE;
25
}
26
return
StatusCode::SUCCESS;
27
}
28
29
30
32
const
Trk::LayerMaterialProperties
*
Trk::LayerMaterialConverter::processLayerMaterial
(
const
LayerIndex
&,
const
LayerMaterialProperties
& lmp)
const
33
{
34
return
m_layerMaterialCreator
->convertLayerMaterial(lmp);
35
}
ATH_MSG_FATAL
#define ATH_MSG_FATAL(x)
Definition
AthMsgStreamMacros.h:34
LayerMaterialConverter.h
AthAlgTool::AthAlgTool
AthAlgTool(const std::string &type, const std::string &name, const IInterface *parent)
Constructor with parameters:
Definition
AthAlgTool.cxx:16
Trk::LayerIndex
LayerIndex for the identification of layers in a simplified detector geometry of Cylinders and Discs.
Definition
LayerIndex.h:37
Trk::LayerMaterialConverter::processLayerMaterial
const LayerMaterialProperties * processLayerMaterial(const LayerIndex &layIndex, const LayerMaterialProperties &lmp) const
process the layer material - after material creation and before loading
Definition
LayerMaterialConverter.cxx:32
Trk::LayerMaterialConverter::m_layerMaterialCreator
ToolHandle< ILayerMaterialCreator > m_layerMaterialCreator
Definition
LayerMaterialConverter.h:44
Trk::LayerMaterialConverter::LayerMaterialConverter
LayerMaterialConverter(const std::string &, const std::string &, const IInterface *)
Constructor.
Definition
LayerMaterialConverter.cxx:13
Trk::LayerMaterialConverter::initialize
StatusCode initialize()
AlgTool initialize method.
Definition
LayerMaterialConverter.cxx:20
Trk::LayerMaterialProperties
This virtual base class encapsulates the logics to build pre/post/full update material for Layer stru...
Definition
LayerMaterialProperties.h:64
Generated on
for ATLAS Offline Software by
1.17.0