Loading [MathJax]/extensions/tex2jax.js
The Gaudi Framework  v38r0 (2143aa4c)
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
WriteHandleAlg.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 HANDLEWRITE_ALG_H
12 #define HANDLEWRITE_ALG_H
13 
14 #include "GaudiKernel/Algorithm.h"
15 
17 
18 // Event Model related classes
19 #include "GaudiExamples/Counter.h"
20 #include "GaudiExamples/Event.h"
21 #include "GaudiExamples/MyTrack.h"
22 
23 using namespace Gaudi::Examples;
24 
25 //------------------------------------------------------------------------------
26 
27 class WriteHandleAlg : public Algorithm {
28 public:
30 
31  bool isClonable() const override { return true; }
32 
34  StatusCode execute() override;
35 
36 private:
37  Gaudi::Property<bool> m_useHandle{ this, "UseHandle", true, "Specify the usage of the handle to write" };
38 
39  DataObjectWriteHandle<Collision> m_output_handle{ this, "Output", "/Event/MyCollision" };
40 };
41 
42 #endif
DataObjectWriteHandle< Collision >
std::string
STL class.
ISvcLocator
Definition: ISvcLocator.h:46
Algorithm
Alias for backward compatibility.
Definition: Algorithm.h:58
Algorithm.h
WriteHandleAlg::isClonable
bool isClonable() const override
Definition: WriteHandleAlg.h:31
Gaudi::Examples
Definition: EvtColAlg.cpp:40
StatusCode
Definition: StatusCode.h:65
GaudiPython.Pythonizations.execute
execute
Definition: Pythonizations.py:578
MyTrack.h
GaudiPluginService.cpluginsvc.n
n
Definition: cpluginsvc.py:234
WriteHandleAlg::WriteHandleAlg
WriteHandleAlg(const std::string &n, ISvcLocator *l)
Definition: WriteHandleAlg.h:29
Event.h
gaudirun.l
dictionary l
Definition: gaudirun.py:580
Counter.h
DataObjectHandle.h
Gaudi::Property< bool >