15 return StatusCode::SUCCESS;
22 if (fieldCondObj ==
nullptr) {
24 return StatusCode::FAILURE;
33 double xyz[3] = { 100, 100, 100 };
35 fieldCache. getField(
xyz, bxyz);
37 ATH_MSG_INFO(
"Field xyz: " <<
xyz[0] <<
", " <<
xyz[1] <<
", " <<
xyz[2] <<
", " << bxyz[0] <<
", " << bxyz[1] <<
", " << bxyz[2]);
42 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
An algorithm that can be simultaneously executed in multiple threads.
void getInitializedCache(MagField::AtlasFieldCache &cache) const
get B field cache for evaluation as a function of 2-d or 3-d position.
Local cache for magnetic field (based on MagFieldServices/AtlasFieldSvcTLS.h)
bool solenoidOn() const
status of the magnets
CondReader(const std::string &name, ISvcLocator *pSvcLocator)
StatusCode execute(const EventContext &ctx) const override
SG::ReadCondHandleKey< AtlasFieldCacheCondObj > m_fieldCacheKey
StatusCode initialize() override