ATLAS Offline Software
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$
16 #ifndef DATAMODELTESTDATACOMMON_XAODTESTDECOR_H
17 #define DATAMODELTESTDATACOMMON_XAODTESTDECOR_H
18 
19 
26 
27 
28 namespace DMTest {
29 
30 
35  : public AthReentrantAlgorithm
36 {
37 public:
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 
64 private:
66  std::string m_readPrefix;
67 
69  std::string m_decorName;
70 
72  int m_offset;
73 
75  bool m_doCVec;
76  bool m_doCInfo;
77  bool m_doCTrig;
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
DMTest::xAODTestDecor::xAODTestDecor
xAODTestDecor(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
Definition: xAODTestDecor.cxx:29
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
SG::WriteDecorHandleKey
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
Definition: StoreGate/StoreGate/WriteDecorHandleKey.h:89
DMTest::xAODTestDecor::m_objDecorKey
SG::WriteDecorHandleKey< SG::AuxElement > m_objDecorKey
Definition: xAODTestDecor.h:83
DMTest::xAODTestDecor::m_cvecDecorKey
SG::WriteDecorHandleKey< CVec > m_cvecDecorKey
Definition: xAODTestDecor.h:81
DMTest::xAODTestDecor::m_eventInfoKey
SG::ReadHandleKey< xAOD::EventInfo > m_eventInfoKey
Handles for writing decorations.
Definition: xAODTestDecor.h:80
SG::ReadHandleKey< xAOD::EventInfo >
DMTest::xAODTestDecor::m_offset
int m_offset
Parameter: Offset to be applied to decoration.
Definition: xAODTestDecor.h:72
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:83
DMTest::xAODTestDecor::m_cinfoDecorKey
SG::WriteDecorHandleKey< C > m_cinfoDecorKey
Definition: xAODTestDecor.h:82
CVec.h
Class used for testing xAOD data reading/writing.
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
C.h
Class used for testing xAOD data reading/writing.
DMTest::xAODTestDecor
Algorithm to test adding decorations to xAOD data.
Definition: xAODTestDecor.h:36
AthReentrantAlgorithm.h
DMTest::xAODTestDecor::finalize
virtual StatusCode finalize() override
Algorithm finalization; called at the end of the job.
Definition: xAODTestDecor.cxx:116
DMTest::xAODTestDecor::m_doCVec
bool m_doCVec
Flags.
Definition: xAODTestDecor.h:75
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
DMTest::xAODTestDecor::m_decorName
std::string m_decorName
Parameter: Name of the decoration.
Definition: xAODTestDecor.h:69
EventInfo.h
DMTest::xAODTestDecor::m_ctrigDecorKey
SG::WriteDecorHandleKey< CVec > m_ctrigDecorKey
Definition: xAODTestDecor.h:84
DMTest::xAODTestDecor::execute
virtual StatusCode execute(const EventContext &ctx) const override
Algorithm event processing.
Definition: xAODTestDecor.cxx:70
DMTest::xAODTestDecor::initialize
virtual StatusCode initialize() override
Algorithm initialization; called at the beginning of the job.
Definition: xAODTestDecor.cxx:51
DMTest::xAODTestDecor::m_doCInfo
bool m_doCInfo
Definition: xAODTestDecor.h:76
DMTest::xAODTestDecor::m_readPrefix
std::string m_readPrefix
Parameter: Prefix for names read from SG.
Definition: xAODTestDecor.h:66
DMTest
Definition: B.h:23
DMTest::xAODTestDecor::m_doCTrig
bool m_doCTrig
Definition: xAODTestDecor.h:77