ATLAS Offline Software
Loading...
Searching...
No Matches
xAODTestDecor.h
Go to the documentation of this file.
1// This file's extension implies that it's C, but it's really -*- C++ -*-.
2
3/*
4 Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
5*/
6
7// $Id$
14
15
16#ifndef DATAMODELTESTDATACOMMON_XAODTESTDECOR_H
17#define DATAMODELTESTDATACOMMON_XAODTESTDECOR_H
18
19
26
27
28namespace DMTest {
29
30
36{
37public:
43 xAODTestDecor (const std::string &name, ISvcLocator *pSvcLocator);
44
45
49 virtual StatusCode initialize() override;
50
51
55 virtual StatusCode execute (const EventContext& ctx) const override;
56
57
61 virtual StatusCode finalize() override;
62
63
64private:
66 std::string m_readPrefix;
67
69 std::string m_decorName;
70
73
78
80 SG::ReadHandleKey<xAOD::EventInfo> m_eventInfoKey{this, "EvtInfo", "EventInfo", "EventInfo name"};
85};
86
87
88} // namespace DMTest
89
90
91#endif // not DATAMODELTESTDATACOMMON_XAODTESTDECOR_H
Class used for testing xAOD data reading/writing.
Class used for testing xAOD data reading/writing.
Property holding a SG store/key/clid from which a ReadHandle is made.
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
An algorithm that can be simultaneously executed in multiple threads.
virtual StatusCode finalize() override
Algorithm finalization; called at the end of the job.
virtual StatusCode execute(const EventContext &ctx) const override
Algorithm event processing.
SG::WriteDecorHandleKey< CVec > m_ctrigDecorKey
std::string m_decorName
Parameter: Name of the decoration.
SG::WriteDecorHandleKey< C > m_cinfoDecorKey
SG::WriteDecorHandleKey< CVec > m_cvecDecorKey
virtual StatusCode initialize() override
Algorithm initialization; called at the beginning of the job.
std::string m_readPrefix
Parameter: Prefix for names read from SG.
xAODTestDecor(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
int m_offset
Parameter: Offset to be applied to decoration.
SG::WriteDecorHandleKey< SG::AuxElement > m_objDecorKey
SG::ReadHandleKey< xAOD::EventInfo > m_eventInfoKey
Handles for writing decorations.
Property holding a SG store/key/clid from which a ReadHandle is made.
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
Definition B.h:23