ATLAS Offline Software
LayerProvider.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 // Trk include
7 #include "TrkGeometry/Layer.h"
10 
11 // constructor
12 Trk::LayerProvider::LayerProvider(const std::string& t, const std::string& n, const IInterface* p)
13 : base_class(t,n,p)
14 {
15 }
16 
17 // initialize
19 {
20  if (m_layerBuilder.retrieve().isFailure()){
21  ATH_MSG_WARNING("Could not retrieve layer builder");
22  }
23  return StatusCode::SUCCESS;
24 }
25 
27 const std::vector<Trk::Layer*> Trk::LayerProvider::centralLayers() const
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 }
34 
36 std::pair<const std::vector<Trk::Layer*>, const std::vector<Trk::Layer*> >
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 }
44 
45 const std::string& Trk::LayerProvider::identification() const
46 {
47  return m_layerBuilder->identification();
48 }
Trk::LayerProvider::identification
virtual const std::string & identification() const override final
Name identification.
Definition: LayerProvider.cxx:45
DiscLayer.h
Layer.h
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
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
Trk::LayerProvider::initialize
virtual StatusCode initialize() override final
initialize
Definition: LayerProvider.cxx:18
CylinderLayer.h
Trk::LayerProvider::centralLayers
virtual const std::vector< Layer * > centralLayers() const override final
LayerBuilder interface method - returning the central layers.
Definition: LayerProvider.cxx:27
LayerProvider.h
Trk::LayerProvider::endcapLayer
virtual std::pair< const std::vector< Layer * >, const std::vector< Layer * > > endcapLayer() const override final
LayerBuilder interface method - returning the endcap layer.
Definition: LayerProvider.cxx:37
Trk::LayerProvider::LayerProvider
LayerProvider(const std::string &, const std::string &, const IInterface *)
Constructor.
Definition: LayerProvider.cxx:12
ATH_MSG_WARNING
#define ATH_MSG_WARNING(x)
Definition: AthMsgStreamMacros.h:32