The Gaudi Framework
master (37c0b60a)
WriteHandleAlg.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
#pragma once
12
13
#include <
GaudiKernel/Algorithm.h
>
14
#include <
GaudiKernel/DataObjectHandle.h
>
15
#include <
GaudiTestSuite/Counter.h
>
16
#include <
GaudiTestSuite/Event.h
>
17
#include <
GaudiTestSuite/MyTrack.h
>
18
19
namespace
Gaudi::TestSuite
{
20
class
WriteHandleAlg
:
public
::Algorithm
{
21
public
:
22
WriteHandleAlg
(
const
std::string
&
n
,
ISvcLocator
*
l
) :
Algorithm
(
n
,
l
) {}
23
24
bool
isClonable
()
const override
{
return
true
; }
25
27
StatusCode
execute
()
override
;
28
29
private
:
30
Gaudi::Property<bool>
m_useHandle
{
this
,
"UseHandle"
,
true
,
"Specify the usage of the handle to write"
};
31
32
DataObjectWriteHandle<Collision>
m_output_handle
{
this
,
"Output"
,
"/Event/MyCollision"
};
33
};
34
}
// namespace Gaudi::TestSuite
Gaudi::TestSuite::WriteHandleAlg::m_useHandle
Gaudi::Property< bool > m_useHandle
Definition:
WriteHandleAlg.h:30
Event.h
DataObjectWriteHandle< Collision >
std::string
STL class.
MyTrack.h
Gaudi::TestSuite::WriteHandleAlg::WriteHandleAlg
WriteHandleAlg(const std::string &n, ISvcLocator *l)
Definition:
WriteHandleAlg.h:22
ISvcLocator
Definition:
ISvcLocator.h:46
Algorithm.h
StatusCode
Definition:
StatusCode.h:65
Gaudi::Algorithm
Base class from which all concrete algorithm classes should be derived.
Definition:
Algorithm.h:90
Gaudi::TestSuite
Definition:
ConditionAccessorHolder.h:21
cpluginsvc.n
n
Definition:
cpluginsvc.py:234
Gaudi::TestSuite::WriteHandleAlg::isClonable
bool isClonable() const override
Definition:
WriteHandleAlg.h:24
Gaudi::TestSuite::WriteHandleAlg
Definition:
WriteHandleAlg.h:20
gaudirun.l
dictionary l
Definition:
gaudirun.py:583
DataObjectHandle.h
Gaudi::TestSuite::WriteHandleAlg::m_output_handle
DataObjectWriteHandle< Collision > m_output_handle
Definition:
WriteHandleAlg.h:32
Gaudi::Property< bool >
Gaudi::TestSuite::WriteHandleAlg::execute
StatusCode execute() override
the execution of the algorithm
Definition:
WriteHandleAlg.cpp:18
Counter.h
GaudiTestSuite
src
IO
WriteHandleAlg.h
Generated on Thu Dec 19 2024 15:35:07 for The Gaudi Framework by
1.8.18