ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Control
DataModelTest
DataModelTestDataRead
src
xAODTestClearDecor.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
// $Id$
12
13
14
#include "
xAODTestClearDecor.h
"
15
#include "
DataModelTestDataCommon/C.h
"
16
#include "
DataModelTestDataCommon/CVec.h
"
17
#include "
AthenaKernel/errorcheck.h
"
18
19
20
namespace
DMTest
{
21
22
28
xAODTestClearDecor::xAODTestClearDecor
(
const
std::string &name,
29
ISvcLocator *pSvcLocator)
30
:
AthAlgorithm
(name, pSvcLocator)
31
{
32
declareProperty
(
"ReadPrefix"
,
m_readPrefix
);
33
}
34
35
39
StatusCode
xAODTestClearDecor::initialize
()
40
{
41
return
StatusCode::SUCCESS;
42
}
43
44
48
StatusCode
xAODTestClearDecor::execute
(
const
EventContext&
/*ctx*/
)
49
{
50
const
CVec
*
vec
= 0;
51
CHECK
(
evtStore
()->retrieve (
vec
,
m_readPrefix
+
"cvec"
) );
52
vec
->clearDecorations();
53
54
const
C
* c = 0;
55
CHECK
(
evtStore
()->retrieve (c,
m_readPrefix
+
"cinfo"
) );
56
c->clearDecorations();
57
58
const
CVec
* ctrig = 0;
59
CHECK
(
evtStore
()->retrieve (ctrig,
m_readPrefix
+
"ctrig"
) );
60
ctrig->clearDecorations();
61
62
return
StatusCode::SUCCESS;
63
}
64
65
69
StatusCode
xAODTestClearDecor::finalize
()
70
{
71
return
StatusCode::SUCCESS;
72
}
73
74
75
}
// namespace DMTest
76
CVec.h
Class used for testing xAOD data reading/writing.
C.h
Class used for testing xAOD data reading/writing.
vec
std::vector< size_t > vec
Definition
CombinationsGeneratorTest.cxx:9
errorcheck.h
Helpers for checking error return status codes and reporting errors.
CHECK
#define CHECK(...)
Evaluate an expression and check for errors.
Definition
Control/AthenaKernel/AthenaKernel/errorcheck.h:422
AthAlgorithm::AthAlgorithm
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
Definition
AthAlgorithm.cxx:10
AthCommonAlgorithm< Gaudi::Algorithm >::declareProperty
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
Definition
AthCommonDataStore.h:145
AthCommonAlgorithm< Gaudi::Algorithm >::evtStore
ServiceHandle< StoreGateSvc > & evtStore()
Definition
AthCommonDataStore.h:85
DMTest::xAODTestClearDecor::initialize
virtual StatusCode initialize()
Algorithm initialization; called at the beginning of the job.
Definition
xAODTestClearDecor.cxx:39
DMTest::xAODTestClearDecor::execute
virtual StatusCode execute(const EventContext &ctx)
Algorithm event processing.
Definition
xAODTestClearDecor.cxx:48
DMTest::xAODTestClearDecor::finalize
virtual StatusCode finalize()
Algorithm finalization; called at the end of the job.
Definition
xAODTestClearDecor.cxx:69
DMTest::xAODTestClearDecor::m_readPrefix
std::string m_readPrefix
Parameter: Prefix for names read from SG.
Definition
xAODTestClearDecor.h:62
DMTest::xAODTestClearDecor::xAODTestClearDecor
xAODTestClearDecor(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
Definition
xAODTestClearDecor.cxx:28
DMTest
Definition
B.h:23
DMTest::C
C_v1 C
Definition
C.h:26
DMTest::CVec
CVec_v1 CVec
Definition
CVec.h:26
xAODTestClearDecor.h
Algorithm to test clearing xAOD decorations.
Generated on
for ATLAS Offline Software by
1.17.0