ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Control
StoreGateTests
src
SgStressProducer.h
Go to the documentation of this file.
1
2
3
/*
4
Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
5
*/
6
7
// SgStressProducer.h
8
// Header file for class SgStressProducer
9
// Author: S.Binet<binet@cern.ch>
11
#ifndef STOREGATETESTS_SGSTRESSPRODUCER_H
12
#define STOREGATETESTS_SGSTRESSPRODUCER_H
13
14
// STL includes
15
#include <string>
16
17
// FrameWork includes
18
#include "
AthenaBaseComps/AthAlgorithm.h
"
19
#include "GaudiKernel/MsgStream.h"
20
#include "GaudiKernel/ServiceHandle.h"
21
22
// Forward declaration
23
namespace
SgTests
{
struct
PayLoad
; }
24
25
class
SgStressProducer
:
public
AthAlgorithm
26
{
27
29
// Public methods:
31
public
:
32
33
// Copy constructor:
34
36
SgStressProducer
(
const
std::string& name, ISvcLocator* pSvcLocator );
37
39
virtual
~SgStressProducer
();
40
41
// Assignment operator:
42
//SgStressProducer &operator=(const SgStressProducer &alg);
43
44
// Athena algorithm's Hooks
45
virtual
StatusCode
initialize
();
46
virtual
StatusCode
execute
(
const
EventContext& ctx);
47
virtual
StatusCode
finalize
();
48
50
// Const methods:
52
54
// Non-const methods:
56
58
// Private methods:
60
private
:
61
63
SgStressProducer
();
64
66
StatusCode
createData
();
67
69
// Private data:
71
private
:
72
73
// Containers
74
76
std::string
m_dataName
;
77
79
std::size_t
m_nObjs
;
80
82
std::size_t
m_dataSize
;
83
85
bool
m_useDataPool
;
86
};
87
88
// I/O operators
90
92
// Inline methods:
94
95
#endif
//> STOREGATETESTS_SGSTRESSPRODUCER_H
AthAlgorithm.h
AthAlgorithm::AthAlgorithm
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
Definition
AthAlgorithm.cxx:10
SgStressProducer::m_dataName
std::string m_dataName
Name of the input data.
Definition
SgStressProducer.h:76
SgStressProducer::SgStressProducer
SgStressProducer(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
Definition
SgStressProducer.cxx:37
SgStressProducer::m_dataSize
std::size_t m_dataSize
Size of the payload objects.
Definition
SgStressProducer.h:82
SgStressProducer::execute
virtual StatusCode execute(const EventContext &ctx)
Execute method.
Definition
SgStressProducer.cxx:88
SgStressProducer::createData
StatusCode createData()
Create data.
Definition
SgStressProducer.cxx:104
SgStressProducer::m_useDataPool
bool m_useDataPool
switch to use or not an arena (memory pool) to allocate payload
Definition
SgStressProducer.h:85
SgStressProducer::finalize
virtual StatusCode finalize()
Definition
SgStressProducer.cxx:82
SgStressProducer::initialize
virtual StatusCode initialize()
Definition
SgStressProducer.cxx:73
SgStressProducer::m_nObjs
std::size_t m_nObjs
Number of payload objects.
Definition
SgStressProducer.h:79
SgStressProducer::SgStressProducer
SgStressProducer()
Default constructor:
SgStressProducer::~SgStressProducer
virtual ~SgStressProducer()
Destructor:
Definition
SgStressProducer.cxx:66
SgTests
Definition
SgStressProducer.h:23
SgTests::PayLoad
is a very simple class to exercize the basic features of the StoreGateSvc class: publishing and retri...
Definition
PayLoad.h:28
Generated on
for ATLAS Offline Software by
1.17.0