13#include "GeoModelKernel/throwExcept.h"
19 return StatusCode::SUCCESS;
37 ATH_MSG_WARNING(__func__<<
"() "<<__LINE__<<
" - No geometry context passed");
38 return Acts::GeometryContext{gctx};
54 ATH_MSG_WARNING(__func__<<
"() "<<__LINE__<<
" - No magentic field context passed");
56 return Acts::MagneticFieldContext{mctx};
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_WARNING(x)
Handle class for reading from StoreGate.
SG::ReadCondHandleKey< AtlasFieldCacheCondObj > m_magCtxKey
Data dependency on the magnetic field map.
Acts::MagneticFieldContext getMagneticFieldContext(const EventContext &ctx) const
Retrieves the current magnetic field context from StoreGate.
bool msgLvl(const MSG::Level lvl) const
Returns whether the stream satisfies the logging level.
Acts::GeometryContext getGeometryContext(const EventContext &ctx) const
Retrieves the current geometry context from StoreGate.
Acts::CalibrationContext getCalibrationContext(const EventContext &ctx) const
Retrieves the current calibration context from StoreGate.
std::function< bool(const MSG::Level)> m_msgLevel
Lambda to return the msg level from the parent's msg stream.
GeoContextReadKey_t m_geoCtxKey
Data dependency on the aligned geometry transforms.
StatusCode initialize(const bool enable=true)
Initializes the ReadHandleKeys held by the utility class.
MsgStream & msg(const MSG::Level lvl) const
Return the reference to the msg logging stream.
std::function< MsgStream &(const MSG::Level)> m_msgPrinter
Lambda to access the parent's msg stream.
Acts::GeometryContext context() const
The AlignStoreProviderAlg loads the rigid alignment corrections and pipes them through the readout ge...
Acts::CalibrationContext getCalibrationContext(const EventContext &ctx)
The Acts::Calibration context is piped through the Acts fitters to (re)calibrate the Acts::SourceLink...
const T * get(const ReadCondHandleKey< T > &key, const EventContext &ctx)
Convenience function to retrieve an object given a ReadCondHandleKey.
#define THROW_EXCEPTION(MESSAGE)