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

#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. More...
 
virtual ~LayerProviderCond ()=default
 Destructor. More...
 
virtual StatusCode initialize () override final
 initialize More...
 
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. More...
 
virtual const std::vector< Layer * > centralLayers (const EventContext &ctx, SG::WriteCondHandle< TrackingGeometry > &whandle) 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< 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 }

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

Member Data Documentation

◆ m_layerBuilder

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

Definition at line 55 of file LayerProviderCond.h.


The documentation for this class was generated from the following files:
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
Trk::LayerProviderCond::m_layerBuilder
PublicToolHandle< ILayerBuilderCond > m_layerBuilder
Definition: LayerProviderCond.h:55
ATH_MSG_WARNING
#define ATH_MSG_WARNING(x)
Definition: AthMsgStreamMacros.h:32