The Gaudi Framework
master (6507eef1)
Toggle main menu visibility
Loading...
Searching...
No Matches
ReadHandleAlg.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
ReadHandleAlg
:
public
::Algorithm
{
22
23
DataObjectReadHandle<Collision>
m_inputHandle
{
this
,
"Input"
,
"/Event/MyCollision"
};
24
Gaudi::DataHandleVector<DataObjectReadHandle, Collision>
m_additionalInputs
{
this
,
"AdditionalInputs"
, {} };
25
26
public
:
27
ReadHandleAlg
(
const
std::string& n,
ISvcLocator
* l ) :
Algorithm
( n, l ) {}
28
29
bool
isClonable
()
const override
{
return
true
; }
30
32
StatusCode
execute
()
override
;
33
};
34
}
// namespace Gaudi::TestSuite
Counter.h
DataHandle.h
DataObjectHandle.h
Event.h
Algorithm.h
MyTrack.h
DataObjectReadHandle
Definition
DataObjectHandle.h:444
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::TestSuite::ReadHandleAlg::m_inputHandle
DataObjectReadHandle< Collision > m_inputHandle
Definition
ReadHandleAlg.h:23
Gaudi::TestSuite::ReadHandleAlg::m_additionalInputs
Gaudi::DataHandleVector< DataObjectReadHandle, Collision > m_additionalInputs
Definition
ReadHandleAlg.h:24
Gaudi::TestSuite::ReadHandleAlg::execute
StatusCode execute() override
Event callback.
Definition
ReadHandleAlg.cpp:16
Gaudi::TestSuite::ReadHandleAlg::ReadHandleAlg
ReadHandleAlg(const std::string &n, ISvcLocator *l)
Definition
ReadHandleAlg.h:27
Gaudi::TestSuite::ReadHandleAlg::isClonable
bool isClonable() const override
Definition
ReadHandleAlg.h:29
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
ReadHandleAlg.h
Generated on
for The Gaudi Framework by
1.17.0