ATLAS Offline Software
Loading...
Searching...
No Matches
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"
18
19
20namespace DMTest {
21
22
29 ISvcLocator *pSvcLocator)
30 : AthAlgorithm (name, pSvcLocator)
31{
32 declareProperty ("ReadPrefix", m_readPrefix);
33}
34
35
40{
41 return StatusCode::SUCCESS;
42}
43
44
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
70{
71 return StatusCode::SUCCESS;
72}
73
74
75} // namespace DMTest
76
Class used for testing xAOD data reading/writing.
Class used for testing xAOD data reading/writing.
std::vector< size_t > vec
Helpers for checking error return status codes and reporting errors.
#define CHECK(...)
Evaluate an expression and check for errors.
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
virtual StatusCode execute()
Algorithm event processing.
virtual StatusCode initialize()
Algorithm initialization; called at the beginning of the job.
virtual StatusCode finalize()
Algorithm finalization; called at the end of the job.
std::string m_readPrefix
Parameter: Prefix for names read from SG.
xAODTestClearDecor(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
Definition B.h:23
C_v1 C
Definition C.h:26
CVec_v1 CVec
Definition CVec.h:26
Algorithm to test clearing xAOD decorations.