ATLAS Offline Software
Loading...
Searching...
No Matches
MuonInertMaterialBuilderCond.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3*/
4// Muon
6
8
9// constructor
11 const std::string& t, const std::string& n, const IInterface* p)
13
18
22 bool blend) const {
23
25 if (!readHandle.isValid()) {
27 << " is not available. Could not get MuonDetectorManager, no layers for muons will be built.");
28 throw std::runtime_error("Failed to build tracking inert material");
29 }
30 whandle.addDependency(readHandle);
31 return Muon::MuonInertMaterialBuilderImpl::buildDetachedTrackingVolumesImpl(readHandle->getTreeTop(0), blend);
32}
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_ERROR(x)
virtual StatusCode initialize() override
AlgTool initialize method.
DetachedVolVec buildDetachedTrackingVolumes(const EventContext &ctx, SG::WriteCondHandle< Trk::TrackingGeometry > &whandle, bool blend=false) const
Method returning cloned and positioned material objects.
SG::ReadCondHandleKey< MuonGM::MuonDetectorManager > m_muonMgrReadKey
MuonInertMaterialBuilderCond(const std::string &, const std::string &, const IInterface *)
Constructor.
std::vector< std::unique_ptr< Trk::DetachedTrackingVolume > > DetachedVolVec
DetachedVolVec buildDetachedTrackingVolumesImpl(const PVConstLink &treeTop, bool blend) const
MuonInertMaterialBuilderImpl(const std::string &, const std::string &, const IInterface *)
Constructor.
virtual StatusCode initialize() override
AlgTool initialize method.
void addDependency(const EventIDRange &range)