ATLAS Offline Software
Loading...
Searching...
No Matches
xAODTestReadSymlink.cxx
Go to the documentation of this file.
1/*
2 * Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration.
3 */
10
11
12#include "xAODTestReadSymlink.h"
14
15
16namespace DMTest {
17
18
19xAODTestReadSymlink::xAODTestReadSymlink (const std::string &name, ISvcLocator *pSvcLocator)
20 : AthReentrantAlgorithm (name, pSvcLocator)
21{
23 declareProperty ("S1Key", m_s1Key = "S2");
24 declareProperty ("S2Key", m_s2Key = "S2");
25 declareProperty ("AliasKey", m_aliasKey = "S2alias");
26}
27
28
30{
31 ATH_CHECK( m_objKey.initialize() );
32 ATH_CHECK( m_s1Key.initialize() );
33 ATH_CHECK( m_s2Key.initialize() );
34 ATH_CHECK( m_aliasKey.initialize() );
35 return StatusCode::SUCCESS;
36}
37
38
39StatusCode xAODTestReadSymlink::execute (const EventContext& ctx) const
40{
45
46 static const SG::Accessor<int> anInt ("anInt");
47 ATH_MSG_INFO( "C (as AuxElement): {}; S {}", anInt (*c), s2->m_x );
48 if (s2.cptr() != s1.cptr() || s2.cptr() != alias.cptr())
49 ATH_MSG_ERROR( " S objects mismatch! ");
50 return StatusCode::SUCCESS;
51}
52
53
54} // namespace DMTest
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_ERROR(x,...)
#define ATH_MSG_INFO(x,...)
Handle class for reading from StoreGate.
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
An algorithm that can be simultaneously executed in multiple threads.
Helper class to provide type-safe access to aux data.
Definition B.h:23