ATLAS Offline Software
Loading...
Searching...
No Matches
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
7#include "TrkGeometry/Layer.h"
10
11
12// initialize
14{
15 if (m_layerBuilder.retrieve().isFailure()){
16 ATH_MSG_WARNING("Could not retrieve layer builder");
17 }
18 return StatusCode::SUCCESS;
19}
20
22const 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
31std::pair<const std::vector<Trk::Layer*>, const std::vector<Trk::Layer*> >
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
40const std::string& Trk::LayerProvider::identification() const
41{
42 return m_layerBuilder->identification();
43}
#define ATH_MSG_WARNING(x)
virtual const std::string & identification() const override final
Name identification.
virtual std::pair< const std::vector< Layer * >, const std::vector< Layer * > > endcapLayer() const override final
LayerBuilder interface method - returning the endcap layer.
virtual StatusCode initialize() override final
initialize
PublicToolHandle< ILayerBuilder > m_layerBuilder
virtual const std::vector< Layer * > centralLayers() const override final
LayerBuilder interface method - returning the central layers.