|
ATLAS Offline Software
|
Go to the documentation of this file.
28 ISvcLocator *pSvcLocator)
61 return StatusCode::SUCCESS;
71 std::ostringstream
ss;
73 if (!cvecDecor.
isPresent())
return StatusCode::FAILURE;
74 for (
const C* celt : *cvecDecor) {
75 ss <<
" " << cvecDecor(*celt);
82 if (!cinfoDecor.
isPresent())
return StatusCode::FAILURE;
88 if (!cinfoBaseDecor.
isPresent())
return StatusCode::FAILURE;
94 if (!objDecor.
isPresent())
return StatusCode::FAILURE;
100 testKey = testKey.
key() +
"_test";
102 if (!cinfoDecorTest.
isPresent())
return StatusCode::FAILURE;
105 return StatusCode::SUCCESS;
114 return StatusCode::SUCCESS;
SG::ReadDecorHandleKey< C > m_cinfoDecorKey
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
xAODTestReadDecor(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
SG::ReadDecorHandleKey< SG::AuxElement > m_objDecorKey
virtual StatusCode initialize() override
Algorithm initialization; called at the beginning of the job.
bool isPresent() const
Is the referenced container present in SG?
const std::string & key() const
Return the StoreGate ID for the referenced object.
bool empty() const
Test if the key is blank.
An algorithm that can be simultaneously executed in multiple threads.
Class used for testing xAOD data reading/writing.
Handle class for reading a decoration on an object.
virtual StatusCode finalize() override
Algorithm finalization; called at the end of the job.
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
::StatusCode StatusCode
StatusCode definition for legacy code.
Class used for testing xAOD data reading/writing.
SG::ReadDecorHandleKey< CVec > m_cvecDecorKey
Handles for reading decorations.
std::string m_decorName
Parameter: Name of the decoration.
std::string m_cvecName
Parameter: Root names of the objects.
virtual StatusCode execute(const EventContext &ctx) const override
Algorithm event processing.
std::string m_readPrefix
Parameter: Prefix for names read from SG.
Helpers for checking error return status codes and reporting errors.
SG::ReadDecorHandleKey< C > m_cinfoBaseDecorKey
Handle class for reading a decoration on an object.
Algorithm to test reading decorations using handles.