ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Tracking
TrkDetDescr
TrkDetDescrTools
src
LayerProvider.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
// Trk include
6
#include "
TrkDetDescrTools/LayerProvider.h
"
7
#include "
TrkGeometry/Layer.h
"
8
#include "
TrkGeometry/CylinderLayer.h
"
9
#include "
TrkGeometry/DiscLayer.h
"
10
11
12
// initialize
13
StatusCode
Trk::LayerProvider::initialize
()
14
{
15
if
(
m_layerBuilder
.retrieve().isFailure()){
16
ATH_MSG_WARNING
(
"Could not retrieve layer builder"
);
17
}
18
return
StatusCode::SUCCESS;
19
}
20
22
const
std::vector<Trk::Layer*>
Trk::LayerProvider::centralLayers
()
const
23
{
24
// retrieving the cylinder layers from the layer builder
25
std::unique_ptr<const std::vector<Trk::CylinderLayer*> >
26
cylinderLayers =
m_layerBuilder
->cylindricalLayers();
27
return
cylindricalLayersToCentralLayers(std::move(cylinderLayers));
28
}
29
31
std::pair<const std::vector<Trk::Layer*>,
const
std::vector<Trk::Layer*> >
32
Trk::LayerProvider::endcapLayer
()
const
33
{
34
// retrieving the cylinder layers from the layer builder
35
std::unique_ptr<const std::vector<Trk::DiscLayer*> > discLayers =
36
m_layerBuilder
->discLayers();
37
return
discLayersToEndcapLayers(std::move(discLayers));
38
}
39
40
const
std::string&
Trk::LayerProvider::identification
()
const
41
{
42
return
m_layerBuilder
->identification();
43
}
ATH_MSG_WARNING
#define ATH_MSG_WARNING(x)
Definition
AthMsgStreamMacros.h:32
CylinderLayer.h
DiscLayer.h
LayerProvider.h
Layer.h
Trk::LayerProvider::identification
virtual const std::string & identification() const override final
Name identification.
Definition
LayerProvider.cxx:40
Trk::LayerProvider::endcapLayer
virtual std::pair< const std::vector< Layer * >, const std::vector< Layer * > > endcapLayer() const override final
LayerBuilder interface method - returning the endcap layer.
Definition
LayerProvider.cxx:32
Trk::LayerProvider::initialize
virtual StatusCode initialize() override final
initialize
Definition
LayerProvider.cxx:13
Trk::LayerProvider::m_layerBuilder
PublicToolHandle< ILayerBuilder > m_layerBuilder
Definition
LayerProvider.h:45
Trk::LayerProvider::centralLayers
virtual const std::vector< Layer * > centralLayers() const override final
LayerBuilder interface method - returning the central layers.
Definition
LayerProvider.cxx:22
Generated on
for ATLAS Offline Software by
1.17.0