ATLAS Offline Software
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$
14 #include "xAODTestReadSymlink.h"
15 #include "StoreGate/ReadHandle.h"
16 
17 
18 namespace DMTest {
19 
20 
21 xAODTestReadSymlink::xAODTestReadSymlink (const std::string &name, ISvcLocator *pSvcLocator)
22  : AthReentrantAlgorithm (name, pSvcLocator)
23 {
24  declareProperty ("Key", m_objKey);
25  declareProperty ("S1Key", m_s1Key = "S2");
26  declareProperty ("S2Key", m_s2Key = "S2");
27  declareProperty ("AliasKey", m_aliasKey = "S2alias");
28 }
29 
30 
32 {
37  return StatusCode::SUCCESS;
38 }
39 
40 
41 StatusCode 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
ATH_MSG_INFO
#define ATH_MSG_INFO(x)
Definition: AthMsgStreamMacros.h:31
SG::Accessor
Helper class to provide type-safe access to aux data.
Definition: Control/AthContainers/AthContainers/Accessor.h:68
SG::ReadHandle
Definition: StoreGate/StoreGate/ReadHandle.h:70
AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::declareProperty
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
Definition: AthCommonDataStore.h:145
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:83
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition: AthMsgStreamMacros.h:33
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
COOLRates.alias
alias
Definition: COOLRates.py:1172
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
SG::VarHandleKey::initialize
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
Definition: AthToolSupport/AsgDataHandles/Root/VarHandleKey.cxx:103
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
ReadCellNoiseFromCoolCompare.s2
s2
Definition: ReadCellNoiseFromCoolCompare.py:379
ReadHandle.h
Handle class for reading from StoreGate.
python.compressB64.c
def c
Definition: compressB64.py:93
DMTest
Definition: B.h:23