ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Tracking
TrkDetDescr
TrkDetDescrTools
src
LayerProviderCond.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
// Trk include
6
#include "
TrkDetDescrTools/LayerProviderCond.h
"
7
#include "
TrkGeometry/CylinderLayer.h
"
8
#include "
TrkGeometry/DiscLayer.h
"
9
#include "
TrkGeometry/Layer.h
"
10
11
12
13
// initialize
14
StatusCode
15
Trk::LayerProviderCond::initialize
()
16
{
17
if
(
m_layerBuilder
.retrieve().isFailure()) {
18
ATH_MSG_WARNING
(
"Could not retrieve layer builder"
);
19
}
20
return
StatusCode::SUCCESS;
21
}
22
24
const
std::vector<Trk::Layer*>
25
Trk::LayerProviderCond::centralLayers
(
const
EventContext& ctx,
26
SG::WriteCondHandle<TrackingGeometry>
& whandle)
const
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
}
33
35
std::pair<const std::vector<Trk::Layer*>,
const
std::vector<Trk::Layer*> >
36
Trk::LayerProviderCond::endcapLayer
(
const
EventContext& ctx,
37
SG::WriteCondHandle<TrackingGeometry>
& whandle)
const
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
}
44
45
const
std::string&
46
Trk::LayerProviderCond::identification
()
const
47
{
48
return
m_layerBuilder
->identification();
49
}
ATH_MSG_WARNING
#define ATH_MSG_WARNING(x)
Definition
AthMsgStreamMacros.h:32
CylinderLayer.h
DiscLayer.h
LayerProviderCond.h
Layer.h
SG::WriteCondHandle
Definition
WriteCondHandle.h:26
Trk::LayerProviderCond::initialize
virtual StatusCode initialize() override final
initialize
Definition
LayerProviderCond.cxx:15
Trk::LayerProviderCond::centralLayers
virtual const std::vector< Layer * > centralLayers(const EventContext &ctx, SG::WriteCondHandle< TrackingGeometry > &whandle) const override final
LayerBuilder interface method - returning the central layers.
Definition
LayerProviderCond.cxx:25
Trk::LayerProviderCond::m_layerBuilder
PublicToolHandle< ILayerBuilderCond > m_layerBuilder
Definition
LayerProviderCond.h:52
Trk::LayerProviderCond::endcapLayer
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.
Definition
LayerProviderCond.cxx:36
Trk::LayerProviderCond::identification
virtual const std::string & identification() const override final
Name identification.
Definition
LayerProviderCond.cxx:46
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition
PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
Generated on
for ATLAS Offline Software by
1.17.0