ATLAS Offline Software
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$
14 #include "xAODTestClearDecor.h"
18 
19 
20 namespace 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 
python.PyKernel.retrieve
def retrieve(aClass, aKey=None)
Definition: PyKernel.py:110
DMTest::xAODTestClearDecor::initialize
virtual StatusCode initialize()
Algorithm initialization; called at the beginning of the job.
Definition: xAODTestClearDecor.cxx:39
AthCommonDataStore< AthCommonMsg< Algorithm > >::declareProperty
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
Definition: AthCommonDataStore.h:145
DMTest::C_v1
Definition: C_v1.h:29
vec
std::vector< size_t > vec
Definition: CombinationsGeneratorTest.cxx:12
DMTest::xAODTestClearDecor::m_readPrefix
std::string m_readPrefix
Parameter: Prefix for names read from SG.
Definition: xAODTestClearDecor.h:62
AthCommonDataStore< AthCommonMsg< Algorithm > >::evtStore
ServiceHandle< StoreGateSvc > & evtStore()
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
Definition: AthCommonDataStore.h:85
CVec.h
Class used for testing xAOD data reading/writing.
DMTest::xAODTestClearDecor::xAODTestClearDecor
xAODTestClearDecor(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
Definition: xAODTestClearDecor.cxx:28
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
DMTest::xAODTestClearDecor::finalize
virtual StatusCode finalize()
Algorithm finalization; called at the end of the job.
Definition: xAODTestClearDecor.cxx:69
C.h
Class used for testing xAOD data reading/writing.
CHECK
#define CHECK(...)
Evaluate an expression and check for errors.
Definition: Control/AthenaKernel/AthenaKernel/errorcheck.h:422
DataVector
Derived DataVector<T>.
Definition: DataVector.h:581
AthAlgorithm
Definition: AthAlgorithm.h:47
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
xAODTestClearDecor.h
Algorithm to test clearing xAOD decorations.
errorcheck.h
Helpers for checking error return status codes and reporting errors.
DMTest::xAODTestClearDecor::execute
virtual StatusCode execute()
Algorithm event processing.
Definition: xAODTestClearDecor.cxx:48
python.compressB64.c
def c
Definition: compressB64.py:93
DMTest
Definition: B.h:23