ATLAS Offline Software
Loading...
Searching...
No Matches
Trk::LayerProviderCond Class Referencefinal

Wrapper around an ILayerBuilderCond to feed into the StagedGeometryBuilderCond. More...

#include <LayerProviderCond.h>

Inheritance diagram for Trk::LayerProviderCond:
Collaboration diagram for Trk::LayerProviderCond:

Public Member Functions

virtual StatusCode initialize () override final
 initialize
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::vector< Layer * > centralLayers (const EventContext &ctx, SG::WriteCondHandle< TrackingGeometry > &whandle) const override final
 LayerBuilder interface method - returning the central layers.
virtual const std::string & identification () const override final
 Name identification.

Private Attributes

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

Detailed Description

Wrapper around an ILayerBuilderCond to feed into the StagedGeometryBuilderCond.

Author
Andre.nosp@m.as.S.nosp@m.alzbu.nosp@m.rger.nosp@m.@cern.nosp@m..ch

Definition at line 27 of file LayerProviderCond.h.

Member Function Documentation

◆ centralLayers()

const std::vector< Trk::Layer * > Trk::LayerProviderCond::centralLayers ( const EventContext & ctx,
SG::WriteCondHandle< TrackingGeometry > & whandle ) const
finaloverridevirtual

LayerBuilder interface method - returning the central layers.

LayerBuilderCond interface method - returning the central layers.

Definition at line 25 of file LayerProviderCond.cxx.

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

◆ endcapLayer()

std::pair< const std::vector< Trk::Layer * >, const std::vector< Trk::Layer * > > Trk::LayerProviderCond::endcapLayer ( const EventContext & ctx,
SG::WriteCondHandle< TrackingGeometry > & whandle ) const
finaloverridevirtual

LayerBuilder interface method - returning the layers in the endcaps.

LayerBuilderCond interface method - returning the layers at negative side.

Definition at line 36 of file LayerProviderCond.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(ctx, whandle);
42 return discLayersToEndcapLayers(std::move(discLayers));
43}

◆ identification()

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

Name identification.

Definition at line 46 of file LayerProviderCond.cxx.

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

◆ initialize()

StatusCode Trk::LayerProviderCond::initialize ( )
finaloverridevirtual

initialize

Definition at line 15 of file LayerProviderCond.cxx.

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

Member Data Documentation

◆ m_layerBuilder

PublicToolHandle<ILayerBuilderCond> Trk::LayerProviderCond::m_layerBuilder {this, "LayerBuilder", ""}
private

Definition at line 52 of file LayerProviderCond.h.

52{this, "LayerBuilder", ""}; // Name specification from outside

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