ATLAS Offline Software
MuonSpectrometer
MuonDetDescr
MuonTrackingGeometry
src
MuonStationBuilderCond.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 "
MuonTrackingGeometry/MuonStationBuilderCond.h
"
6
7
#include "
StoreGate/ReadCondHandle.h
"
8
// constructor
9
Muon::MuonStationBuilderCond::MuonStationBuilderCond
(
const
std::string&
t
,
10
const
std::string&
n
,
11
const
IInterface*
p
)
12
:
Muon
::
MuonStationBuilderImpl
(
t
,
n
,
p
) {
13
declareInterface<Trk::IDetachedTrackingVolumeBuilderCond>(
this
);
14
}
15
16
StatusCode
Muon::MuonStationBuilderCond::initialize
() {
17
ATH_CHECK
(m_muonMgrReadKey.initialize());
18
return
Muon::MuonStationBuilderImpl::initialize
();
19
}
20
21
Muon::MuonStationBuilderCond::DetachedVolVec
22
Muon::MuonStationBuilderCond::buildDetachedTrackingVolumes
(
const
EventContext& ctx,
23
SG::WriteCondHandle<Trk::TrackingGeometry>
& whandle,
bool
blend)
const
{
24
25
SG::ReadCondHandle<MuonGM::MuonDetectorManager>
readHandle{m_muonMgrReadKey, ctx};
26
if
(!readHandle.isValid() ) {
27
ATH_MSG_FATAL
(m_muonMgrReadKey.fullKey() <<
" is not available."
);
28
throw
std::runtime_error(
"No detector manager available"
);
29
}
30
whandle.
addDependency
(readHandle);
31
return
Muon::MuonStationBuilderImpl::buildDetachedTrackingVolumesImpl
(readHandle.cptr(), blend);
32
}
ATH_MSG_FATAL
#define ATH_MSG_FATAL(x)
Definition:
AthMsgStreamMacros.h:34
SG::ReadCondHandle
Definition:
ReadCondHandle.h:44
read_hist_ntuple.t
t
Definition:
read_hist_ntuple.py:5
Muon
NRpcCablingAlg reads raw condition data and writes derived condition data to the condition store.
Definition:
TrackSystemController.h:45
ReadCondHandle.h
Muon::MuonStationBuilderImpl::initialize
virtual StatusCode initialize() override
Definition:
MuonStationBuilderImpl.cxx:75
python.utils.AtlRunQueryDQUtils.p
p
Definition:
AtlRunQueryDQUtils.py:210
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::MuonStationBuilderImpl
Definition:
MuonStationBuilderImpl.h:42
Muon::MuonStationBuilderCond::initialize
virtual StatusCode initialize() override
Definition:
MuonStationBuilderCond.cxx:16
ATH_CHECK
#define ATH_CHECK
Definition:
AthCheckMacros.h:40
Muon::MuonStationBuilderCond::MuonStationBuilderCond
MuonStationBuilderCond(const std::string &, const std::string &, const IInterface *)
Definition:
MuonStationBuilderCond.cxx:9
MuonStationBuilderCond.h
Muon::MuonStationBuilderImpl::buildDetachedTrackingVolumesImpl
DetachedVolVec buildDetachedTrackingVolumesImpl(const MuonGM::MuonDetectorManager *muonMgr, bool blend=false) const
Definition:
MuonStationBuilderImpl.cxx:99
Muon::MuonStationBuilderCond::buildDetachedTrackingVolumes
virtual DetachedVolumeVec buildDetachedTrackingVolumes(const EventContext &ctx, SG::WriteCondHandle< Trk::TrackingGeometry > &whandle, bool blend=false) const override
Definition:
MuonStationBuilderCond.cxx:22
SG::WriteCondHandle
Definition:
WriteCondHandle.h:26
SG::WriteCondHandle::addDependency
void addDependency(const EventIDRange &range)
Definition:
WriteCondHandle.h:275
Muon::MuonStationBuilderImpl::DetachedVolVec
std::vector< std::unique_ptr< Trk::DetachedTrackingVolume > > DetachedVolVec
Definition:
MuonStationBuilderImpl.h:48
Generated on Sun Dec 22 2024 21:15:25 for ATLAS Offline Software by
1.8.18