ATLAS Offline Software
Tracking
TrkDetDescr
TrkDetDescrTools
src
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
10
#include "
TrkDetDescrTools/LayerMaterialConverter.h
"
11
12
// constructor
13
Trk::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
23
Trk::LayerMaterialConverter::~LayerMaterialConverter
()
24
=
default
;
25
26
27
// the AthAlgTool interface methods
28
StatusCode
Trk::LayerMaterialConverter::initialize
()
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
40
const
Trk::LayerMaterialProperties
*
Trk::LayerMaterialConverter::processLayerMaterial
(
const
LayerIndex
&,
const
LayerMaterialProperties
& lmp)
const
41
{
42
return
m_layerMaterialCreator->convertLayerMaterial(lmp);
43
}
ATH_MSG_FATAL
#define ATH_MSG_FATAL(x)
Definition:
AthMsgStreamMacros.h:34
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:40
AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
Definition:
AthCommonDataStore.h:145
Trk::LayerMaterialConverter::~LayerMaterialConverter
virtual ~LayerMaterialConverter()
Destructor.
read_hist_ntuple.t
t
Definition:
read_hist_ntuple.py:5
python.utils.AtlRunQueryDQUtils.p
p
Definition:
AtlRunQueryDQUtils.py:210
Trk::LayerMaterialConverter::m_layerMaterialCreator
ToolHandle< ILayerMaterialCreator > m_layerMaterialCreator
Definition:
LayerMaterialConverter.h:46
Trk::LayerIndex
Definition:
LayerIndex.h:37
beamspotman.n
n
Definition:
beamspotman.py:731
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition:
PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
Trk::LayerMaterialProperties
Definition:
LayerMaterialProperties.h:62
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:28
AthAlgTool
Definition:
AthAlgTool.h:26
LayerMaterialConverter.h
Generated on Thu Nov 7 2024 21:20:08 for ATLAS Offline Software by
1.8.18