ATLAS Offline Software
Loading...
Searching...
No Matches
Trk::LayerProvider Class Reference

Wrapper around an ILayerBuilder to feed into the StagedGeometryBuilder. More...

#include <LayerProvider.h>

Inheritance diagram for Trk::LayerProvider:
Collaboration diagram for Trk::LayerProvider:

Public Member Functions

 LayerProvider (const std::string &, const std::string &, const IInterface *)
 Constructor.
virtual ~LayerProvider ()=default
 Destructor.
virtual StatusCode initialize () override final
 initialize
virtual std::pair< const std::vector< Layer * >, const std::vector< Layer * > > endcapLayer () const override final
 LayerBuilder interface method - returning the endcap layer.
virtual const std::vector< Layer * > centralLayers () const override final
 LayerBuilder interface method - returning the central layers.
virtual const std::string & identification () const override final
 Name identification.

Private Attributes

PublicToolHandle< ILayerBuilderm_layerBuilder {this, "LayerBuilder", ""}

Detailed Description

Wrapper around an ILayerBuilder to feed into the StagedGeometryBuilder.

Author
Andre.nosp@m.as.S.nosp@m.alzbu.nosp@m.rger.nosp@m.@cern.nosp@m..ch aauthor Christos Anastopoulos (AthenaMT modifications),

Definition at line 26 of file LayerProvider.h.

Constructor & Destructor Documentation

◆ LayerProvider()

Trk::LayerProvider::LayerProvider ( const std::string & t,
const std::string & n,
const IInterface * p )

Constructor.

Definition at line 12 of file LayerProvider.cxx.

13: base_class(t,n,p)
14{
15}

◆ ~LayerProvider()

virtual Trk::LayerProvider::~LayerProvider ( )
virtualdefault

Destructor.

Member Function Documentation

◆ centralLayers()

const std::vector< Trk::Layer * > Trk::LayerProvider::centralLayers ( ) const
finaloverridevirtual

LayerBuilder interface method - returning the central layers.

Definition at line 27 of file LayerProvider.cxx.

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}
PublicToolHandle< ILayerBuilder > m_layerBuilder

◆ endcapLayer()

std::pair< const std::vector< Trk::Layer * >, const std::vector< Trk::Layer * > > Trk::LayerProvider::endcapLayer ( ) const
finaloverridevirtual

LayerBuilder interface method - returning the endcap layer.

Definition at line 37 of file LayerProvider.cxx.

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}

◆ identification()

const std::string & Trk::LayerProvider::identification ( ) const
finaloverridevirtual

Name identification.

Definition at line 45 of file LayerProvider.cxx.

46{
47 return m_layerBuilder->identification();
48}

◆ initialize()

StatusCode Trk::LayerProvider::initialize ( )
finaloverridevirtual

initialize

Definition at line 18 of file LayerProvider.cxx.

19{
20 if (m_layerBuilder.retrieve().isFailure()){
21 ATH_MSG_WARNING("Could not retrieve layer builder");
22 }
23 return StatusCode::SUCCESS;
24}
#define ATH_MSG_WARNING(x)

Member Data Documentation

◆ m_layerBuilder

PublicToolHandle<ILayerBuilder> Trk::LayerProvider::m_layerBuilder {this, "LayerBuilder", ""}
private

Definition at line 48 of file LayerProvider.h.

48{this, "LayerBuilder", ""};

The documentation for this class was generated from the following files: