The Gaudi Framework  master (2df85225)
Loading...
Searching...
No Matches
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
18
19namespace 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
Algorithm(std::string name, ISvcLocator *svcloc, std::string version=PACKAGE_VERSION)
Constructor.
Definition Algorithm.h:98
DataObjectReadHandle< Collision > m_inputHandle
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