Loading [MathJax]/extensions/tex2jax.js
The Gaudi Framework  master (d98a2936)
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
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 
24 class WriteAlg : public Algorithm {
25 protected:
28 
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 };
WriteAlg::m_recordSvc
SmartIF< IDataProviderSvc > m_recordSvc
Reference to run records data service.
Definition: WriteAlg.h:27
WriteAlg::initialize
StatusCode initialize() override
Initialize.
Definition: WriteAlg.cpp:51
AtlasMCRecoFullPrecedenceDump.path
path
Definition: AtlasMCRecoFullPrecedenceDump.py:49
Gaudi::Algorithm::name
const std::string & name() const override
The identifying name of the algorithm object.
Definition: Algorithm.cpp:524
WriteAlg::WriteAlg
WriteAlg(const std::string &name, ISvcLocator *pSvcLocator)
Constructor: A constructor of this form must be provided.
Definition: WriteAlg.h:37
gaudirun.s
string s
Definition: gaudirun.py:346
ISvcLocator
Definition: ISvcLocator.h:42
WriteAlg::m_evtCount
Gaudi::TestSuite::Counter * m_evtCount
Reference to event counter.
Definition: WriteAlg.h:30
Algorithm
Alias for backward compatibility.
Definition: Algorithm.h:58
Algorithm.h
WriteAlg::put
StatusCode put(IDataProviderSvc *s, const std::string &path, DataObject *pObj)
Register data leaf.
Definition: WriteAlg.cpp:42
StatusCode
Definition: StatusCode.h:64
SmartIF< IDataProviderSvc >
WriteAlg
Definition: WriteAlg.h:24
WriteAlg::finalize
StatusCode finalize() override
Finalize.
Definition: WriteAlg.cpp:64
DataObject
Definition: DataObject.h:37
IDataProviderSvc
Definition: IDataProviderSvc.h:48
Counter.h
Gaudi::TestSuite::Counter
Definition: CounterHistos.cpp:23
WriteAlg::execute
StatusCode execute() override
Event callback.
Definition: WriteAlg.cpp:78