The Gaudi Framework  master (37c0b60a)
WriteAlg.h
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 #ifndef GAUDIEXAMPLE_WRITEALG_H
12 #define GAUDIEXAMPLE_WRITEALG_H
13 
14 // Framework include files
15 #include <GaudiKernel/Algorithm.h>
16 #include <GaudiTestSuite/Counter.h>
17 
25 class WriteAlg : public Algorithm {
26 protected:
29 
32 
35 
36 public:
38  WriteAlg( const std::string& name, ISvcLocator* pSvcLocator ) : Algorithm( name, pSvcLocator ) {}
40  StatusCode initialize() override;
42  StatusCode finalize() override;
44  StatusCode execute() override;
45 };
46 
47 #endif // GAUDIEXAMPLE_WRITEALG_H
WriteAlg::m_recordSvc
SmartIF< IDataProviderSvc > m_recordSvc
Reference to run records data service.
Definition: WriteAlg.h:28
std::string
STL class.
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:526
WriteAlg::WriteAlg
WriteAlg(const std::string &name, ISvcLocator *pSvcLocator)
Constructor: A constructor of this form must be provided.
Definition: WriteAlg.h:38
gaudirun.s
string s
Definition: gaudirun.py:346
ISvcLocator
Definition: ISvcLocator.h:46
WriteAlg::m_evtCount
Gaudi::TestSuite::Counter * m_evtCount
Reference to event counter.
Definition: WriteAlg.h:31
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:65
SmartIF< IDataProviderSvc >
WriteAlg
Definition: WriteAlg.h:25
WriteAlg::finalize
StatusCode finalize() override
Finalize.
Definition: WriteAlg.cpp:64
DataObject
Definition: DataObject.h:36
IDataProviderSvc
Definition: IDataProviderSvc.h:53
Gaudi::TestSuite::Counter
Definition: CounterHistos.cpp:23
WriteAlg::execute
StatusCode execute() override
Event callback.
Definition: WriteAlg.cpp:78
Counter.h