ATLAS Offline Software
Loading...
Searching...
No Matches
LayerProvider.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3*/
4
5// Trk include
7#include "TrkGeometry/Layer.h"
10
11// constructor
12Trk::LayerProvider::LayerProvider(const std::string& t, const std::string& n, const IInterface* p)
13: base_class(t,n,p)
14{
15}
16
17// initialize
19{
20 if (m_layerBuilder.retrieve().isFailure()){
21 ATH_MSG_WARNING("Could not retrieve layer builder");
22 }
23 return StatusCode::SUCCESS;
24}
25
27const std::vector<Trk::Layer*> Trk::LayerProvider::centralLayers() const
28{
29 // retrieving the cylinder layers from the layer builder
30 std::unique_ptr<const std::vector<Trk::CylinderLayer*> >
31 cylinderLayers = m_layerBuilder->cylindricalLayers();
32 return cylindricalLayersToCentralLayers(std::move(cylinderLayers));
33}
34
36std::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();
42 return discLayersToEndcapLayers(std::move(discLayers));
43}
44
45const std::string& Trk::LayerProvider::identification() const
46{
47 return m_layerBuilder->identification();
48}
#define ATH_MSG_WARNING(x)
virtual const std::string & identification() const override final
Name identification.
LayerProvider(const std::string &, const std::string &, const IInterface *)
Constructor.
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.