ATLAS Offline Software
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 
15  ATH_CHECK(m_muonMgrReadKey.initialize());
17 }
18 
22  bool blend) const {
23 
24  SG::ReadCondHandle<MuonGM::MuonDetectorManager> readHandle{m_muonMgrReadKey, ctx};
25  if (!readHandle.isValid()) {
26  ATH_MSG_ERROR(m_muonMgrReadKey.fullKey()
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 }
Muon::MuonInertMaterialBuilderCond::MuonInertMaterialBuilderCond
MuonInertMaterialBuilderCond(const std::string &, const std::string &, const IInterface *)
Constructor.
Definition: MuonInertMaterialBuilderCond.cxx:10
SG::ReadCondHandle
Definition: ReadCondHandle.h:44
Muon::MuonInertMaterialBuilderImpl::initialize
virtual StatusCode initialize() override
AlgTool initialize method.
Definition: MuonInertMaterialBuilderImpl.cxx:26
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
ReadCondHandle.h
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
Muon::MuonInertMaterialBuilderCond::initialize
virtual StatusCode initialize() override
AlgTool initialize method.
Definition: MuonInertMaterialBuilderCond.cxx:14
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition: AthMsgStreamMacros.h:33
beamspotman.n
n
Definition: beamspotman.py:731
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
Muon::MuonInertMaterialBuilderImpl::DetachedVolVec
std::vector< std::unique_ptr< Trk::DetachedTrackingVolume > > DetachedVolVec
Definition: MuonInertMaterialBuilderImpl.h:58
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
MuonInertMaterialBuilderCond.h
Muon::MuonInertMaterialBuilderImpl::buildDetachedTrackingVolumesImpl
DetachedVolVec buildDetachedTrackingVolumesImpl(const PVConstLink treeTop, bool blend) const
Definition: MuonInertMaterialBuilderImpl.cxx:36
Muon::MuonInertMaterialBuilderImpl
Definition: MuonInertMaterialBuilderImpl.h:52
SG::WriteCondHandle
Definition: WriteCondHandle.h:26
Muon::MuonInertMaterialBuilderCond::buildDetachedTrackingVolumes
DetachedVolVec buildDetachedTrackingVolumes(const EventContext &ctx, SG::WriteCondHandle< Trk::TrackingGeometry > &whandle, bool blend=false) const
Method returning cloned and positioned material objects.
Definition: MuonInertMaterialBuilderCond.cxx:20
SG::WriteCondHandle::addDependency
void addDependency(const EventIDRange &range)
Definition: WriteCondHandle.h:275