The Gaudi Framework
v36r1 (3e2fb5a8)
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 "
GaudiAlg/GaudiAlgorithm.h
"
15
16
#include "
GaudiKernel/DataObjectHandle.h
"
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
GaudiAlgorithm
{
28
public
:
29
WriteHandleAlg
(
const
std::string
&
n
,
ISvcLocator
*
l
) :
GaudiAlgorithm
(
n
,
l
) {}
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
WriteHandleAlg::isClonable
bool isClonable() const override
Definition:
WriteHandleAlg.h:31
Gaudi::Examples
Definition:
ConditionAccessorHolder.h:21
StatusCode
Definition:
StatusCode.h:65
GaudiPython.Pythonizations.execute
execute
Definition:
Pythonizations.py:566
GaudiAlgorithm
Definition:
GaudiAlgorithm.h:104
MyTrack.h
GaudiPluginService.cpluginsvc.n
n
Definition:
cpluginsvc.py:221
WriteHandleAlg::WriteHandleAlg
WriteHandleAlg(const std::string &n, ISvcLocator *l)
Definition:
WriteHandleAlg.h:29
Event.h
gaudirun.l
dictionary l
Definition:
gaudirun.py:553
GaudiAlgorithm.h
Counter.h
DataObjectHandle.h
Gaudi::Property< bool >
GaudiExamples
src
IO
WriteHandleAlg.h
Generated on Tue Sep 21 2021 12:27:41 for The Gaudi Framework by
1.8.18