ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
DMTest::xAODTestReadSymlinkTool Class Reference

#include <xAODTestReadSymlinkTool.h>

Inheritance diagram for DMTest::xAODTestReadSymlinkTool:
Collaboration diagram for DMTest::xAODTestReadSymlinkTool:

Public Member Functions

 xAODTestReadSymlinkTool (const std::string &type, const std::string &name, const IInterface *parent)
 Constructor. More...
 
virtual StatusCode initialize () override
 Tool initialization; called at the beginning of the job. More...
 
virtual StatusCode doit (const EventContext &ctx) const override
 Tool event processing. More...
 

Private Attributes

SG::ReadHandleKey< SG::AuxElementm_objKey
 
SG::ReadHandleKey< DMTest::S1m_s1Key
 
SG::ReadHandleKey< DMTest::S2m_s2Key
 
SG::ReadHandleKey< DMTest::S2m_aliasKey
 

Detailed Description

Definition at line 31 of file xAODTestReadSymlinkTool.h.

Constructor & Destructor Documentation

◆ xAODTestReadSymlinkTool()

DMTest::xAODTestReadSymlinkTool::xAODTestReadSymlinkTool ( const std::string &  type,
const std::string &  name,
const IInterface *  parent 
)

Constructor.

Parameters
typeThe tool type.
nameThe tool name.
parentThe tool's parent.

Definition at line 21 of file xAODTestReadSymlinkTool.cxx.

24  : base_class (type, name, parent)
25 {
26  declareProperty ("Key", m_objKey);
27  declareProperty ("S1Key", m_s1Key = "S2");
28  declareProperty ("S2Key", m_s2Key = "S2");
29  declareProperty ("AliasKey", m_aliasKey = "S2alias");
30 }

Member Function Documentation

◆ doit()

StatusCode DMTest::xAODTestReadSymlinkTool::doit ( const EventContext &  ctx) const
overridevirtual

Tool event processing.

Definition at line 43 of file xAODTestReadSymlinkTool.cxx.

44 {
49 
50  static const SG::AuxElement::Accessor<int> anInt ("anInt");
51  ATH_MSG_INFO( "From tool: C (as AuxElement): " << anInt (*c)
52  << "; S " << s2->m_x );
53  if (s2.cptr() != s1.cptr() || s2.cptr() != alias.cptr())
54  ATH_MSG_ERROR( " S objects mismatch! ");
55  return StatusCode::SUCCESS;
56 }

◆ initialize()

StatusCode DMTest::xAODTestReadSymlinkTool::initialize ( )
overridevirtual

Tool initialization; called at the beginning of the job.

Definition at line 33 of file xAODTestReadSymlinkTool.cxx.

34 {
39  return StatusCode::SUCCESS;
40 }

Member Data Documentation

◆ m_aliasKey

SG::ReadHandleKey<DMTest::S2> DMTest::xAODTestReadSymlinkTool::m_aliasKey
private

Definition at line 63 of file xAODTestReadSymlinkTool.h.

◆ m_objKey

SG::ReadHandleKey<SG::AuxElement> DMTest::xAODTestReadSymlinkTool::m_objKey
private

Definition at line 59 of file xAODTestReadSymlinkTool.h.

◆ m_s1Key

SG::ReadHandleKey<DMTest::S1> DMTest::xAODTestReadSymlinkTool::m_s1Key
private

Definition at line 61 of file xAODTestReadSymlinkTool.h.

◆ m_s2Key

SG::ReadHandleKey<DMTest::S2> DMTest::xAODTestReadSymlinkTool::m_s2Key
private

Definition at line 62 of file xAODTestReadSymlinkTool.h.


The documentation for this class was generated from the following files:
ReadCellNoiseFromCoolCompare.s1
s1
Definition: ReadCellNoiseFromCoolCompare.py:378
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
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition: AthMsgStreamMacros.h:33
COOLRates.alias
alias
Definition: COOLRates.py:1172
DMTest::xAODTestReadSymlinkTool::m_aliasKey
SG::ReadHandleKey< DMTest::S2 > m_aliasKey
Definition: xAODTestReadSymlinkTool.h:63
test_pyathena.parent
parent
Definition: test_pyathena.py:15
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
DMTest::xAODTestReadSymlinkTool::m_s1Key
SG::ReadHandleKey< DMTest::S1 > m_s1Key
Definition: xAODTestReadSymlinkTool.h:61
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
DMTest::xAODTestReadSymlinkTool::m_s2Key
SG::ReadHandleKey< DMTest::S2 > m_s2Key
Definition: xAODTestReadSymlinkTool.h:62
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
ReadCellNoiseFromCoolCompare.s2
s2
Definition: ReadCellNoiseFromCoolCompare.py:379
python.compressB64.c
def c
Definition: compressB64.py:93
DMTest::xAODTestReadSymlinkTool::m_objKey
SG::ReadHandleKey< SG::AuxElement > m_objKey
Definition: xAODTestReadSymlinkTool.h:59