ATLAS Offline Software
xAODTestReadDecor.h
Go to the documentation of this file.
1 // This file's extension implies that it's C, but it's really -*- C++ -*-.
2 /*
3  * Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration.
4  */
5 // $Id$
14 #ifndef DATAMODELTESTDATACOMMON_XAODTESTREADDECOR_H
15 #define DATAMODELTESTDATACOMMON_XAODTESTREADDECOR_H
16 
17 
22 
23 
24 namespace DMTest {
25 
26 
31  : public AthReentrantAlgorithm
32 {
33 public:
39  xAODTestReadDecor (const std::string &name, ISvcLocator *pSvcLocator);
40 
41 
45  virtual StatusCode initialize() override;
46 
47 
51  virtual StatusCode execute (const EventContext& ctx) const override;
52 
53 
57  virtual StatusCode finalize() override;
58 
59 
60 private:
62  std::string m_readPrefix;
63 
65  std::string m_decorName;
66 
68  std::string m_cvecName;
69  std::string m_cinfoName;
70 
76 };
77 
78 
79 } // namespace DMTest
80 
81 
82 #endif // not DATAMODELTESTDATACOMMON_XAODTESTREADDECOR_H
ReadDecorHandleKey.h
Property holding a SG store/key/clid/attr name from which a ReadDecorHandle is made.
DMTest::xAODTestReadDecor::m_cinfoDecorKey
SG::ReadDecorHandleKey< C > m_cinfoDecorKey
Definition: xAODTestReadDecor.h:73
DMTest::xAODTestReadDecor::xAODTestReadDecor
xAODTestReadDecor(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
Definition: xAODTestReadDecor.cxx:27
DMTest::xAODTestReadDecor::m_objDecorKey
SG::ReadDecorHandleKey< SG::AuxElement > m_objDecorKey
Definition: xAODTestReadDecor.h:75
DMTest::xAODTestReadDecor::initialize
virtual StatusCode initialize() override
Algorithm initialization; called at the beginning of the job.
Definition: xAODTestReadDecor.cxx:46
DMTest::xAODTestReadDecor
Algorithm to test reading decorations using handles.
Definition: xAODTestReadDecor.h:32
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:83
CVec.h
Class used for testing xAOD data reading/writing.
DMTest::xAODTestReadDecor::finalize
virtual StatusCode finalize() override
Algorithm finalization; called at the end of the job.
Definition: xAODTestReadDecor.cxx:112
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
C.h
Class used for testing xAOD data reading/writing.
DMTest::xAODTestReadDecor::m_cvecDecorKey
SG::ReadDecorHandleKey< CVec > m_cvecDecorKey
Handles for reading decorations.
Definition: xAODTestReadDecor.h:72
DMTest::xAODTestReadDecor::m_decorName
std::string m_decorName
Parameter: Name of the decoration.
Definition: xAODTestReadDecor.h:65
DMTest::xAODTestReadDecor::m_cvecName
std::string m_cvecName
Parameter: Root names of the objects.
Definition: xAODTestReadDecor.h:68
DMTest::xAODTestReadDecor::execute
virtual StatusCode execute(const EventContext &ctx) const override
Algorithm event processing.
Definition: xAODTestReadDecor.cxx:68
AthReentrantAlgorithm.h
DMTest::xAODTestReadDecor::m_readPrefix
std::string m_readPrefix
Parameter: Prefix for names read from SG.
Definition: xAODTestReadDecor.h:62
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
DMTest::xAODTestReadDecor::m_cinfoName
std::string m_cinfoName
Definition: xAODTestReadDecor.h:69
DMTest::xAODTestReadDecor::m_cinfoBaseDecorKey
SG::ReadDecorHandleKey< C > m_cinfoBaseDecorKey
Definition: xAODTestReadDecor.h:74
SG::ReadDecorHandleKey
Property holding a SG store/key/clid/attr name from which a ReadDecorHandle is made.
Definition: StoreGate/StoreGate/ReadDecorHandleKey.h:85
DMTest
Definition: B.h:23