The Gaudi Framework  master (82fdf313)
Loading...
Searching...
No Matches
WriteAlg.h
Go to the documentation of this file.
1/***********************************************************************************\
2* (c) Copyright 1998-2025 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#pragma once
12
13// Framework include files
16
23
24class WriteAlg : public Algorithm {
25protected:
28
31
33 StatusCode put( IDataProviderSvc* s, const std::string& path, DataObject* pObj );
34
35public:
37 WriteAlg( const std::string& name, ISvcLocator* pSvcLocator ) : Algorithm( name, pSvcLocator ) {}
39 StatusCode initialize() override;
41 StatusCode finalize() override;
43 StatusCode execute() override;
44};
A DataObject is the base class of any identifiable object on any data store.
Definition DataObject.h:37
Algorithm(std::string name, ISvcLocator *svcloc, std::string version=PACKAGE_VERSION)
Constructor.
Definition Algorithm.h:98
const std::string & name() const override
The identifying name of the algorithm object.
Data provider interface definition.
The ISvcLocator is the interface implemented by the Service Factory in the Application Manager to loc...
Definition ISvcLocator.h:42
Small smart pointer class with automatic reference counting for IInterface.
Definition SmartIF.h:28
This class is used for returning status codes from appropriate routines.
Definition StatusCode.h:64
StatusCode put(IDataProviderSvc *s, const std::string &path, DataObject *pObj)
Register data leaf.
Definition WriteAlg.cpp:42
StatusCode initialize() override
Initialize.
Definition WriteAlg.cpp:51
Gaudi::TestSuite::Counter * m_evtCount
Reference to event counter.
Definition WriteAlg.h:30
SmartIF< IDataProviderSvc > m_recordSvc
Reference to run records data service.
Definition WriteAlg.h:27
StatusCode finalize() override
Finalize.
Definition WriteAlg.cpp:64
StatusCode execute() override
Event callback.
Definition WriteAlg.cpp:78
WriteAlg(const std::string &name, ISvcLocator *pSvcLocator)
Constructor: A constructor of this form must be provided.
Definition WriteAlg.h:37