ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
InnerDetector
InDetDetDescr
InDetTrackingGeometry
src
TRT_LayerBuilder.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#include "
InDetTrackingGeometry/TRT_LayerBuilder.h
"
6
//Trk
7
#include "
TrkGeometry/CylinderLayer.h
"
8
#include "
TrkGeometry/DiscLayer.h
"
9
// InDetDD
10
#include "
TRT_ReadoutGeometry/TRT_DetectorManager.h
"
11
12
// constructor
13
InDet::TRT_LayerBuilder::TRT_LayerBuilder
(
const
std::string& t,
const
std::string& n,
const
IInterface* p) :
14
base_class(t,n,p)
15
{
16
}
17
18
19
// Athena standard methods
20
// initialize
21
StatusCode
InDet::TRT_LayerBuilder::initialize
()
22
{
23
ATH_MSG_DEBUG
(
"initialize()"
);
24
// get TRT Detector Description Manager
25
ATH_CHECK
(detStore()->retrieve(
m_trtMgr
,
m_trtMgrLocation
));
26
return
StatusCode::SUCCESS;
27
}
28
29
31
std::unique_ptr<const std::vector<Trk::CylinderLayer*> >
32
InDet::TRT_LayerBuilder::cylindricalLayers
()
const
33
{
34
if
(!
m_trtMgr
)
return
nullptr
;
35
const
InDetDD::TRT_DetElementContainer
* trtContainer =
m_trtMgr
->getDetectorElementContainer();
36
return
cylindricalLayersImpl(trtContainer);
37
}
38
39
41
std::unique_ptr<const std::vector<Trk::DiscLayer*> >
InDet::TRT_LayerBuilder::discLayers
()
const
42
{
43
if
(!
m_trtMgr
)
return
nullptr
;
44
const
InDetDD::TRT_DetElementContainer
* trtContainer =
m_trtMgr
->getDetectorElementContainer();
45
return
discLayersImpl(trtContainer);
46
}
ATH_CHECK
#define ATH_CHECK
Evaluate an expression and check for errors.
Definition
AthCheckMacros.h:40
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x,...)
Definition
AthMsgStreamMacros.h:43
CylinderLayer.h
DiscLayer.h
TRT_DetectorManager.h
TRT_LayerBuilder.h
InDetDD::TRT_DetElementContainer
Class to hold different TRT detector elements structures.
Definition
TRT_DetElementContainer.h:25
InDet::TRT_LayerBuilder::cylindricalLayers
virtual std::unique_ptr< const std::vector< Trk::CylinderLayer * > > cylindricalLayers() const override final
LayerBuilder interface method - returning Barrel-like layers.
Definition
TRT_LayerBuilder.cxx:32
InDet::TRT_LayerBuilder::TRT_LayerBuilder
TRT_LayerBuilder(const std::string &, const std::string &, const IInterface *)
AlgTool style constructor.
Definition
TRT_LayerBuilder.cxx:13
InDet::TRT_LayerBuilder::m_trtMgrLocation
StringProperty m_trtMgrLocation
the location of the TRT Manager
Definition
TRT_LayerBuilder.h:62
InDet::TRT_LayerBuilder::m_trtMgr
const InDetDD::TRT_DetectorManager * m_trtMgr
the TRT Manager
Definition
TRT_LayerBuilder.h:61
InDet::TRT_LayerBuilder::initialize
virtual StatusCode initialize() override final
AlgTool initialize method.
Definition
TRT_LayerBuilder.cxx:21
InDet::TRT_LayerBuilder::discLayers
virtual std::unique_ptr< const std::vector< Trk::DiscLayer * > > discLayers() const override final
LayerBuilder interface method - returning Endcap-like layers.
Definition
TRT_LayerBuilder.cxx:41
Generated on
for ATLAS Offline Software by
1.17.0