ATLAS Offline Software
Loading...
Searching...
No Matches
HiveAlgV.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3*/
4
10
11#ifndef ATHEXHIVE_ALGF_V
12#define ATHEXHIVE_ALGF_V 1
13
14#include "HiveAlgBase.h"
18
19#include <string>
20
21class HiveAlgV : public HiveAlgBase {
22
23public:
24
25 // Standard Algorithm Constructor:
26
27 HiveAlgV (const std::string& name, ISvcLocator* pSvcLocator);
29
30 // Define the initialize and execute methods:
31
32 virtual StatusCode initialize() override;
33 virtual StatusCode execute() override;
34
35private:
36
37 Gaudi::Property<bool> m_writeFirst {this, "WriteBeforeRead", true,
38 "do write before the read" };
39
41 this, "Key_RV", {"a1","a2","d1","e1","c1"},
42 "Array of ReadHandleKey<HiveDataObj>" };
43
45 this, "Key_WV", {}, "Array of WriteHandleKey<HiveDataObj>" };
46
47 // do the actual reading of the ReadHandleArray
48 StatusCode read() const;
49
50 // do the actual writing of the ReadHandleArray
51 StatusCode write();
52
53};
54#endif
Base class for AthExHive example Algs to provide functionality to sleep for a certain amount of time,...
HiveAlgBase(const std::string &name, ISvcLocator *pSvcLocator)
StatusCode read() const
Definition HiveAlgV.cxx:50
SG::ReadHandleKeyArray< HiveDataObj > m_rhv
Definition HiveAlgV.h:40
SG::WriteHandleKeyArray< HiveDataObj > m_whv
Definition HiveAlgV.h:44
virtual StatusCode initialize() override
Definition HiveAlgV.cxx:17
HiveAlgV(const std::string &name, ISvcLocator *pSvcLocator)
Definition HiveAlgV.cxx:8
StatusCode write()
Definition HiveAlgV.cxx:66
Gaudi::Property< bool > m_writeFirst
Definition HiveAlgV.h:37
virtual StatusCode execute() override
Definition HiveAlgV.cxx:31
HandleKeyArray< ReadHandle< T >, ReadHandleKey< T >, Gaudi::DataHandle::Reader > ReadHandleKeyArray
HandleKeyArray< WriteHandle< T >, WriteHandleKey< T >, Gaudi::DataHandle::Writer > WriteHandleKeyArray