ATLAS Offline Software
Loading...
Searching...
No Matches
xAODTestReadSymlink.cxx
Go to the documentation of this file.
1/*
2 * Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration.
3 */
4
5// $Id$
12
13
14#include "xAODTestReadSymlink.h"
16
17
18namespace DMTest {
19
20
21xAODTestReadSymlink::xAODTestReadSymlink (const std::string &name, ISvcLocator *pSvcLocator)
22 : AthReentrantAlgorithm (name, pSvcLocator)
23{
25 declareProperty ("S1Key", m_s1Key = "S2");
26 declareProperty ("S2Key", m_s2Key = "S2");
27 declareProperty ("AliasKey", m_aliasKey = "S2alias");
28}
29
30
32{
33 ATH_CHECK( m_objKey.initialize() );
34 ATH_CHECK( m_s1Key.initialize() );
35 ATH_CHECK( m_s2Key.initialize() );
36 ATH_CHECK( m_aliasKey.initialize() );
37 return StatusCode::SUCCESS;
38}
39
40
41StatusCode xAODTestReadSymlink::execute (const EventContext& ctx) const
42{
47
48 static const SG::AuxElement::Accessor<int> anInt ("anInt");
49 ATH_MSG_INFO( "C (as AuxElement): " << anInt (*c)
50 << "; S " << s2->m_x );
51 if (s2.cptr() != s1.cptr() || s2.cptr() != alias.cptr())
52 ATH_MSG_ERROR( " S objects mismatch! ");
53 return StatusCode::SUCCESS;
54}
55
56
57} // 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.
SG::Accessor< T, ALLOC > Accessor
Definition AuxElement.h:572
Definition B.h:23