The Gaudi Framework
master (6507eef1)
Toggle main menu visibility
Loading...
Searching...
No Matches
WriteHandleAlg.h
Go to the documentation of this file.
1
/***********************************************************************************\
2
* (c) Copyright 1998-2026 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/DataHandle.h
>
15
#include <
GaudiKernel/DataObjectHandle.h
>
16
#include <
GaudiTestSuite/Counter.h
>
17
#include <
GaudiTestSuite/Event.h
>
18
#include <
GaudiTestSuite/MyTrack.h
>
19
20
namespace
Gaudi::TestSuite
{
21
class
WriteHandleAlg
:
public
::Algorithm
{
22
public
:
23
WriteHandleAlg
(
const
std::string& n,
ISvcLocator
* l ) :
Algorithm
( n, l ) {}
24
25
bool
isClonable
()
const override
{
return
true
; }
26
28
StatusCode
execute
()
override
;
29
30
private
:
31
Gaudi::Property<bool>
m_useHandle
{
this
,
"UseHandle"
,
true
,
"Specify the usage of the handle to write"
};
32
33
DataObjectWriteHandle<Collision>
m_output_handle
{
this
,
"Output"
,
"/Event/MyCollision"
};
34
Gaudi::DataHandleVector<DataObjectWriteHandle, Collision>
m_additionalOutputs
{
this
,
"AdditionalOutputs"
, {} };
35
};
36
}
// namespace Gaudi::TestSuite
Counter.h
DataHandle.h
DataObjectHandle.h
Event.h
Algorithm.h
MyTrack.h
DataObjectWriteHandle
Definition
DataObjectHandle.h:470
Gaudi::Algorithm::Algorithm
Algorithm(std::string name, ISvcLocator *svcloc, std::string version=PACKAGE_VERSION)
Constructor.
Definition
Algorithm.h:98
Gaudi::DataHandleVector
A configurable, dynamically sized sequence of homogeneous data handles.
Definition
DataHandle.h:132
Gaudi::Property
Implementation of property with value of concrete type.
Definition
Property.h:35
Gaudi::TestSuite::WriteHandleAlg::m_output_handle
DataObjectWriteHandle< Collision > m_output_handle
Definition
WriteHandleAlg.h:33
Gaudi::TestSuite::WriteHandleAlg::isClonable
bool isClonable() const override
Definition
WriteHandleAlg.h:25
Gaudi::TestSuite::WriteHandleAlg::WriteHandleAlg
WriteHandleAlg(const std::string &n, ISvcLocator *l)
Definition
WriteHandleAlg.h:23
Gaudi::TestSuite::WriteHandleAlg::m_additionalOutputs
Gaudi::DataHandleVector< DataObjectWriteHandle, Collision > m_additionalOutputs
Definition
WriteHandleAlg.h:34
Gaudi::TestSuite::WriteHandleAlg::execute
StatusCode execute() override
the execution of the algorithm
Definition
WriteHandleAlg.cpp:18
Gaudi::TestSuite::WriteHandleAlg::m_useHandle
Gaudi::Property< bool > m_useHandle
Definition
WriteHandleAlg.h:31
ISvcLocator
The ISvcLocator is the interface implemented by the Service Factory in the Application Manager to loc...
Definition
ISvcLocator.h:42
StatusCode
This class is used for returning status codes from appropriate routines.
Definition
StatusCode.h:64
Gaudi::TestSuite
Definition
ConditionAccessorHolder.h:21
GaudiTestSuite
src
IO
WriteHandleAlg.h
Generated on
for The Gaudi Framework by
1.17.0