ATLAS Offline Software
WriteTag.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef ATHENAPOOLEXAMPLEALGORITHMS_WRITETAG_H
6 #define ATHENAPOOLEXAMPLEALGORITHMS_WRITETAG_H
7 
18 
20 
21 namespace AthPoolEx {
22 
27 public: // Constructor and Destructor
29  WriteTag(const std::string& name, ISvcLocator* pSvcLocator);
31  virtual ~WriteTag();
32 
33 public:
35  virtual StatusCode initialize() override;
36  virtual StatusCode execute (const EventContext& ctx) const override;
37  virtual StatusCode finalize() override;
38 
39 private:
40  SG::WriteHandleKey<AthenaAttributeList> m_key { this, "Key", "RunEventTag" };
41  SG::WriteHandleKey<TagAthenaAttributeList> m_tagKey { this, "TagKey", "RunEventTag" };
42  IntegerProperty m_magic;
45 };
46 
47 } // end AthPoolEx namespace
48 
49 #endif
AthenaAttributeListSpecification
Definition: AthenaAttributeListSpecification.h:42
AthPoolEx::WriteTag::execute
virtual StatusCode execute(const EventContext &ctx) const override
Definition: WriteTag.cxx:53
AthPoolEx::WriteTag::WriteTag
WriteTag(const std::string &name, ISvcLocator *pSvcLocator)
Standard Service Constructor.
Definition: WriteTag.cxx:21
AthPoolEx::WriteTag::m_magic
IntegerProperty m_magic
Definition: WriteTag.h:42
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:83
SG::WriteHandleKey< AthenaAttributeList >
AthPoolEx::WriteTag
This class provides an example for writing event data objects to Pool.
Definition: WriteTag.h:26
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AthPoolEx::WriteTag::m_key
SG::WriteHandleKey< AthenaAttributeList > m_key
Definition: WriteTag.h:40
AthReentrantAlgorithm.h
WriteHandleKey.h
Property holding a SG store/key/clid from which a WriteHandle is made.
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
AthPoolEx::WriteTag::~WriteTag
virtual ~WriteTag()
Destructor.
Definition: WriteTag.cxx:27
AthenaAttributeList.h
An AttributeList represents a logical row of attributes in a metadata table. The name and type of eac...
TagAthenaAttributeList.h
An AttributeList represents a logical row of attributes in a metadata table. The name and type of eac...
AthPoolEx::WriteTag::m_attribListSpec
AthenaAttributeListSpecification * m_attribListSpec
Specification of the event tag metadata schema.
Definition: WriteTag.h:44
AthPoolEx
Definition: PassNoneFilter.h:16
AthPoolEx::WriteTag::finalize
virtual StatusCode finalize() override
Definition: WriteTag.cxx:87
AthPoolEx::WriteTag::m_tagKey
SG::WriteHandleKey< TagAthenaAttributeList > m_tagKey
Definition: WriteTag.h:41
AthPoolEx::WriteTag::initialize
virtual StatusCode initialize() override
Gaudi Service Interface method implementations:
Definition: WriteTag.cxx:33