ATLAS Offline Software
Loading...
Searching...
No Matches
LayerProviderCond.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
9#include "TrkGeometry/Layer.h"
10
11
12
13// initialize
16{
17 if (m_layerBuilder.retrieve().isFailure()) {
18 ATH_MSG_WARNING("Could not retrieve layer builder");
19 }
20 return StatusCode::SUCCESS;
21}
22
24const std::vector<Trk::Layer*>
27{
28 // retrieving the cylinder layers from the layer builder
29 std::unique_ptr<const std::vector<Trk::CylinderLayer*> >
30 cylinderLayers = m_layerBuilder->cylindricalLayers(ctx, whandle);
31 return cylindricalLayersToCentralLayers(std::move(cylinderLayers));
32}
33
35std::pair<const std::vector<Trk::Layer*>, const std::vector<Trk::Layer*> >
38{
39 // retrieving the cylinder layers from the layer builder
40 std::unique_ptr<const std::vector<Trk::DiscLayer*> > discLayers =
41 m_layerBuilder->discLayers(ctx, whandle);
42 return discLayersToEndcapLayers(std::move(discLayers));
43}
44
45const std::string&
47{
48 return m_layerBuilder->identification();
49}
#define ATH_MSG_WARNING(x)
virtual StatusCode initialize() override final
initialize
virtual const std::vector< Layer * > centralLayers(const EventContext &ctx, SG::WriteCondHandle< TrackingGeometry > &whandle) const override final
LayerBuilder interface method - returning the central layers.
PublicToolHandle< ILayerBuilderCond > m_layerBuilder
virtual std::pair< const std::vector< Layer * >, const std::vector< Layer * > > endcapLayer(const EventContext &ctx, SG::WriteCondHandle< TrackingGeometry > &whandle) const override final
LayerBuilder interface method - returning the layers in the endcaps.
virtual const std::string & identification() const override final
Name identification.
::StatusCode StatusCode
StatusCode definition for legacy code.