ATLAS Offline Software
Loading...
Searching...
No Matches
LayerProviderCond.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
9#include "TrkGeometry/Layer.h"
10
11// constructor
13 const std::string& n,
14 const IInterface* p)
15 : base_class(t, n, p)
16{
17}
18
19// initialize
20StatusCode
22{
23 if (m_layerBuilder.retrieve().isFailure()) {
24 ATH_MSG_WARNING("Could not retrieve layer builder");
25 }
26 return StatusCode::SUCCESS;
27}
28
30const std::vector<Trk::Layer*>
33{
34 // retrieving the cylinder layers from the layer builder
35 std::unique_ptr<const std::vector<Trk::CylinderLayer*> >
36 cylinderLayers = m_layerBuilder->cylindricalLayers(ctx, whandle);
37 return cylindricalLayersToCentralLayers(std::move(cylinderLayers));
38}
39
41std::pair<const std::vector<Trk::Layer*>, const std::vector<Trk::Layer*> >
44{
45 // retrieving the cylinder layers from the layer builder
46 std::unique_ptr<const std::vector<Trk::DiscLayer*> > discLayers =
47 m_layerBuilder->discLayers(ctx, whandle);
48 return discLayersToEndcapLayers(std::move(discLayers));
49}
50
51const std::string&
53{
54 return m_layerBuilder->identification();
55}
#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
LayerProviderCond(const std::string &, const std::string &, const IInterface *)
Constructor.
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.