ATLAS Offline Software
Loading...
Searching...
No Matches
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
6//Trk
9// InDetDD
11
12// constructor
13InDet::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
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
31std::unique_ptr<const std::vector<Trk::CylinderLayer*> >
33{
34 if (!m_trtMgr) return nullptr;
35 const InDetDD::TRT_DetElementContainer* trtContainer = m_trtMgr->getDetectorElementContainer();
36 return cylindricalLayersImpl(trtContainer);
37}
38
39
41std::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}
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_DEBUG(x)
Class to hold different TRT detector elements structures.
virtual std::unique_ptr< const std::vector< Trk::CylinderLayer * > > cylindricalLayers() const override final
LayerBuilder interface method - returning Barrel-like layers.
TRT_LayerBuilder(const std::string &, const std::string &, const IInterface *)
AlgTool style constructor.
StringProperty m_trtMgrLocation
the location of the TRT Manager
const InDetDD::TRT_DetectorManager * m_trtMgr
the TRT Manager
virtual StatusCode initialize() override final
AlgTool initialize method.
virtual std::unique_ptr< const std::vector< Trk::DiscLayer * > > discLayers() const override final
LayerBuilder interface method - returning Endcap-like layers.