ATLAS Offline Software
Loading...
Searching...
No Matches
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
19#include "GaudiKernel/MsgStream.h"
20#include "GaudiKernel/ServiceHandle.h"
21
22// Forward declaration
23namespace SgTests { struct PayLoad; }
24
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();
47 virtual StatusCode finalize();
48
50 // Const methods:
52
54 // Non-const methods:
56
58 // Private methods:
60 private:
61
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
86};
87
88// I/O operators
90
92// Inline methods:
94
95#endif //> STOREGATETESTS_SGSTRESSPRODUCER_H
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
std::string m_dataName
Name of the input data.
SgStressProducer(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
virtual StatusCode execute()
std::size_t m_dataSize
Size of the payload objects.
StatusCode createData()
Create data.
bool m_useDataPool
switch to use or not an arena (memory pool) to allocate payload
virtual StatusCode finalize()
virtual StatusCode initialize()
std::size_t m_nObjs
Number of payload objects.
SgStressProducer()
Default constructor:
virtual ~SgStressProducer()
Destructor:
is a very simple class to exercize the basic features of the StoreGateSvc class: publishing and retri...
Definition PayLoad.h:28