ATLAS Offline Software
Control
AthenaExamples
AthExStoreGateExample
Tutorial
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
10
#include "
AthenaBaseComps/AthAlgorithm.h
"
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
30
StatusCode
initialize
();
31
StatusCode
execute
();
32
StatusCode
finalize
();
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:228
Generated on Sun Dec 22 2024 21:18:04 for ATLAS Offline Software by
1.8.18