The Gaudi Framework  master (1304469f)
Loading...
Searching...
No Matches
DataCreator.cpp
Go to the documentation of this file.
1/***********************************************************************************\
2* (c) Copyright 1998-2024 CERN for the benefit of the LHCb and ATLAS collaborations *
3* *
4* This software is distributed under the terms of the Apache version 2 licence, *
5* copied verbatim in the file "LICENSE". *
6* *
7* In applying this licence, CERN does not waive the privileges and immunities *
8* granted to it by virtue of its status as an Intergovernmental Organization *
9* or submit itself to any jurisdiction. *
10\***********************************************************************************/
11#include "DataCreator.h"
13
14// Static Factory declaration
16
17//------------------------------------------------------------------------------
19 //------------------------------------------------------------------------------
20 info() << "initializing...." << endmsg;
22}
23
24//------------------------------------------------------------------------------
26 //------------------------------------------------------------------------------
27 info() << "executing...." << endmsg;
28 return eventSvc()->registerObject( m_data, new DataObject() );
29}
30
31//------------------------------------------------------------------------------
33 //------------------------------------------------------------------------------
34 info() << "finalizing...." << endmsg;
36}
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
Definition MsgStream.h:198
#define DECLARE_COMPONENT(type)
MsgStream & info() const
shortcut for the method msgStream(MSG::INFO)
Trivial Algorithm for test purposes.
Definition DataCreator.h:20
StatusCode initialize() override
Three mandatory member functions of any algorithm.
Gaudi::Property< std::string > m_data
Definition DataCreator.h:31
StatusCode finalize() override
StatusCode execute() override
A DataObject is the base class of any identifiable object on any data store.
Definition DataObject.h:37
SmartIF< IDataProviderSvc > & eventSvc() const
The standard event data service.
StatusCode registerObject(std::string_view fullPath, DataObject *pObject)
Register object with the data store.
This class is used for returning status codes from appropriate routines.
Definition StatusCode.h:64
constexpr static const auto SUCCESS
Definition StatusCode.h:99