ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
Trk::LayerProvider Class Reference

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

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

Definition at line 27 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 }

◆ 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 }

Member Data Documentation

◆ m_layerBuilder

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

Definition at line 52 of file LayerProvider.h.


The documentation for this class was generated from the following files:
Trk::LayerProvider::m_layerBuilder
PublicToolHandle< ILayerBuilder > m_layerBuilder
Definition: LayerProvider.h:52
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
beamspotman.n
n
Definition: beamspotman.py:731
ATH_MSG_WARNING
#define ATH_MSG_WARNING(x)
Definition: AthMsgStreamMacros.h:32