ATLAS Offline Software
SGWrite.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 
3 /*
4  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
5 */
6 
7 #ifndef ATHEXSTOREGATEXAMPLE_SGWRITE_H
8 #define ATHEXSTOREGATEXAMPLE_SGWRITE_H 1
9 
11 #include <string>
12 
13 /*
14 
15 This is the HEADER file for the Algorithm SGWrite.
16 It illustrates how to write a data object into StoreGate
17 
18 */
19 
20 class SGWrite : public AthAlgorithm {
21 
22 public:
23 
24  // Standard Algorithm Constructor:
25 
26  SGWrite (const std::string& name, ISvcLocator* pSvcLocator);
27 
28  // Define the initialize, execute and finalize methods:
29 
33 
34 private:
35 
36  std::string m_DataObjKey; // Property: key of DataObj in SG
37 
38 };
39 #endif
40 
41 
42 
SGWrite
Definition: SGWrite.h:20
SGWrite::initialize
StatusCode initialize()
Definition: SGWrite.cxx:36
SGWrite::finalize
StatusCode finalize()
Definition: SGWrite.cxx:121
SGWrite::SGWrite
SGWrite(const std::string &name, ISvcLocator *pSvcLocator)
Definition: SGWrite.cxx:23
AthAlgorithm.h
SGWrite::m_DataObjKey
std::string m_DataObjKey
Definition: SGWrite.h:36
SGWrite::execute
StatusCode execute()
Definition: SGWrite.cxx:59
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AthAlgorithm
Definition: AthAlgorithm.h:47
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195