ATLAS Offline Software
MuonTrackingGeometryBuilderCond.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 // MuonTrackingGeometryBuilderCond.cxx, (c) ATLAS Detector software
8 
9 // Muon
11 
13 
15  const std::string& t, const std::string& n, const IInterface* p)
17  declareInterface<Trk::IGeometryBuilderCond>(this);
18 }
19 
21  // Retrieve the station builder (if configured)
22  // -------------------------------------------
23  ATH_CHECK(m_stationBuilder.retrieve(EnableTool{m_muonActive}));
24 
25  // Retrieve the inert material builder builder (if configured)
26  // -------------------------------------------
27 
28  ATH_CHECK(m_inertBuilder.retrieve(EnableTool{m_muonInert || m_blendInertMaterial}));
30 }
31 
32 std::unique_ptr<Trk::TrackingGeometry>
34  Trk::TrackingVolume* tvol,
36  ATH_MSG_DEBUG(" building tracking geometry");
37 
38  // process muon material objects
39 
40  DetachedVolVec stations{};
41  if (m_muonActive && m_stationBuilder) {
42  stations = m_stationBuilder->buildDetachedTrackingVolumes(ctx, whandle);
43  }
44 
45  DetachedVolVec inertObjs{};
46  if (m_muonInert && m_inertBuilder) {
47  inertObjs = m_inertBuilder->buildDetachedTrackingVolumes(ctx, whandle, m_blendInertMaterial);
48  }
49 
51  std::move(inertObjs), tvol);
52 }
Muon::MuonTrackingGeometryBuilderImpl::DetachedVolVec
std::vector< DetachedVolPtr > DetachedVolVec
Definition: MuonTrackingGeometryBuilderImpl.h:63
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
Muon::MuonTrackingGeometryBuilderImpl::initialize
virtual StatusCode initialize() override
AlgTool initailize method.
Definition: MuonTrackingGeometryBuilderImpl.cxx:65
beamspotman.n
n
Definition: beamspotman.py:731
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition: AthMsgStreamMacros.h:29
Muon::MuonTrackingGeometryBuilderCond::initialize
virtual StatusCode initialize() override
AlgTool initailize method.
Definition: MuonTrackingGeometryBuilderCond.cxx:20
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
Muon::MuonTrackingGeometryBuilderCond::MuonTrackingGeometryBuilderCond
MuonTrackingGeometryBuilderCond(const std::string &, const std::string &, const IInterface *)
Constructor.
Definition: MuonTrackingGeometryBuilderCond.cxx:14
Muon::MuonTrackingGeometryBuilderCond::trackingGeometry
virtual std::unique_ptr< Trk::TrackingGeometry > trackingGeometry(const EventContext &ctx, Trk::TrackingVolume *tvol, SG::WriteCondHandle< Trk::TrackingGeometry > &whandle) const override
TrackingGeometry Interface method.
Definition: MuonTrackingGeometryBuilderCond.cxx:33
IOVInfiniteRange.h
Muon::MuonTrackingGeometryBuilderImpl::trackingGeometryImpl
std::unique_ptr< Trk::TrackingGeometry > trackingGeometryImpl(DetachedVolVec &&stations, DetachedVolVec &&inertObjs, Trk::TrackingVolume *tvol) const
Definition: MuonTrackingGeometryBuilderImpl.cxx:81
MuonTrackingGeometryBuilderCond.h
Trk::TrackingVolume
Definition: TrackingVolume.h:121
SG::WriteCondHandle
Definition: WriteCondHandle.h:26
Muon::MuonTrackingGeometryBuilderImpl
Definition: MuonTrackingGeometryBuilderImpl.h:54