The Gaudi Framework
master (bdbe7744)
Toggle main menu visibility
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
14
#include <
GaudiKernel/Algorithm.h
>
15
#include <
GaudiTestSuite/Counter.h
>
16
23
24
class
WriteAlg
:
public
Algorithm
{
25
protected
:
27
SmartIF<IDataProviderSvc>
m_recordSvc
;
28
30
Gaudi::TestSuite::Counter
*
m_evtCount
=
nullptr
;
31
33
StatusCode
put
(
IDataProviderSvc
* s,
const
std::string& path,
DataObject
* pObj );
34
35
public
:
37
WriteAlg
(
const
std::string&
name
,
ISvcLocator
* pSvcLocator ) :
Algorithm
(
name
, pSvcLocator ) {}
39
StatusCode
initialize
()
override
;
41
StatusCode
finalize
()
override
;
43
StatusCode
execute
()
override
;
44
};
Counter.h
Algorithm.h
DataObject
A DataObject is the base class of any identifiable object on any data store.
Definition
DataObject.h:37
Gaudi::Algorithm::Algorithm
Algorithm(std::string name, ISvcLocator *svcloc, std::string version=PACKAGE_VERSION)
Constructor.
Definition
Algorithm.h:98
Gaudi::Algorithm::name
const std::string & name() const override
The identifying name of the algorithm object.
Definition
Algorithm.cpp:518
IDataProviderSvc
Data provider interface definition.
Definition
IDataProviderSvc.h:48
ISvcLocator
The ISvcLocator is the interface implemented by the Service Factory in the Application Manager to loc...
Definition
ISvcLocator.h:42
SmartIF
Small smart pointer class with automatic reference counting for IInterface.
Definition
SmartIF.h:28
StatusCode
This class is used for returning status codes from appropriate routines.
Definition
StatusCode.h:64
WriteAlg::put
StatusCode put(IDataProviderSvc *s, const std::string &path, DataObject *pObj)
Register data leaf.
Definition
WriteAlg.cpp:42
WriteAlg::initialize
StatusCode initialize() override
Initialize.
Definition
WriteAlg.cpp:51
WriteAlg::m_evtCount
Gaudi::TestSuite::Counter * m_evtCount
Reference to event counter.
Definition
WriteAlg.h:30
WriteAlg::m_recordSvc
SmartIF< IDataProviderSvc > m_recordSvc
Reference to run records data service.
Definition
WriteAlg.h:27
WriteAlg::finalize
StatusCode finalize() override
Finalize.
Definition
WriteAlg.cpp:64
WriteAlg::execute
StatusCode execute() override
Event callback.
Definition
WriteAlg.cpp:78
WriteAlg::WriteAlg
WriteAlg(const std::string &name, ISvcLocator *pSvcLocator)
Constructor: A constructor of this form must be provided.
Definition
WriteAlg.h:37
Gaudi::TestSuite::Counter
Definition
CounterHistos.cpp:23
GaudiTestSuite
src
IO
WriteAlg.h
Generated on
for The Gaudi Framework by
1.17.0