The Gaudi Framework  master (6507eef1)
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
19
20namespace Gaudi::TestSuite {
21 class ReadHandleAlg : public ::Algorithm {
22
23 DataObjectReadHandle<Collision> m_inputHandle{ this, "Input", "/Event/MyCollision" };
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
Algorithm(std::string name, ISvcLocator *svcloc, std::string version=PACKAGE_VERSION)
Constructor.
Definition Algorithm.h:98
A configurable, dynamically sized sequence of homogeneous data handles.
Definition DataHandle.h:132
DataObjectReadHandle< Collision > m_inputHandle
Gaudi::DataHandleVector< DataObjectReadHandle, Collision > m_additionalInputs
StatusCode execute() override
Event callback.
ReadHandleAlg(const std::string &n, ISvcLocator *l)
bool isClonable() const override
The ISvcLocator is the interface implemented by the Service Factory in the Application Manager to loc...
Definition ISvcLocator.h:42
This class is used for returning status codes from appropriate routines.
Definition StatusCode.h:64