Loading [MathJax]/extensions/tex2jax.js
The Gaudi Framework  v38r0 (2143aa4c)
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-2019 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 "GaudiExamples/Counter.h"
16 #include "GaudiKernel/Algorithm.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
GaudiAlg.HistoUtils.path
path
Definition: HistoUtils.py:960
Gaudi::Algorithm::name
const std::string & name() const override
The identifying name of the algorithm object.
Definition: Algorithm.cpp:528
WriteAlg::m_evtCount
Gaudi::Examples::Counter * m_evtCount
Reference to event counter.
Definition: WriteAlg.h:31
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
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:40
IDataProviderSvc
Definition: IDataProviderSvc.h:53
Counter.h
Gaudi::Examples::Counter
Definition: CounterHistos.cpp:22
WriteAlg::execute
StatusCode execute() override
Event callback.
Definition: WriteAlg.cpp:78