ATLAS Offline Software
Loading...
Searching...
No Matches
LayerMaterialConverter.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3*/
4
6// LayerMaterialConverter.cxx, (c) ATLAS Detector software
8
9// Trk include
11
12// constructor
13Trk::LayerMaterialConverter::LayerMaterialConverter(const std::string& t, const std::string& n, const IInterface* p)
14: AthAlgTool(t,n,p)
15{
16 declareInterface<Trk::ILayerMaterialManipulator>(this);
17
18 // Name specification from outside
19 declareProperty("LayerMaterialCreator", m_layerMaterialCreator);
20}
21
22// destructor
24= default;
25
26
27// the AthAlgTool interface methods
29{
30 if (m_layerMaterialCreator.retrieve().isFailure()){
31 ATH_MSG_FATAL("Could not retrieve material creator - the converter is useless. Abort.");
32 return StatusCode::FAILURE;
33 }
34 return StatusCode::SUCCESS;
35}
36
37
38
#define ATH_MSG_FATAL(x)
AthAlgTool(const std::string &type, const std::string &name, const IInterface *parent)
Constructor with parameters:
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
LayerIndex for the identification of layers in a simplified detector geometry of Cylinders and Discs.
Definition LayerIndex.h:37
const LayerMaterialProperties * processLayerMaterial(const LayerIndex &layIndex, const LayerMaterialProperties &lmp) const
process the layer material - after material creation and before loading
ToolHandle< ILayerMaterialCreator > m_layerMaterialCreator
LayerMaterialConverter(const std::string &, const std::string &, const IInterface *)
Constructor.
virtual ~LayerMaterialConverter()
Destructor.
StatusCode initialize()
AlgTool initialize method.
This virtual base class encapsulates the logics to build pre/post/full update material for Layer stru...