The Gaudi Framework
master (37c0b60a)
ReadHandleAlg.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
ReadHandleAlg
:
public
::Algorithm
{
21
22
DataObjectReadHandle<Collision>
m_inputHandle
{
this
,
"Input"
,
"/Event/MyCollision"
};
23
24
public
:
25
ReadHandleAlg
(
const
std::string
&
n
,
ISvcLocator
*
l
) :
Algorithm
(
n
,
l
) {}
26
27
bool
isClonable
()
const override
{
return
true
; }
28
30
StatusCode
execute
()
override
;
31
};
32
}
// namespace Gaudi::TestSuite
Event.h
std::string
STL class.
MyTrack.h
ISvcLocator
Definition:
ISvcLocator.h:46
Algorithm.h
Gaudi::TestSuite::ReadHandleAlg
Definition:
ReadHandleAlg.h:20
Gaudi::TestSuite::ReadHandleAlg::ReadHandleAlg
ReadHandleAlg(const std::string &n, ISvcLocator *l)
Definition:
ReadHandleAlg.h:25
StatusCode
Definition:
StatusCode.h:65
Gaudi::Algorithm
Base class from which all concrete algorithm classes should be derived.
Definition:
Algorithm.h:90
DataObjectReadHandle< Collision >
Gaudi::TestSuite
Definition:
ConditionAccessorHolder.h:21
Gaudi::TestSuite::ReadHandleAlg::execute
StatusCode execute() override
Event callback.
Definition:
ReadHandleAlg.cpp:16
cpluginsvc.n
n
Definition:
cpluginsvc.py:234
Gaudi::TestSuite::ReadHandleAlg::m_inputHandle
DataObjectReadHandle< Collision > m_inputHandle
Definition:
ReadHandleAlg.h:22
gaudirun.l
dictionary l
Definition:
gaudirun.py:583
Gaudi::TestSuite::ReadHandleAlg::isClonable
bool isClonable() const override
Definition:
ReadHandleAlg.h:27
DataObjectHandle.h
Counter.h
GaudiTestSuite
src
IO
ReadHandleAlg.h
Generated on Thu Dec 19 2024 15:35:07 for The Gaudi Framework by
1.8.18