ATLAS Offline Software
xAODTestShallowCopyHVec.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  Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
4 */
13 #ifndef DATAMODELTESTDATAREAD_XAODTESTSHALLOWCOPYHVEC_H
14 #define DATAMODELTESTDATAREAD_XAODTESTSHALLOWCOPYHVEC_H
15 
16 
23 
24 
25 namespace DMTest {
26 
27 
32  : public AthReentrantAlgorithm
33 {
34 public:
36 
37 
41  virtual StatusCode initialize() override;
42 
43 
47  virtual StatusCode execute (const EventContext& ctx) const override;
48 
49 
50 private:
52  { this, "ReadKey", "hvec", "Key for object read from SG" };
53 
55  { this, "WriteKey", "scopy_hvec", "Key for object written to SG" };
56 
58  { this, "AFloat20Key", "scopy_hvec.aFloat20", "Key for aFloat20 decoration" };
59 };
60 
61 
62 } // namespace DMTest
63 
64 
65 #endif // not DATAMODELTESTDATAREAD_XAODTESTSHALLOWCOPYHVEC_H
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
DMTest::xAODTestShallowCopyHVec::m_readKey
SG::ReadHandleKey< DMTest::HVec > m_readKey
Definition: xAODTestShallowCopyHVec.h:52
SG::WriteDecorHandleKey
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
Definition: StoreGate/StoreGate/WriteDecorHandleKey.h:89
DMTest::xAODTestShallowCopyHVec::m_aFloat20Key
SG::WriteDecorHandleKey< DMTest::HVec > m_aFloat20Key
Definition: xAODTestShallowCopyHVec.h:58
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition: StoreGate/StoreGate/ReadHandleKey.h:39
DMTest::xAODTestShallowCopyHVec::initialize
virtual StatusCode initialize() override
Algorithm initialization; called at the beginning of the job.
Definition: xAODTestShallowCopyHVec.cxx:30
DMTest::xAODTestShallowCopyHVec::m_writeKey
SG::WriteHandleKey< DMTest::HVec > m_writeKey
Definition: xAODTestShallowCopyHVec.h:55
HVec.h
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:83
ShallowCopyDecorDeps.h
Helper to propagate decoration dependencies to a shallow copy.
AthReentrantAlgorithm::AthReentrantAlgorithm
AthReentrantAlgorithm()
Default constructor:
SG::WriteHandleKey
Property holding a SG store/key/clid from which a WriteHandle is made.
Definition: StoreGate/StoreGate/WriteHandleKey.h:40
WriteDecorHandleKey.h
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AthReentrantAlgorithm.h
WriteHandleKey.h
Property holding a SG store/key/clid from which a WriteHandle is made.
DMTest::xAODTestShallowCopyHVec::execute
virtual StatusCode execute(const EventContext &ctx) const override
Algorithm event processing.
Definition: xAODTestShallowCopyHVec.cxx:42
DMTest::xAODTestShallowCopyHVec
Algorithm to do a shallow copy of HVec types.
Definition: xAODTestShallowCopyHVec.h:33
DMTest
Definition: B.h:23