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

 LayerProviderCond (const std::string &, const std::string &, const IInterface *)
 Constructor.
virtual ~LayerProviderCond ()=default
 Destructor.
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.

Constructor & Destructor Documentation

◆ LayerProviderCond()

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

Constructor.

Definition at line 12 of file LayerProviderCond.cxx.

15 : base_class(t, n, p)
16{
17}

◆ ~LayerProviderCond()

virtual Trk::LayerProviderCond::~LayerProviderCond ( )
virtualdefault

Destructor.

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 31 of file LayerProviderCond.cxx.

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}
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 42 of file LayerProviderCond.cxx.

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}

◆ identification()

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

Name identification.

Definition at line 52 of file LayerProviderCond.cxx.

53{
54 return m_layerBuilder->identification();
55}

◆ initialize()

StatusCode Trk::LayerProviderCond::initialize ( )
finaloverridevirtual

initialize

Definition at line 21 of file LayerProviderCond.cxx.

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

Member Data Documentation

◆ m_layerBuilder

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

Definition at line 55 of file LayerProviderCond.h.

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

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